Synthetic price

What is this endpoint for?

This endpoint calculates a synthetic price when there is less liquidity (historic trades) between two assets. The methodology is developed with global tax and accounting standards in mind. Additionally, our robust price aggregation method reduces the impact of outliers in terms of volume and price, meaning you can trust the price returned.

The calculation works as follows:

  1. Retrieve the last available optimal liquidity path

  2. Listen to trades for all intermediary pairs from all covered exchanges where the instrument is actively traded

  3. Compute RWM price for each intermediary pair

  4. Compute the product of intermediary pairs based on the liquidity path

The calculation considers all instruments traded across all exchanges covered by Kaiko.

Endpoints

gateway-v0-grpc.kaiko.ovh

Parameters

Parameter
Description
Examples
Mandatory?

window

The window on which you would like your Cross Price to be calculated. Available windows: 1s, 5s, 15s, 30s, 60s, 300s

15s

update_frequency

How regularly you would like to receive your pricing updates. Available frequencies: 1s, 5s, 10s, 30s, and 1m

1s

assets

A nested object to configure following properties for your stream:

  • base - the base asset you'd like your price to be based on

  • quote - the asset you'd like the price to be quoted in

Explore instruments, codes and exchanges in the Instrument Explorer or Reference Data.

btc eur

extrapolate_missing_values

This parameter is set to false by default. Setting it to true means that if there is no trade price available from the calculation window you configured, the last available price (from outside the window) will be used.

false

Fields

Field
Description

assets

The base and quote assets as configured above.

price

The calculated Cross Price.

timestamp

The time the Cross Price was calculated.

window

A nested object containing the following fields:

  • startTime - The start of the calculation window for this Cross Price

  • endTime - The end of the calculation window for this Cross Price

  • Duration - The window as configured above

noTrade

If false a price was able to be calculated within the window provided. If true the extrapolate_missing_values parameter was needed to calculate a price.

Request examples

Make sure to read our Python quick-start guide before starting.

Response Example

Last updated

Was this helpful?