AMM
Endpoints to fetch historical AMM data. For all AMM endpoints, the step size between data points is calculated automatically based on the requested number of samples (default = 11_000 max), with a minimum step size being 20 seconds. Thus the maximum queryable duration to still get a 20 second step size is about 220,000 seconds (approximately 2.54 days).
Fetch the AMM's position (inventory) over a specified time period.
The name of the market to get position data for (e.g., SOL-PERP)
SOL-PERPStart timestamp in seconds (must be less than end timestamp)
End timestamp in seconds (must be greater than start timestamp)
Number of data points to return. The API will automatically calculate the appropriate step size between points. Maximum value is 11,000.
11000AMM position data
Bad request
Internal server error
Fetch the AMM's bid and ask prices over a specified time period.
The name of the market to get bid-ask price data for (e.g., SOL-PERP)
SOL-PERPStart timestamp in seconds (must be less than end timestamp)
End timestamp in seconds (must be greater than start timestamp)
Number of data points to return. The API will automatically calculate the appropriate step size between points. Maximum value is 11,000.
11000AMM bid-ask price data
Bad request
Internal server error
Fetch the oracle price data for a market over a specified time period.
The name of the market to get oracle price data for (e.g., SOL-PERP)
SOL-PERPStart timestamp in seconds (must be less than end timestamp)
End timestamp in seconds (must be greater than start timestamp)
Number of data points to return. The API will automatically calculate the appropriate step size between points. Maximum value is 11,000.
11000Oracle price data
Bad request
Internal server error
Fetch the long and short spread data for an AMM over a specified time period.
The name of the market to get spread data for (e.g., SOL-PERP)
SOL-PERPStart timestamp in seconds (must be less than end timestamp)
End timestamp in seconds (must be greater than start timestamp)
Number of data points to return. The API will automatically calculate the appropriate step size between points. Maximum value is 11,000.
11000AMM spread data
Bad request
Internal server error
Fetch the open interest data for a market over a specified time period.
The name of the market to get open interest data for (e.g., SOL-PERP)
SOL-PERPStart timestamp in seconds (must be less than end timestamp)
End timestamp in seconds (must be greater than start timestamp)
Number of data points to return. The API will automatically calculate the appropriate step size between points. Maximum value is 11,000.
11000Open interest data
Bad request
Internal server error
Last updated

