Back to catalogue

Crypto Market Data

Request-time crypto market data sourced directly from official Binance, Kraken, and Coinbase Exchange REST APIs with normalized JSON responses and deterministic source fallback.

mainnettestnet Single-symbol quote and candles routes in v1Default source=best fallback order across Binance, Kraken, and CoinbaseNormalized BTC-USD style contract with exchange-specific symbol translation underneathNo caching or persistence in the crypto data path

4 endpoints available

Click any endpoint to see details, example requests, and try it live with your Freighter wallet.

GET /markets/crypto/quote
mainnet $0.01 USD

Normalized crypto quote from Binance, Kraken, or Coinbase Exchange.

query.json

Edit this JSON before trying the endpoint. The paid retry uses the exact same payload.

curl
curl "https://xlm402.com/markets/crypto/quote?symbol=BTC-USD&source=best"
  • symbol=BASE-USD
  • source=best|binance|kraken|coinbase
GET /testnet/markets/crypto/quote
testnet $0.01 USD

Normalized crypto quote from Binance, Kraken, or Coinbase Exchange.

query.json

Edit this JSON before trying the endpoint. The paid retry uses the exact same payload.

curl
curl "https://xlm402.com/markets/crypto/quote?symbol=BTC-USD&source=best"
  • symbol=BASE-USD
  • source=best|binance|kraken|coinbase
GET /markets/crypto/candles
mainnet $0.01 USD

Normalized crypto candles from Binance, Kraken, or Coinbase Exchange.

query.json

Edit this JSON before trying the endpoint. The paid retry uses the exact same payload.

curl
curl "https://xlm402.com/markets/crypto/candles?symbol=BTC-USD&interval=1h&limit=48&source=best"
  • symbol=BASE-USD
  • interval=1m|5m|15m|1h|4h|1d|1w|1M
  • source=best|binance|kraken|coinbase
  • limit=1..500
  • start=ISO-8601 timestamp
  • end=ISO-8601 timestamp
GET /testnet/markets/crypto/candles
testnet $0.01 USD

Normalized crypto candles from Binance, Kraken, or Coinbase Exchange.

query.json

Edit this JSON before trying the endpoint. The paid retry uses the exact same payload.

curl
curl "https://xlm402.com/markets/crypto/candles?symbol=BTC-USD&interval=1h&limit=48&source=best"
  • symbol=BASE-USD
  • interval=1m|5m|15m|1h|4h|1d|1w|1M
  • source=best|binance|kraken|coinbase
  • limit=1..500
  • start=ISO-8601 timestamp
  • end=ISO-8601 timestamp