Back to explore

finance

Forex

Credits: 0.001

History

POST /v1/forex/History

Returns the data for the previous close

Request

symbolstring

the forex symbol e.g GBPUSD

Response

closenumber

the close price

datestring

the date

highnumber

the peak price

lownumber

the low price

opennumber

the open price

symbolstring

the forex symbol

volumenumber

the volume

Request

Response

{
    "symbol": "GBPUSD",
    "open": 1.37902,
    "close": 1.3814,
    "high": 1.3824,
    "low": 1.37902,
    "volume": 3930,
    "date": "2021-06-20"
}

Credits: 0.0001

Price

POST /v1/forex/Price

Get the latest price for a given forex ticker

Request

symbolstring

forex symbol e.g GBPUSD

Response

pricenumber

the last price

symbolstring

the forex symbol e.g GBPUSD

Request

Response

{
    "symbol": "GBPUSD",
    "price": 1.38
}

Credits: 0.001

Quote

POST /v1/forex/Quote

Get the latest quote for the forex

Request

symbolstring

the forex symbol e.g GBPUSD

Response

ask_pricenumber

the asking price

bid_pricenumber

the bidding price

symbolstring

the forex symbol

timestampstring

the UTC timestamp of the quote

Request

Response

{
    "symbol": "GBPUSD",
    "ask_price": 1.38422,
    "bid_price": 1.38416,
    "timestamp": "2021-06-21T08:58:31Z"
}