DEX Orders

This endpoint retrieves a list of DEX orders (or, offers) made by a given account that are outstanding as of the last validated ledger.

Request

GET /api/v1/account/{ACCOUNT}/orders

Example

curl https://api.xrpscan.com/api/v1/account/rBTwLga3i2gz3doX6Gva3MgEV8ZCD8jjah/orders

Response

[
  {
    "specification": {
      "direction": "buy",
      "quantity": {
        "currency": "USD",
        "value": "53934.3279",
        "counterparty": "rhub8VRN55s94qWKDv6jmDy1pUykJzF3wq"
      },
      "totalPrice": {
        "currency": "XRP",
        "value": "72045"
      }
    },
    "properties": {
      "maker": "rBTwLga3i2gz3doX6Gva3MgEV8ZCD8jjah",
      "sequence": 102024952,
      "makerExchangeRate": "0.74862"
    }
  },
  {
    "specification": {
      "direction": "buy",
      "quantity": {
        "currency": "EUR",
        "value": "49134.41118585",
        "counterparty": "rhub8VRN55s94qWKDv6jmDy1pUykJzF3wq"
      },
      "totalPrice": {
        "currency": "XRP",
        "value": "72045"
      }
    },
    "properties": {
      "maker": "rBTwLga3i2gz3doX6Gva3MgEV8ZCD8jjah",
      "sequence": 102024953,
      "makerExchangeRate": "0.68199613"
    }
  },
  ...
]

Response format

Additional properties may be available in the response based on rippled account_offers command.

Last updated