Construct a new BaseAPI object.
An instance of the Premia SDK.
Readonly
premiaFetches data for a token pair from the subgraph. Uses caching with a one-day time-to-live.
The token pair to fetch the data for.
The data for the token pair.
Retrieves extended information for a token pair. Uses caching with a one-minute time-to-live.
The token pair to fetch the extended information for.
The extended information for the token pair.
Fetches data for multiple token pairs. Uses caching with a one-day time-to-live.
An array of token pairs to fetch the data for.
The data for the specified token pairs.
Retrieves extended information for multiple token pairs. Uses caching with a one-minute time-to-live.
An array of token pairs to fetch the extended information for.
The extended information for the specified token pairs.
Fetches the current spot price of a token pair from the price oracle. Uses caching with a one-minute time-to-live.
The token pair to fetch the spot price for.
The current spot price of the token pair.
Gets the strike increment for a token pair based on its spot price.
The token pair to fetch the strike increment for.
The strike increment for the token pair.
Generated using TypeDoc
Represents a class for handling
TokenPair
operations related to the subgraph.