Skip to main content

getBidOrder

Retrieves full details for a single active buy-side (bid) order by its unique 6464-bit order identifier.


Endpoint Details

  • HTTP Method: POST
  • Gateway Path: /nxt
  • Content-Type: application/x-www-form-urlencoded
  • API Tags: AE
  • Chain Specific: Yes

Request Parameters

ParameterTypeRequiredDescription
requestTypeStringYesMust be set to getBidOrder.
orderlong / StringYesUnique 6464-bit identifier of the bid order to look up.
chainintYesSovereign BetaChain ID where the order resides.

Example Request

curl -X POST http://localhost:22024/nxt \
-d "requestType=getBidOrder" \
-d "chain=2" \
-d "order=47382019481029384"

Successful Response

{
"order": "47382019481029384",
"totem": "9876543210123456789",
"currency": "5544332211",
"account": "9876543210987654321",
"accountRS": "SHAMWARI-WXYZ-EFGH-JKLM-NOPQR",
"quantityQNT": "500000",
"priceNQT": "50000",
"height": 500122,
"type": "bid"
}

Error Codes

Error CodeCause / Description
UNKNOWN_ORDERThe specified order ID does not exist on the specified BetaChain order book.
INCORRECT_CHAINInvalid or inactive BetaChain ID specified.