Market

List USD exchange rates

GET/v1/currency/rate

Returns exchange rates against the US dollar for every supported fiat and crypto symbol.

Each rate is how many units of that currency equal one US dollar: EUR: 0.86 means 1 USD = 0.86 EUR, and BTC: 0.0000126 means 1 USD = 0.0000126 BTC. To convert an amount from A to B, multiply by rate[B] / rate[A].

The response is an array with one element per requested timestamp, in request order, or a single element for the current time when time is omitted. Each element has a fiat map, a crypto map, or both, depending on type.

No authentication is required.

Query Parameters

type?string

fiat or crypto to return only that map. Omit it, or pass all, to receive both.

Default"all"

Value in

  • "all"
  • "fiat"
  • "crypto"
time?string

Comma-separated timestamps, each an ISO 8601 UTC datetime with milliseconds (2024-09-24T00:00:00.000Z) or 13-digit epoch milliseconds. Defaults to the current time.

Match^((([0-9]{4}-[0-9]{1,2}-[0-9]{1,2}T[0-9]{1,2}:[0-9]{1,2}:[0-9]{1,2}\.[0-9]{1,3}Z)|([0-9]{13})),?)+$
Lengthlength <= 1024

Response Body

application/json

application/json

List USD exchange rates
curl --request GET \  --url 'https://gateway.bit2me.com/v1/currency/rate?type=fiat&time=2024-09-24T00%3A00%3A00.000Z%2C1727136000000'
[  {    "crypto": {      "BTC": 0.00001268655549688644,      "ETH": 0.0004118570053675658    },    "fiat": {      "EUR": 0.860151,      "USD": 1    }  }]