요금GitHub대시보드

Stellar

/order_book25 크레딧

Get order book

네트워크: stellar

매개변수

이름타입설명
selling_asset_typestringQuery. Type of the selling (base) asset: native, credit_alphanum4 or credit_alphanum12.
selling_asset_codestringQuery. Code of the selling asset. Required unless selling_asset_type is native. (선택)
selling_asset_issuerstringQuery. Issuer account of the selling asset. Required unless selling_asset_type is native. (선택)
buying_asset_typestringQuery. Type of the buying (counter) asset: native, credit_alphanum4 or credit_alphanum12.
buying_asset_codestringQuery. Code of the buying asset. Required unless buying_asset_type is native. (선택)
buying_asset_issuerstringQuery. Issuer account of the buying asset. Required unless buying_asset_type is native. (선택)
limitintegerQuery. Max bids and asks returned, 1 to 200. Defaults to 20. (선택)

반환값

타입

object

Order book: bids and asks (arrays of { price, price_r: { n, d }, amount }), plus base and counter asset objects (asset_type, asset_code, asset_issuer).

코드 예제

curl 'https://holy-burned-sky-stellar-mainnet.rpcnode.dev/7c9e6679-7425-40de-944b-e07fc1f90ae7/order_book'