2025-02-14
Important Note on Volume Calculation
For all BitMEX datasets, thevolume field is directly mapped from BitMEX’s API. However, BitMEX’s volume represents the number of contracts traded, not the volume in the base asset.
To obtain the correct base asset volume, customers must divide volume by underlyingToPositionMultiplier, which can be retrieved from our Reference endpoint. It is important to set the includeOriginalReference=true parameter when calling the Reference endpoint to retrieve this value.
- Spot Reference Endpoint: /markets/spot/exchanges/reference
- Futures Reference Endpoint: /markets/futures/exchanges/reference
Formula to Convert Volume to Base Asset
Example Calculation
Example: Futures OHLCV DataSuppose the response from the Amberdata Futures OHLCV API contains:
/markets/futures/exchanges/reference?exchange=bitmex&includeOriginalReference=true) contains: