getAllTrades

Get all trades since a given timestamp in reverse block height order.

Request: requestType is getAllTrades timestamp is the timestamp (in seconds since the genesis block) to begin retrieving trades (optional, default 0) firstIndex is a zero-based index to the first trade to retrieve (optional) lastIndex is a zero-based index to the last trade to retrieve (optional) includeAssetInfo is true if asset information is to be included in the result (optional)

Note: If timestamp is omitted or zero, and no index is given, all trades in the entire blockchain will be retrieved, which may timeout or crash your system.

Response:

(A) trades is the array of trade objects (refer to Get Trades) (N) requestProcessingTime is the API request processing time (in millisec)

Example:

Request:

http://localhost:801/BEAM?requestType=getAllTrades&lastIndex=1

Response:

{ “trades”: [ { “seller”: “2695253629713716937”, “quantityQNT”: “7700”, “bidOrder”: “17489219850997945774”, “sellerRS”: “BEAM-7X92-29W5-7LQA-4V8CH”, “buyer”: “14676337193484961173”, “priceNQT”: “100000”, “askOrder”: “7125231493760146086”, “buyerRS”: “BEAM-7X92-29W5-7LQA-5E8CH”, “decimals”: 2, “name”: “CryptoMaps”, “block”: “10810208340839229954”, “asset”: “3702027329806229573”, “askOrderHeight”: 504189, “tradeType”: “sell”, “timestamp”: 122140342, “height”: 504949 }, { “seller”: “6905334832585552856”, “quantityQNT”: “1000”, “bidOrder”: “14942960390822608034”, “sellerRS”: “BEAM-7X92-29W5-7LQA-4V8CH”, “buyer”: “17808054289263456125”, “priceNQT”: “66500000”, “askOrder”: “3461704332885328085”, “buyerRS”: “BEAM-7X92-29W5-7LQA-5E8CH”, “decimals”: 0, “name”: “BTFGPool”, “block”: “9914674296156980645”, “asset”: “9036920395530551012”, “askOrderHeight”: 504920, “tradeType”: “buy”, “timestamp”: 122132789, “height”: 504920 } ], “requestProcessingTime”: 447 }

Last updated