docs: sync with docs.polymarket.com - 2026-05-21
This commit is contained in:
@@ -140,6 +140,12 @@ components:
|
||||
error:
|
||||
type: string
|
||||
description: Error message
|
||||
code:
|
||||
type: string
|
||||
description: Machine-readable error code, when provided
|
||||
retry_after_seconds:
|
||||
type: integer
|
||||
description: Number of seconds to wait before retrying, when provided
|
||||
securitySchemes:
|
||||
polyApiKey:
|
||||
type: apiKey
|
||||
|
||||
@@ -180,6 +180,12 @@ components:
|
||||
error:
|
||||
type: string
|
||||
description: Error message
|
||||
code:
|
||||
type: string
|
||||
description: Machine-readable error code, when provided
|
||||
retry_after_seconds:
|
||||
type: integer
|
||||
description: Number of seconds to wait before retrying, when provided
|
||||
securitySchemes:
|
||||
polyApiKey:
|
||||
type: apiKey
|
||||
|
||||
@@ -175,6 +175,12 @@ components:
|
||||
error:
|
||||
type: string
|
||||
description: Error message
|
||||
code:
|
||||
type: string
|
||||
description: Machine-readable error code, when provided
|
||||
retry_after_seconds:
|
||||
type: integer
|
||||
description: Number of seconds to wait before retrying, when provided
|
||||
securitySchemes:
|
||||
polyApiKey:
|
||||
type: apiKey
|
||||
|
||||
@@ -164,6 +164,12 @@ components:
|
||||
error:
|
||||
type: string
|
||||
description: Error message
|
||||
code:
|
||||
type: string
|
||||
description: Machine-readable error code, when provided
|
||||
retry_after_seconds:
|
||||
type: integer
|
||||
description: Number of seconds to wait before retrying, when provided
|
||||
securitySchemes:
|
||||
polyApiKey:
|
||||
type: apiKey
|
||||
|
||||
@@ -198,6 +198,12 @@ components:
|
||||
error:
|
||||
type: string
|
||||
description: Error message
|
||||
code:
|
||||
type: string
|
||||
description: Machine-readable error code, when provided
|
||||
retry_after_seconds:
|
||||
type: integer
|
||||
description: Number of seconds to wait before retrying, when provided
|
||||
BuilderTrade:
|
||||
type: object
|
||||
description: Builder trade information
|
||||
|
||||
@@ -158,6 +158,12 @@ components:
|
||||
error:
|
||||
type: string
|
||||
description: Error message
|
||||
code:
|
||||
type: string
|
||||
description: Machine-readable error code, when provided
|
||||
retry_after_seconds:
|
||||
type: integer
|
||||
description: Number of seconds to wait before retrying, when provided
|
||||
securitySchemes:
|
||||
polyApiKey:
|
||||
type: apiKey
|
||||
|
||||
@@ -227,6 +227,12 @@ components:
|
||||
error:
|
||||
type: string
|
||||
description: Error message
|
||||
code:
|
||||
type: string
|
||||
description: Machine-readable error code, when provided
|
||||
retry_after_seconds:
|
||||
type: integer
|
||||
description: Number of seconds to wait before retrying, when provided
|
||||
securitySchemes:
|
||||
polyApiKey:
|
||||
type: apiKey
|
||||
|
||||
@@ -209,6 +209,12 @@ components:
|
||||
error:
|
||||
type: string
|
||||
description: Error message
|
||||
code:
|
||||
type: string
|
||||
description: Machine-readable error code, when provided
|
||||
retry_after_seconds:
|
||||
type: integer
|
||||
description: Number of seconds to wait before retrying, when provided
|
||||
Trade:
|
||||
type: object
|
||||
description: Trade information
|
||||
|
||||
@@ -197,6 +197,12 @@ components:
|
||||
error:
|
||||
type: string
|
||||
description: Error message
|
||||
code:
|
||||
type: string
|
||||
description: Machine-readable error code, when provided
|
||||
retry_after_seconds:
|
||||
type: integer
|
||||
description: Number of seconds to wait before retrying, when provided
|
||||
OpenOrder:
|
||||
type: object
|
||||
required:
|
||||
|
||||
@@ -76,6 +76,7 @@ paths:
|
||||
owner: f4f247b7-4ac7-ff29-a152-04fda0a8755a
|
||||
orderType: GTC
|
||||
deferExec: false
|
||||
postOnly: false
|
||||
responses:
|
||||
'200':
|
||||
description: Order successfully processed
|
||||
@@ -168,6 +169,11 @@ paths:
|
||||
error: could not insert order
|
||||
'503':
|
||||
description: Service unavailable - Trading disabled or cancel-only mode
|
||||
headers:
|
||||
Retry-After:
|
||||
description: Seconds to wait before retrying when provided by post-only mode.
|
||||
schema:
|
||||
type: integer
|
||||
content:
|
||||
application/json:
|
||||
schema:
|
||||
@@ -185,6 +191,14 @@ paths:
|
||||
error: >-
|
||||
Trading is currently cancel-only. New orders are not
|
||||
accepted, but cancels are allowed.
|
||||
post_only_mode:
|
||||
summary: Post-only mode
|
||||
value:
|
||||
error: >-
|
||||
post-only mode: only post-only orders and cancels are
|
||||
allowed
|
||||
code: post_only_mode
|
||||
retry_after_seconds: 79
|
||||
security:
|
||||
- polyApiKey: []
|
||||
polyAddress: []
|
||||
@@ -218,6 +232,12 @@ components:
|
||||
type: boolean
|
||||
description: Whether to defer execution
|
||||
default: false
|
||||
postOnly:
|
||||
type: boolean
|
||||
description: >-
|
||||
Whether the order must rest on the book and not match immediately.
|
||||
Only supported for GTC and GTD orders.
|
||||
default: false
|
||||
SendOrderResponse:
|
||||
type: object
|
||||
required:
|
||||
@@ -272,6 +292,12 @@ components:
|
||||
error:
|
||||
type: string
|
||||
description: Error message
|
||||
code:
|
||||
type: string
|
||||
description: Machine-readable error code, when provided
|
||||
retry_after_seconds:
|
||||
type: integer
|
||||
description: Number of seconds to wait before retrying, when provided
|
||||
Order:
|
||||
type: object
|
||||
description: >
|
||||
|
||||
@@ -83,6 +83,7 @@ paths:
|
||||
owner: f4f247b7-4ac7-ff29-a152-04fda0a8755a
|
||||
orderType: GTC
|
||||
deferExec: false
|
||||
postOnly: false
|
||||
- order:
|
||||
maker: '0x1234567890123456789012345678901234567890'
|
||||
signer: '0x1234567890123456789012345678901234567890'
|
||||
@@ -101,6 +102,7 @@ paths:
|
||||
owner: f4f247b7-4ac7-ff29-a152-04fda0a8755a
|
||||
orderType: GTC
|
||||
deferExec: false
|
||||
postOnly: false
|
||||
responses:
|
||||
'200':
|
||||
description: >-
|
||||
@@ -136,6 +138,25 @@ paths:
|
||||
orderID: ''
|
||||
status: delayed
|
||||
errorMsg: 'Rate limit exceeded for tokenId: 0xdef456abc789...'
|
||||
post_only_mode:
|
||||
summary: Post-only mode results
|
||||
value:
|
||||
- errorMsg: >-
|
||||
post-only mode: only post-only orders and cancels are
|
||||
allowed
|
||||
orderID: ''
|
||||
takingAmount: ''
|
||||
makingAmount: ''
|
||||
status: ''
|
||||
success: true
|
||||
- errorMsg: >-
|
||||
post-only mode: only post-only orders and cancels are
|
||||
allowed
|
||||
orderID: ''
|
||||
takingAmount: ''
|
||||
makingAmount: ''
|
||||
status: ''
|
||||
success: true
|
||||
'400':
|
||||
description: Bad request - Invalid order payload or validation error
|
||||
content:
|
||||
@@ -191,6 +212,11 @@ paths:
|
||||
error: could not insert order
|
||||
'503':
|
||||
description: Service unavailable - Trading disabled or cancel-only mode
|
||||
headers:
|
||||
Retry-After:
|
||||
description: Seconds to wait before retrying when provided by post-only mode.
|
||||
schema:
|
||||
type: integer
|
||||
content:
|
||||
application/json:
|
||||
schema:
|
||||
@@ -208,6 +234,14 @@ paths:
|
||||
error: >-
|
||||
Trading is currently cancel-only. New orders are not
|
||||
accepted, but cancels are allowed.
|
||||
post_only_mode:
|
||||
summary: Post-only mode
|
||||
value:
|
||||
error: >-
|
||||
post-only mode: only post-only orders and cancels are
|
||||
allowed
|
||||
code: post_only_mode
|
||||
retry_after_seconds: 79
|
||||
security:
|
||||
- polyApiKey: []
|
||||
polyAddress: []
|
||||
@@ -241,6 +275,12 @@ components:
|
||||
type: boolean
|
||||
description: Whether to defer execution
|
||||
default: false
|
||||
postOnly:
|
||||
type: boolean
|
||||
description: >-
|
||||
Whether the order must rest on the book and not match immediately.
|
||||
Only supported for GTC and GTD orders.
|
||||
default: false
|
||||
SendOrderResponse:
|
||||
type: object
|
||||
required:
|
||||
@@ -295,6 +335,12 @@ components:
|
||||
error:
|
||||
type: string
|
||||
description: Error message
|
||||
code:
|
||||
type: string
|
||||
description: Machine-readable error code, when provided
|
||||
retry_after_seconds:
|
||||
type: integer
|
||||
description: Number of seconds to wait before retrying, when provided
|
||||
Order:
|
||||
type: object
|
||||
description: >
|
||||
|
||||
@@ -110,6 +110,12 @@ components:
|
||||
error:
|
||||
type: string
|
||||
description: Error message
|
||||
code:
|
||||
type: string
|
||||
description: Machine-readable error code, when provided
|
||||
retry_after_seconds:
|
||||
type: integer
|
||||
description: Number of seconds to wait before retrying, when provided
|
||||
securitySchemes:
|
||||
polyApiKey:
|
||||
type: apiKey
|
||||
|
||||
Reference in New Issue
Block a user