跳转到主要内容
POST
Build both orders to sign
完整的交易流程请参阅 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
operation
enum<string>
必填

split: both sides buy, one YES and one NO. merge: both sides sell, one YES and one NO. trade: one side buys an outcome token from the other.

可用选项:
split,
merge,
trade
price
string
必填

The agreed price in (0, 1). The YES price for a split or merge, the traded token's price for a trade.

示例:

"0.65"

shares
string
必填

A base-10 integer in 6-decimal units.

Pattern: ^[0-9]+$
示例:

"65000000"

parties
object
必填

Keyed yes and no for a split or merge, buyer and seller for a trade.

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[]

The combo's legs, for marketSource combo only.

combination
enum<string>

The combo operator. Omitted means and.

可用选项:
and
token
enum<string>

The outcome token that changes hands, for trade only.

可用选项:
yes,
no
priceTolerance
string

Tightens the price band to this fraction of the mark, e.g. 0.05 for ±5%. Wider than the default is refused.

响应

Both orders, keyed like the request's parties.

orders
object
必填

Keyed like the request's parties.

fees
object
必填

The fee each side will be charged, keyed like orders.

expiresAt
string<date-time>
必填

After this, a submission of these orders is refused as stale.