跳转到主要内容
POST
Reference example

请求规范

  • 方法与路径: POST /apis/v1/polymarket/quote
  • 可用状态: enabled
  • 请求 URL 模板: https://api.aisa.one/apis/v1/polymarket/quote
完整 OpenAPI 定义 有效请求声明(包括认证和引用的 schema):

费用与请求规则

公开参考价格:每次成功请求 $0.012 USD。 账户适用价格可能不同;支持报价的接口可按实际请求获取报价。

授权

Authorization
string
header
必填

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

请求体

application/json
fromAmountBaseUnit
string
必填

Amount of tokens to send

示例:

"10000000"

fromChainId
string
必填

Source Chain ID

示例:

"137"

fromTokenAddress
string
必填

Source token address

示例:

"0x3c499c542cEF5E3811e1192ce70d8cC03d5c3359"

recipientAddress
string
必填

Address of the recipient

示例:

"0x17eC161f126e82A8ba337f4022d574DBEaFef575"

toChainId
string
必填

Destination Chain ID

示例:

"137"

toTokenAddress
string
必填

Destination token address

示例:

"0xC011a7E12a19f7B1f670d46F03B03f3342E82DFB"

响应

Quote retrieved successfully

estCheckoutTimeMs
integer

Estimated time to complete the checkout in milliseconds

示例:

25000

estFeeBreakdown
object

Breakdown of the estimated fees

estInputUsd
number

Estimated token amount received in USD

示例:

14.488305

estOutputUsd
number

Estimated token amount sent in USD

示例:

14.488305

estToTokenBaseUnit
string

Estimated token amount received

示例:

"14491203"

quoteId
string

Unique quote id of the request

示例:

"0x00c34ba467184b0146406d62b0e60aaa24ed52460bd456222b6155a0d9de0ad5"