getBidOrders
Get bid orders given an asset ID, in order of decreasing bid price or increasing ask price (if sortByPrice is true for expected orders, otherwise in the expected order of execution).
Request:
requestType is one of getBidOrders, getAskOrders, where expected orders are from the unconfirmed transactions pool or are phased transactions scheduled to finish in the next block
asset is the asset ID
firstIndex is a zero-based index to the first order to retrieve (optional, does not apply to expected orders)
lastIndex is a zero-based index to the last order to retrieve (optional, does not apply to expected orders)
Response:
(A) bidOrders or askOrders is the array of order objects (refer to Get Order for details) with the following additional field only for an expected order:
phased (B) is true if the order is phased, false otherwise
(N) requestProcessingTime is the API request processing time (in millisec)
Example:
Request:
http://localhost:801/BEAM?requestType=getAskOrders&asset=11700625361170592721&lastIndex=2
Response:
{ “bidOrders”: [ { “quantityQNT”: “250”, “priceNQT”: “100000000”, “accountRS”: “BEAM-7X92-29W5-7LQA-4V8CH”, “asset”: “11700625361170592721”, “type”: “ask”, “account”: “15768678879341129435”, “order”: “9230225288402446558”, “height”: 501552 }, { “quantityQNT”: “50000”, “priceNQT”: “100000000”, “accountRS”: “BEAM-7X92-29W5-7LQA-4V8CH”, “asset”: “11700625361170592721”, “type”: “ask”, “account”: “15768678879341129435”, “order”: “9243318318548315528”, “height”: 501552 }, { “quantityQNT”: “50”, “priceNQT”: “100000000”, “accountRS”: “BEAM-7X92-29W5-7LQA-4V8CH”, “asset”: “11700625361170592721”, “type”: “ask”, “account”: “15768678879341129435”, “order”: “9399454941412352140”, “height”: 501552 } ], “requestProcessingTime”: 1 }
Last updated