Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions specs/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6556,6 +6556,7 @@ components:
details:
type: object
additionalProperties: true
x-go-type: json.RawMessage
description: Live data details as a flexible object
milestone_id:
type: string
Expand Down Expand Up @@ -6591,6 +6592,7 @@ components:
details:
type: object
additionalProperties: true
x-go-type: json.RawMessage
description: Live data details as a flexible object whose shape depends on the type.
is_historical:
type: boolean
Expand Down Expand Up @@ -7715,6 +7717,7 @@ components:
details:
type: object
additionalProperties: true
x-go-type: json.RawMessage
description: >-
Additional details about the milestone.
`details.status`, when present, is maintained by a periodic background job. It lags the game's live state and may be stale or inaccurate, for example remaining `live` after the game ends. For game status, prefer live data, which is updated far more often: `live_data.details.status` from `GET /live_data/milestone/{milestone_id}`, or each entry's `details.status` from `GET /live_data/batch`. Scores are in the sport-specific fields of that live data `details` object.
Expand Down Expand Up @@ -11545,6 +11548,8 @@ components:
type: object
nullable: true
x-omitempty: true
x-go-type: json.RawMessage
x-go-type-skip-optional-pointer: true
description: Expiration value for each target that leads to a YES settlement
rules_primary:
type: string
Expand Down
16 changes: 10 additions & 6 deletions specs/perps_openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2064,7 +2064,7 @@ components:
exchange_index:
allOf:
- $ref: '#/components/schemas/ExchangeIndex'
description: "Identifier for an exchange shard. Perps subaccount transfers ignore this field."
description: "Deprecated: ignored for Perps subaccount transfers. This field will be removed."
x-go-type-skip-optional-pointer: true
x-oapi-codegen-extra-tags:
validate: "gte=0"
Expand Down Expand Up @@ -2094,7 +2094,7 @@ components:
allOf:
- $ref: '#/components/schemas/ExchangeIndex'
default: 0
description: The market group this order group is bound to (default 0). All orders placed into this order group must be for markets whose exchange_index matches this value.
description: "Deprecated: ignored. Perps order groups can hold orders on any market. This field will be removed."
x-go-type-skip-optional-pointer: true
CreateOrderGroupResponse:
type: object
Expand All @@ -2113,6 +2113,7 @@ components:
exchange_index:
allOf:
- $ref: '#/components/schemas/ExchangeIndex'
description: "Deprecated: has no effect on Perps order groups. This field will be removed."
x-go-type-skip-optional-pointer: true
x-omitempty: false
CreateSubaccountResponse:
Expand Down Expand Up @@ -2259,7 +2260,7 @@ components:
description: Additional details about the error, if available
ExchangeIndex:
type: integer
description: "Identifier for an exchange shard. Defaults to 0 if unspecified."
description: "Identifier for a Predictions exchange shard. Deprecated on Perps, which runs on one matching engine. Defaults to 0 if unspecified."
example: 0
ExchangeInstance:
type: string
Expand Down Expand Up @@ -2583,6 +2584,7 @@ components:
exchange_index:
allOf:
- $ref: '#/components/schemas/ExchangeIndex'
description: "Deprecated: has no effect on Perps order groups. This field will be removed."
x-go-type-skip-optional-pointer: true
x-omitempty: false
GetOrderGroupsResponse:
Expand Down Expand Up @@ -2622,7 +2624,7 @@ components:
maximum: 100
default: 0
x-go-type-skip-optional-pointer: true
description: Source exchange shard index (default 0)
description: "Predictions exchange shard of the source when source is event_contract. Leave unset (0) for Perps."
x-oapi-codegen-extra-tags:
validate: "gte=0,lte=100"
destination_exchange_shard:
Expand All @@ -2631,7 +2633,7 @@ components:
maximum: 100
default: 0
x-go-type-skip-optional-pointer: true
description: Destination exchange shard index (default 0)
description: "Predictions exchange shard of the destination when destination is event_contract. Leave unset (0) for Perps."
x-oapi-codegen-extra-tags:
validate: "gte=0,lte=100"
source_subaccount:
Expand Down Expand Up @@ -2677,6 +2679,7 @@ components:
exchange_index:
allOf:
- $ref: '#/components/schemas/ExchangeIndex'
description: "Deprecated: has no effect on Perps order groups. This field will be removed."
x-go-type-skip-optional-pointer: true
x-omitempty: false
# Market Orderbook schemas
Expand Down Expand Up @@ -3166,7 +3169,8 @@ components:
description: The market's current version. It starts at 1 and increases when trading resumes after a corporate action, such as a stock split. Pass it as market_version when creating an order to have the order rejected if the version has changed since you read it.
exchange_index:
type: integer
description: The group of markets this market belongs to for order groups. Order groups may only reference markets whose exchange_index matches theirs.
deprecated: true
description: "Deprecated: has no effect on order groups or rate limits. This field will be removed."
contract_size:
type: string
description: Fixed-point number with 6 decimal places
Expand Down
Loading