POST
/
recentSpreadData
curl --request POST \
  --url https://gateway.finhub.cloud/crypto/recentSpreadData \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "pair": "XBTUSD",
  "since": "1613568488"
}'
{
  "error": [],
  "result": {
    "XXBTZUSD": [
      [
        1646209508,
        "44168.10000",
        "44172.90000"
      ],
      [
        1646209508,
        "44168.30000",
        "44172.90000"
      ],
      [
        1646209508,
        "44168.50000",
        "44172.90000"
      ],
      [
        1646209508,
        "44168.70000",
        "44172.90000"
      ],
      [
        1646209508,
        "44168.30000",
        "44172.90000"
      ],
      [
        1646209508,
        "44164.80000",
        "44172.90000"
      ],
      [
        1646209508,
        "44164.20000",
        "44172.90000"
      ],
      [
        1646209508,
        "44164.90000",
        "44172.90000"
      ],
      [
        1646209509,
        "44164.20000",
        "44172.90000"
      ],
      [
        1646209509,
        "44164.20000",
        "44172.80000"
      ],
      [
        1646209509,
        "44164.30000",
        "44172.80000"
      ],
      [
        1646209509,
        "44164.90000",
        "44172.80000"
      ],
      [
        1646209509,
        "44165.00000",
        "44172.80000"
      ]
    ],
    "last": 1646209535
  }
}

Authorizations

Authorization
string
headerrequired

The access token received from the authorization server in the OAuth 2.0 flow.

Body

application/json ยท object

The body is of type object.

Response

200 - application/json

The response is of type object.