Marketplace API
获取订单信息

获取订单信息#

该接口用于获取订单信息,支持通过 runesid 获取指定项目订单信息。

请求地址#

GET https://www.okx.com/api/v5/mktplace/nft/runes/get-runes-order-list

请求参数#

字段名类型是否必传说明
runesIdStringrunes 代币的唯一标识
cursorString指向要检索的排序序号的游标 (最大 1,000)
limitInteger分页大小 (默认值 10,最大 100)。返回最大的订单数
sortByString订单排序规则,默认排序为单价正序排列 (unitPriceAsc)。排序枚举: unitPriceAsc、unitPriceDesc、totalPriceAsc、totalPriceDesc、listedTimeAsc、listedTimeDesc

返回参数#

参数类型参数说明
assetIdIntegerid (DB 主键 无实际意义)
tickerTypeString代币类型 (4-Runes)
tickerInteger代币名称
tickerIdString代币 id
ownerAddressString钱包地址
amountString在该 UTXO 的 XRC20 数量
chainInteger
inscriptionNumStringInscription 编号
utxoTxHashString交易 hash
utxoVoutIntegerutxoVout
utxoValueStringutxoValue
txHashString交易 hash
nameString代币名称
tickerIconString代币 icon 链接
statusInteger挂单状态 (0-未挂单 1-已挂单 2-pending 中)
listTimeLong挂单时间
orderIdLong订单 id
confirmationsLong区块高度信息
currencyString总价 - 币种
currencyUrlString总价 - 币种 url
satPriceBigDecimal总价 - sat 价格
priceBigDecimal总价 - btc 价格
usdPriceBigDecimal总价 - usd 价格
currencyString单价 - 币种
currencyUrlString单价 - 币种 url
satPriceBigDecimal单价 - sat 价格
priceBigDecimal单价 - btc 价格
usdPriceBigDecimal单价 - usd 价格
unavailableInteger"1 - 同一个 UTXO 包含 多个 Atomicals 资产; 2 - 同一个 UTXO 包含多个协议资产"
symbolStringSymbol

请求示例#

shell
curl --location --request GET 'https://beta.okex.org/api/v5/mktplace/nft/runes/get-runes-order-list?runesId=840000:3' \
--header 'OK-ACCESS-KEY: XXXX' \
--header 'OK-ACCESS-PASSPHRASE: XXXX'

返回示例#

200
{
  "code": 0,
  "data": {
  "cursor": "1",
  "items": [
{
  "amount": "889806",
  "assetId": "28734126488062286",
  "chain": 0,
  "confirmations": null,
  "inscriptionNum": "",
  "listTime": 1714398972,
  "name": "DOG•GO•TO•THE•MOON",
  "orderId": 201268,
  "ownerAddress": "bc1pxav32udnt0062dlvmjn7tp3qneamudpg492t7qmxsu7m73ldd7uq768q8p",
  "status": 1,
  "symbol": "🐕",
  "ticker": "DOG•GO•TO•THE•MOON",
  "tickerIcon": "https://static.coinall.ltd/cdn/web3/currency/token/1714125941761.png/type=png_350_0",
  "tickerId": "840000:3",
  "tickerType": 4,
  "totalPrice": {
  "currency": "BTC",
  "currencyUrl": "https://static.coinall.ltd/cdn/nft/4834651a-7c4e-4249-91c1-cf680af39dc0.png",
  "price": "0.05472306",
  "satPrice": "5472306",
  "usdPrice": "3388.298650632"
},
  "txHash": "",
  "unavailable": null,
  "unitPrice": {
  "currency": "BTC",
  "currencyUrl": "https://static.coinall.ltd/cdn/nft/4834651a-7c4e-4249-91c1-cf680af39dc0.png",
  "price": "0.0000000615",
  "satPrice": "6.15",
  "usdPrice": "0.0038079078"
},
  "utxoTxHash": "80efaeffcbf70be91579afb631e45cd28df75b0883f45525d1bb6b04b21969f3",
  "utxoValue": "546",
  "utxoVout": 1015
}
  ]
},
  "msg": ""
}