{ "opencollection": "1.0.0", "info": { "name": "Platform Server Accounts Trades API", "version": "3.0.0" }, "items": [ { "info": { "name": "Trades", "type": "folder" }, "items": [ { "info": { "name": "List All Trades", "type": "http" }, "http": { "method": "GET", "url": "https://platform-server.exampleanchor.com/trades", "params": [ { "name": "offer_id", "value": "", "type": "query", "description": "The offer ID. Used to filter for trades originating from a specific offer." }, { "name": "base_asset_type", "value": "", "type": "query", "description": "The type for the base asset. Either `native`, `credit_alphanum4`, or `credit_alphanum12`." }, { "name": "base_asset_issuer", "value": "", "type": "query", "description": "The Stellar address of the base asset’s issuer. Required if the `base_asset_type` is not `native`." }, { "name": "base_asset_code", "value": "", "type": "query", "description": "The code for the base asset. Required if the `base_asset_type` is not `native`." }, { "name": "counter_asset_type", "value": "", "type": "query", "description": "The type for the counter asset. Either native, credit_alphanum4, or credit_alphanum12." }, { "name": "counter_asset_issuer", "value": "", "type": "query", "description": "The Stellar address of the counter asset’s issuer. Required if the `counter_asset_type` is not `native`." }, { "name": "counter_asset_code", "value": "", "type": "query", "description": "The code for the counter asset. Required if the `counter_asset_type` is not `native`." }, { "name": "trade_type", "value": "", "type": "query", "description": "Can be set to all, orderbook, or liquidity_pools to filter only trades executed across a given mechanism." }, { "name": "cursor", "value": "", "type": "query", "description": "A number that points to a specific location in a collection of responses and is pulled from the paging_token value of a record." }, { "name": "order", "value": "", "type": "query", "description": "A designation of the order in which records should appear. Options include `asc` (ascending) or `desc` (descending). If this argument isn’t set, it defaults to `asc`." }, { "name": "limit", "value": "", "type": "query", "description": "The maximum number of records returned. The limit can range from 1 to 200 - an upper limit that is hardcoded in Horizon for performance reasons. If this argument isn’t designated, it defaults to 10." } ] }, "docs": "This endpoint lists all trades and can be used in streaming mode. Streaming mode allows you to listen for new trades as they are added to the Stellar ledger. If called in streaming mode, Horizon will start at the earliest known trade unless a cursor is set, in which case it will start from that cursor. By setting the cursor value to now, you can stream trades created since your request time. When filtering for a specific orderbook, you must use use all six of these arguments: base_asset_type, ba" } ] } ], "bundled": true }