This document was generated automatically. Please see README Generator for more info.
The quote endpoint returns a response with nested data structures and some redundant fields. Below is an example response:
{
"result": 272.04499999999996,
"data": {
"result": 272.04499999999996,
"bid": 272.02,
"mid": 272.04499999999996,
"ask": 272.07,
"mid_price": 272.045,
"bid_price": 272.02,
"bid_volume": 10000,
"ask_price": 272.07,
"ask_volume": 10000
}
}result,data.result, anddata.mid: All three fields contain the same value, calculated as(bid + ask) / 2(simple arithmetic mean)data.mid_price: Contains the liquidity-weighted mid price, which differs from the simple arithmetic mean
data.bid=data.bid_price(same value)data.ask=data.ask_price(same value)
data.bid_volume: Volume available at the bid pricedata.ask_volume: Volume available at the ask price
| Required? | Name | Description | Type | Options | Default |
|---|---|---|---|---|---|
| ✅ | WS_API_USERNAME | API username for WS endpoint | string | ||
| ✅ | WS_API_PASSWORD | API password for WS endpoint | string | ||
| ✅ | WS_API_ENDPOINT | WS endpoint for Data Provider | string |
There are no rate limits for this adapter.
| Required? | Name | Description | Type | Options | Default |
|---|---|---|---|---|---|
| endpoint | The endpoint to use | string | commodities, forex, fx, quote, stock, stock_quotes | quote |
Supported names for this endpoint are: commodities, forex, fx, quote, stock, stock_quotes.
| Required? | Name | Aliases | Description | Type | Options | Default | Depends On | Not Valid With |
|---|---|---|---|---|---|---|---|---|
| ✅ | base | coin, from |
The symbol of symbols of the currency to query | string | ||||
| ✅ | quote | market, to |
The symbol of the currency to convert to | string |
Request:
{
"data": {
"endpoint": "quote",
"base": "GBP",
"quote": "USD"
}
}MIT License