跳转到主要内容
POST
Submit a signed RFQ trade
完整的交易流程请参阅 RFQ 交易合作伙伴 API 指南。

授权

RFQ-Key-Id
string
header
必填

The public half of the partner's API key.

RFQ-Timestamp
string
header
必填

Unix seconds, within 30 seconds of server time.

RFQ-Signature
string
header
必填

base64url(HMAC-SHA256(secret, timestamp + method + path + body)), padded.

请求体

application/json
orders
object[]
必填

Both signed orders, in any order.

Required array length: 2 elements
idempotencyKey
string
必填

The partner's own reference for the trade.

Maximum string length: 128
marketId
string

Required unless marketSource is combo.

marketSource
enum<string>
默认值:gamma

gamma for a Polymarket market id, bespoke for a bespoke market, combo for a market defined by its legs.

可用选项:
gamma,
bespoke,
combo
legs
object[]
combination
enum<string>

The combo operator. Omitted means and.

可用选项:
and
priceTolerance
string

As on PrepareRequest.

takerFeeAmount
enum<string>

Not an input. Omit it; anything but 0 is rejected with fee_not_accepted.

可用选项:
0
makerFeeAmount
enum<string>

Not an input. Omit it; anything but 0 is rejected with fee_not_accepted.

可用选项:
0

响应

The accepted trade, or the original one on an idempotent replay.

tradeId
string<uuid>
必填
status
enum<string>
必填

PENDING until the trade lands on-chain (FILLED) or is refused or fails (REJECTED).

可用选项:
PENDING,
FILLED,
REJECTED
createdAt
string<date-time>
必填
fees
object

The fee each side is charged, keyed like the trade's parties.

transactionHash
string

Set once the trade has executed, so only on a replay.

combo
object

A combo's on-chain identity. Present on combo trades only.