{
  "x402Version": 2,
  "id": 72753,
  "slug": "saylorinnovations-api-explorer-xrp-orderbook",
  "resource": "https://saylorinnovations.com/api/explorer/xrp/orderbook",
  "description": "XRP Ledger DEX order book for XRP against any issued token: best bid and ask, spread, mid price and the top offers on each side with sizes.",
  "type": "http",
  "serviceName": "Saylor Innovations Data Desk",
  "mimeType": "application/json",
  "resourceType": "API",
  "accepts": [
    {
      "scheme": "exact",
      "network": "eip155:8453",
      "payTo": "0xA2A8dF0f7CaaBEa4e120a2568118f141569fc8aa",
      "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
      "amount": "10000",
      "amountUsd": 0.01,
      "maxTimeoutSeconds": 120
    },
    {
      "scheme": "exact",
      "network": "eip155:137",
      "payTo": "0xA2A8dF0f7CaaBEa4e120a2568118f141569fc8aa",
      "asset": "0x3c499c542cEF5E3811e1192ce70d8cC03d5c3359",
      "amount": "10000",
      "amountUsd": 0.01,
      "maxTimeoutSeconds": 120
    },
    {
      "scheme": "exact",
      "network": "eip155:42161",
      "payTo": "0xA2A8dF0f7CaaBEa4e120a2568118f141569fc8aa",
      "asset": "0xaf88d065e77c8cC2239327C5EDb3A432268e5831",
      "amount": "10000",
      "amountUsd": 0.01,
      "maxTimeoutSeconds": 120
    },
    {
      "scheme": "exact",
      "network": "solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp",
      "payTo": "7LSjfrJf8fNsB8VA9u7N3WEn25smQLpob3SvyUvXacy7",
      "asset": "EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v",
      "amount": "10000",
      "amountUsd": 0.01,
      "maxTimeoutSeconds": 120
    },
    {
      "scheme": "exact",
      "network": "solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp",
      "payTo": "7LSjfrJf8fNsB8VA9u7N3WEn25smQLpob3SvyUvXacy7",
      "asset": "Es9vMFrzaCERmJfrF4H2FYD4KCoNkY11McCe8BenwNYB",
      "amount": "10000",
      "amountUsd": 0.01,
      "maxTimeoutSeconds": 120
    },
    {
      "scheme": "exact",
      "network": "solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp",
      "payTo": "7LSjfrJf8fNsB8VA9u7N3WEn25smQLpob3SvyUvXacy7",
      "asset": "So11111111111111111111111111111111111111112",
      "amount": "95830",
      "amountUsd": 0.01,
      "maxTimeoutSeconds": 120
    }
  ],
  "outputSchema": {
    "type": "object",
    "properties": {
      "chain": {
        "type": "string",
        "description": "the chain this describes"
      },
      "pair": {
        "type": "string",
        "description": "the trading pair"
      },
      "currency": {
        "type": "string",
        "description": "issued token code"
      },
      "issuer": {
        "type": "string",
        "description": "issuer address"
      },
      "ledger_index": {
        "type": "number",
        "description": "ledger the book was read at"
      },
      "best_bid_token_per_xrp": {
        "type": [
          "number",
          "null"
        ],
        "description": "highest price offered for XRP"
      },
      "best_ask_token_per_xrp": {
        "type": [
          "number",
          "null"
        ],
        "description": "lowest price asked for XRP"
      },
      "mid_token_per_xrp": {
        "type": [
          "number",
          "null"
        ],
        "description": "midpoint of best bid and ask"
      },
      "spread_pct": {
        "type": [
          "number",
          "null"
        ],
        "description": "spread as a percent of the mid price"
      },
      "bids": {
        "description": "offers buying XRP, best first",
        "type": [
          "array",
          "null"
        ],
        "items": {
          "type": "object",
          "properties": {
            "price_token_per_xrp": {
              "description": "token per XRP",
              "type": [
                "number",
                "null"
              ]
            },
            "xrp_amount": {
              "description": "XRP size",
              "type": [
                "number",
                "null"
              ]
            },
            "token_amount": {
              "description": "token size",
              "type": [
                "number",
                "null"
              ]
            },
            "account": {
              "description": "offer owner",
              "type": [
                "string",
                "null"
              ]
            }
          }
        }
      },
      "asks": {
        "description": "offers selling XRP, best first",
        "type": [
          "array",
          "null"
        ],
        "items": {
          "type": "object",
          "properties": {
            "price_token_per_xrp": {
              "description": "token per XRP",
              "type": [
                "number",
                "null"
              ]
            },
            "xrp_amount": {
              "description": "XRP size",
              "type": [
                "number",
                "null"
              ]
            },
            "token_amount": {
              "description": "token size",
              "type": [
                "number",
                "null"
              ]
            },
            "account": {
              "description": "offer owner",
              "type": [
                "string",
                "null"
              ]
            }
          }
        }
      },
      "note": {
        "type": "string",
        "description": "plain-language reading of the result, including units"
      },
      "source": {
        "type": "string",
        "description": "where the data was read from"
      }
    },
    "required": [
      "chain",
      "pair",
      "currency",
      "issuer",
      "bids",
      "asks",
      "note",
      "source"
    ]
  },
  "extensions": {
    "bazaar": {
      "info": {
        "input": {
          "type": "http",
          "method": "GET",
          "queryParams": {
            "currency": "USD",
            "issuer": "rhub8VRN55s94qWKDv6jmDy1pUykJzF3wq"
          }
        },
        "output": {
          "type": "json",
          "example": {
            "chain": "xrp",
            "pair": "XRP/USD",
            "currency": "USD",
            "issuer": "rhub8VRN55s94qWKDv6jmDy1pUykJzF3wq",
            "ledger_index": 107796579,
            "best_bid_token_per_xrp": 1.3814952,
            "best_ask_token_per_xrp": 1.4199849,
            "mid_token_per_xrp": 1.4007401,
            "spread_pct": 2.7478,
            "bids": [
              {
                "price_token_per_xrp": 1.3814952,
                "xrp_amount": 4.971079,
                "token_amount": 6.867522,
                "account": "r9D2fzWBMmeyKaHZ2zeWyZUAKnDRrw1mrd"
              },
              {
                "price_token_per_xrp": 1.3814676,
                "xrp_amount": 9.222786,
                "token_amount": 12.74098,
                "account": "rKqj8KTpVAeD67ureP567vDX3tDj4u1n5w"
              },
              {
                "price_token_per_xrp": 1.345,
                "xrp_amount": 8.264353,
                "token_amount": 11.115555,
                "account": "rHUnYPZ96EFHmqDdvFdKVnJMQ9ysKGQLsC"
              }
            ],
            "asks": [
              {
                "price_token_per_xrp": 1.4199849,
                "xrp_amount": 51.608031,
                "token_amount": 73.282625,
                "account": "rP4gybHF3astaSuih16DMpL16aFa6DjYkX"
              },
              {
                "price_token_per_xrp": 1.4199992,
                "xrp_amount": 12849,
                "token_amount": 18245.57,
                "account": "rBTwLga3i2gz3doX6Gva3MgEV8ZCD8jjah"
              },
              {
                "price_token_per_xrp": 1.42,
                "xrp_amount": 1000,
                "token_amount": 1420,
                "account": "rLkPKxcS6sBjGR61dedRk5hd8W1qNXZ3qn"
              }
            ],
            "note": "Prices are the issued token per 1 XRP. Asks are offers selling XRP for the token (cheapest first); bids are offers buying XRP with the token (highest first). This is the central-limit order book only…",
            "source": "XRP Ledger JSON-RPC book_offers (public server)"
          }
        }
      },
      "schema": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "type": "object",
        "properties": {
          "input": {
            "type": "object",
            "properties": {
              "type": {
                "type": "string",
                "const": "http"
              },
              "method": {
                "type": "string",
                "enum": [
                  "GET"
                ]
              },
              "queryParams": {
                "type": "object",
                "properties": {
                  "currency": {
                    "type": "string",
                    "description": "the issued token code, for example USD or a 40-character hex code"
                  },
                  "issuer": {
                    "type": "string",
                    "description": "the issuer r-address of that token"
                  }
                },
                "required": [
                  "currency",
                  "issuer"
                ]
              }
            },
            "required": [
              "type",
              "method"
            ],
            "additionalProperties": false
          },
          "output": {
            "type": "object",
            "properties": {
              "type": {
                "type": "string",
                "const": "json"
              },
              "example": {
                "type": "object",
                "properties": {
                  "chain": {
                    "type": "string",
                    "description": "the chain this describes"
                  },
                  "pair": {
                    "type": "string",
                    "description": "the trading pair"
                  },
                  "currency": {
                    "type": "string",
                    "description": "issued token code"
                  },
                  "issuer": {
                    "type": "string",
                    "description": "issuer address"
                  },
                  "ledger_index": {
                    "type": "number",
                    "description": "ledger the book was read at"
                  },
                  "best_bid_token_per_xrp": {
                    "type": [
                      "number",
                      "null"
                    ],
                    "description": "highest price offered for XRP"
                  },
                  "best_ask_token_per_xrp": {
                    "type": [
                      "number",
                      "null"
                    ],
                    "description": "lowest price asked for XRP"
                  },
                  "mid_token_per_xrp": {
                    "type": [
                      "number",
                      "null"
                    ],
                    "description": "midpoint of best bid and ask"
                  },
                  "spread_pct": {
                    "type": [
                      "number",
                      "null"
                    ],
                    "description": "spread as a percent of the mid price"
                  },
                  "bids": {
                    "description": "offers buying XRP, best first",
                    "type": [
                      "array",
                      "null"
                    ],
                    "items": {
                      "type": "object",
                      "properties": {
                        "price_token_per_xrp": {
                          "description": "token per XRP",
                          "type": [
                            "number",
                            "null"
                          ]
                        },
                        "xrp_amount": {
                          "description": "XRP size",
                          "type": [
                            "number",
                            "null"
                          ]
                        },
                        "token_amount": {
                          "description": "token size",
                          "type": [
                            "number",
                            "null"
                          ]
                        },
                        "account": {
                          "description": "offer owner",
                          "type": [
                            "string",
                            "null"
                          ]
                        }
                      }
                    }
                  },
                  "asks": {
                    "description": "offers selling XRP, best first",
                    "type": [
                      "array",
                      "null"
                    ],
                    "items": {
                      "type": "object",
                      "properties": {
                        "price_token_per_xrp": {
                          "description": "token per XRP",
                          "type": [
                            "number",
                            "null"
                          ]
                        },
                        "xrp_amount": {
                          "description": "XRP size",
                          "type": [
                            "number",
                            "null"
                          ]
                        },
                        "token_amount": {
                          "description": "token size",
                          "type": [
                            "number",
                            "null"
                          ]
                        },
                        "account": {
                          "description": "offer owner",
                          "type": [
                            "string",
                            "null"
                          ]
                        }
                      }
                    }
                  },
                  "note": {
                    "type": "string",
                    "description": "plain-language reading of the result, including units"
                  },
                  "source": {
                    "type": "string",
                    "description": "where the data was read from"
                  }
                },
                "required": [
                  "chain",
                  "pair",
                  "currency",
                  "issuer",
                  "bids",
                  "asks",
                  "note",
                  "source"
                ]
              }
            },
            "required": [
              "type"
            ]
          }
        },
        "required": [
          "input"
        ]
      }
    }
  },
  "tags": [
    "xrp dex order book",
    "xrpl bids and asks",
    "xrp token spread",
    "xrpl market depth",
    "xrp usd orderbook"
  ],
  "sourceHost": "saylorinnovations.com",
  "lastUpdated": "2026-10-26T22:14:01.990Z",
  "quality": {},
  "metadata": {
    "serviceName": "Saylor Innovations Data Desk",
    "method": "GET",
    "mimeType": "application/json",
    "inputSchema": {
      "type": "object",
      "properties": {
        "currency": {
          "type": "string",
          "description": "the issued token code, for example USD or a 40-character hex code"
        },
        "issuer": {
          "type": "string",
          "description": "the issuer r-address of that token"
        }
      },
      "required": [
        "currency",
        "issuer"
      ]
    },
    "exampleResponse": {
      "chain": "xrp",
      "pair": "XRP/USD",
      "currency": "USD",
      "issuer": "rhub8VRN55s94qWKDv6jmDy1pUykJzF3wq",
      "ledger_index": 107796579,
      "best_bid_token_per_xrp": 1.3814952,
      "best_ask_token_per_xrp": 1.4199849,
      "mid_token_per_xrp": 1.4007401,
      "spread_pct": 2.7478,
      "bids": [
        {
          "price_token_per_xrp": 1.3814952,
          "xrp_amount": 4.971079,
          "token_amount": 6.867522,
          "account": "r9D2fzWBMmeyKaHZ2zeWyZUAKnDRrw1mrd"
        },
        {
          "price_token_per_xrp": 1.3814676,
          "xrp_amount": 9.222786,
          "token_amount": 12.74098,
          "account": "rKqj8KTpVAeD67ureP567vDX3tDj4u1n5w"
        },
        {
          "price_token_per_xrp": 1.345,
          "xrp_amount": 8.264353,
          "token_amount": 11.115555,
          "account": "rHUnYPZ96EFHmqDdvFdKVnJMQ9ysKGQLsC"
        }
      ],
      "asks": [
        {
          "price_token_per_xrp": 1.4199849,
          "xrp_amount": 51.608031,
          "token_amount": 73.282625,
          "account": "rP4gybHF3astaSuih16DMpL16aFa6DjYkX"
        },
        {
          "price_token_per_xrp": 1.4199992,
          "xrp_amount": 12849,
          "token_amount": 18245.57,
          "account": "rBTwLga3i2gz3doX6Gva3MgEV8ZCD8jjah"
        },
        {
          "price_token_per_xrp": 1.42,
          "xrp_amount": 1000,
          "token_amount": 1420,
          "account": "rLkPKxcS6sBjGR61dedRk5hd8W1qNXZ3qn"
        }
      ],
      "note": "Prices are the issued token per 1 XRP. Asks are offers selling XRP for the token (cheapest first); bids are offers buying XRP with the token (highest first). This is the central-limit order book only…",
      "source": "XRP Ledger JSON-RPC book_offers (public server)"
    },
    "parameterLocation": "query",
    "extensions": {
      "bazaar": {
        "info": {
          "input": {
            "type": "http",
            "method": "GET",
            "queryParams": {
              "currency": "USD",
              "issuer": "rhub8VRN55s94qWKDv6jmDy1pUykJzF3wq"
            }
          },
          "output": {
            "type": "json",
            "example": {
              "chain": "xrp",
              "pair": "XRP/USD",
              "currency": "USD",
              "issuer": "rhub8VRN55s94qWKDv6jmDy1pUykJzF3wq",
              "ledger_index": 107796579,
              "best_bid_token_per_xrp": 1.3814952,
              "best_ask_token_per_xrp": 1.4199849,
              "mid_token_per_xrp": 1.4007401,
              "spread_pct": 2.7478,
              "bids": [
                {
                  "price_token_per_xrp": 1.3814952,
                  "xrp_amount": 4.971079,
                  "token_amount": 6.867522,
                  "account": "r9D2fzWBMmeyKaHZ2zeWyZUAKnDRrw1mrd"
                },
                {
                  "price_token_per_xrp": 1.3814676,
                  "xrp_amount": 9.222786,
                  "token_amount": 12.74098,
                  "account": "rKqj8KTpVAeD67ureP567vDX3tDj4u1n5w"
                },
                {
                  "price_token_per_xrp": 1.345,
                  "xrp_amount": 8.264353,
                  "token_amount": 11.115555,
                  "account": "rHUnYPZ96EFHmqDdvFdKVnJMQ9ysKGQLsC"
                }
              ],
              "asks": [
                {
                  "price_token_per_xrp": 1.4199849,
                  "xrp_amount": 51.608031,
                  "token_amount": 73.282625,
                  "account": "rP4gybHF3astaSuih16DMpL16aFa6DjYkX"
                },
                {
                  "price_token_per_xrp": 1.4199992,
                  "xrp_amount": 12849,
                  "token_amount": 18245.57,
                  "account": "rBTwLga3i2gz3doX6Gva3MgEV8ZCD8jjah"
                },
                {
                  "price_token_per_xrp": 1.42,
                  "xrp_amount": 1000,
                  "token_amount": 1420,
                  "account": "rLkPKxcS6sBjGR61dedRk5hd8W1qNXZ3qn"
                }
              ],
              "note": "Prices are the issued token per 1 XRP. Asks are offers selling XRP for the token (cheapest first); bids are offers buying XRP with the token (highest first). This is the central-limit order book only…",
              "source": "XRP Ledger JSON-RPC book_offers (public server)"
            }
          }
        },
        "schema": {
          "$schema": "https://json-schema.org/draft/2020-12/schema",
          "type": "object",
          "properties": {
            "input": {
              "type": "object",
              "properties": {
                "type": {
                  "type": "string",
                  "const": "http"
                },
                "method": {
                  "type": "string",
                  "enum": [
                    "GET"
                  ]
                },
                "queryParams": {
                  "type": "object",
                  "properties": {
                    "currency": {
                      "type": "string",
                      "description": "the issued token code, for example USD or a 40-character hex code"
                    },
                    "issuer": {
                      "type": "string",
                      "description": "the issuer r-address of that token"
                    }
                  },
                  "required": [
                    "currency",
                    "issuer"
                  ]
                }
              },
              "required": [
                "type",
                "method"
              ],
              "additionalProperties": false
            },
            "output": {
              "type": "object",
              "properties": {
                "type": {
                  "type": "string",
                  "const": "json"
                },
                "example": {
                  "type": "object",
                  "properties": {
                    "chain": {
                      "type": "string",
                      "description": "the chain this describes"
                    },
                    "pair": {
                      "type": "string",
                      "description": "the trading pair"
                    },
                    "currency": {
                      "type": "string",
                      "description": "issued token code"
                    },
                    "issuer": {
                      "type": "string",
                      "description": "issuer address"
                    },
                    "ledger_index": {
                      "type": "number",
                      "description": "ledger the book was read at"
                    },
                    "best_bid_token_per_xrp": {
                      "type": [
                        "number",
                        "null"
                      ],
                      "description": "highest price offered for XRP"
                    },
                    "best_ask_token_per_xrp": {
                      "type": [
                        "number",
                        "null"
                      ],
                      "description": "lowest price asked for XRP"
                    },
                    "mid_token_per_xrp": {
                      "type": [
                        "number",
                        "null"
                      ],
                      "description": "midpoint of best bid and ask"
                    },
                    "spread_pct": {
                      "type": [
                        "number",
                        "null"
                      ],
                      "description": "spread as a percent of the mid price"
                    },
                    "bids": {
                      "description": "offers buying XRP, best first",
                      "type": [
                        "array",
                        "null"
                      ],
                      "items": {
                        "type": "object",
                        "properties": {
                          "price_token_per_xrp": {
                            "description": "token per XRP",
                            "type": [
                              "number",
                              "null"
                            ]
                          },
                          "xrp_amount": {
                            "description": "XRP size",
                            "type": [
                              "number",
                              "null"
                            ]
                          },
                          "token_amount": {
                            "description": "token size",
                            "type": [
                              "number",
                              "null"
                            ]
                          },
                          "account": {
                            "description": "offer owner",
                            "type": [
                              "string",
                              "null"
                            ]
                          }
                        }
                      }
                    },
                    "asks": {
                      "description": "offers selling XRP, best first",
                      "type": [
                        "array",
                        "null"
                      ],
                      "items": {
                        "type": "object",
                        "properties": {
                          "price_token_per_xrp": {
                            "description": "token per XRP",
                            "type": [
                              "number",
                              "null"
                            ]
                          },
                          "xrp_amount": {
                            "description": "XRP size",
                            "type": [
                              "number",
                              "null"
                            ]
                          },
                          "token_amount": {
                            "description": "token size",
                            "type": [
                              "number",
                              "null"
                            ]
                          },
                          "account": {
                            "description": "offer owner",
                            "type": [
                              "string",
                              "null"
                            ]
                          }
                        }
                      }
                    },
                    "note": {
                      "type": "string",
                      "description": "plain-language reading of the result, including units"
                    },
                    "source": {
                      "type": "string",
                      "description": "where the data was read from"
                    }
                  },
                  "required": [
                    "chain",
                    "pair",
                    "currency",
                    "issuer",
                    "bids",
                    "asks",
                    "note",
                    "source"
                  ]
                }
              },
              "required": [
                "type"
              ]
            }
          },
          "required": [
            "input"
          ]
        }
      }
    },
    "examples": [
      {
        "label": "Unpaid discovery call",
        "method": "GET",
        "url": "https://saylorinnovations.com/api/explorer/xrp/orderbook?currency=USD&issuer=rhub8VRN55s94qWKDv6jmDy1pUykJzF3wq",
        "expectedStatus": 402
      }
    ],
    "cacheTtlSeconds": 0,
    "capabilities": [],
    "noAccountRequired": true,
    "noApiKeyRequired": true,
    "sideEffects": "Paid calls settle the advertised payment; see the provider contract for execution behavior.",
    "payment": {
      "protocol": "x402",
      "settlement": "direct-to-provider"
    },
    "provider": {
      "name": "Saylor Innovations",
      "host": "saylorinnovations.com",
      "manifestUrl": "https://saylorinnovations.com/.well-known/x402.json"
    }
  },
  "liveness": {
    "reliability": null
  },
  "verified": true,
  "featured": false,
  "provider": {
    "host": "saylorinnovations.com",
    "manifest_name": "Saylor Innovations Knowledge Base",
    "source": "submitted",
    "source_manifest_url": "https://saylorinnovations.com/.well-known/x402.json",
    "submitted_at": "2026-10-26T05:52:02.113Z"
  },
  "exampleResponse": {
    "chain": "string",
    "pair": "string",
    "currency": "string",
    "issuer": "string",
    "ledger_index": 0,
    "best_bid_token_per_xrp": 0,
    "best_ask_token_per_xrp": 0,
    "mid_token_per_xrp": 0,
    "spread_pct": 0,
    "bids": [
      {
        "price_token_per_xrp": 0,
        "xrp_amount": 0,
        "token_amount": 0,
        "account": "string"
      }
    ],
    "asks": [
      {
        "price_token_per_xrp": 0,
        "xrp_amount": 0,
        "token_amount": 0,
        "account": "string"
      }
    ],
    "note": "string",
    "source": "string"
  }
}