Fair Market Value Pricing (low liquidity pairs)
Last updated
Last updated
This endpoint calculates a synthetic price when there is no liquidity (historic trades) between two assets (fiat or digital). Let's say, for example, there was no liquidity between NEXO and GBP, but you need a price. To calculate this, the liquidity engine will use a series of intermediary assets where there is liquidity (lots of trading history) to calculate the price for NEXO > GBP. To demonstrate how this calculation works, the engine might take the price for NEXO > BTC (where there is plenty of liquidity) and then the price of BTC > GBP (where there is also lots of liquidity) and combine the two to determine a robust synthetic price for NEXO > GBP. The engine will always use the path of highest liquidity, meaning several intermediary assets might be used. Read the full methodology here.
base_asset
Yes
quote_asset
Yes
The data version. (v1, v2 ... or latest)
start_time
No
Start time in ISO 8601 (exclusive). Automatically included in continuation tokens.
end_time
No
Ending time in ISO 8601 (exclusive). Automatically included in continuation tokens.
interval
No
The interval parameter is suffixed with s
, m
, h
or d
to specify seconds, minutes, hours or days, respectively.
Any arbitrary value between one second and one day can be used, as long as it sums up to a maximum of 1 day. The suffixes are s
(second), m
(minute), h
(hour) and d
(day).
Default 1d
.
page_size
No
See Pagination
Page size limits differ by the interval
selected:
Less than or equal to 1m
Default: 10
, Max: 100
1m
to 1h
Default: 4
, Max: 10
More than 1h
Default: 1
, Max: 4
Automatically included in continuation tokens.
sort
No
Return the data in ascending (asc
) or descending (desc
) order. Default is desc
.
Automatically included in continuation tokens.
include_exchanges
No
exclude_exchanges
No
extrapolate_missing_values
No
When true
, if there are any null
(missing) prices for the calculation, they will be filled in using the last available price from the window requested. This is useful for assets that don't have a lot of trades or for data that is collected very frequently.
However, if the parameter is set to true
and no prices were available in that window, a null
value will still be returned.
sources
No
When true,
the response includes the intermediary pair price details used to calculate the price.
Default: false
timestamp
Timestamp at which the interval begins.
price
Aggregated Robust Weighted Median using liquidity path engine.
null
when no trades reported, except if extrapolate_missing_values
is true
.
Liquidity path is calculated every 4 hours seeking for the most liquid pairs to convert from base asset to quote asset.
extrapolate_missing_values
true
if the value has been extrapolated from the last computed value available, false
if not.
The desired base asset code
.
See
List of exchanges' code
to include in the calculation.
Default is all exchanges.
Automatically included in continuation tokens.
List of exchanges' code
to exclude in the calculation.
Automatically included in continuation tokens.
Fair Market Value Pricing can also be accessed via on-chain delivery to power any smart contract. Learn how to set it up .