Optional additionalOptional apiOptional apiThe API key to use for fetching data from the Premia API.
Optional apiThe base websocket URL to use for streaming data from the Premia API.
Optional chainOptional coingeckoThe base URL to use for fetching data from the Coingecko API.
Optional coingeckoThe API Key to use for fetching data from the Coingecko Pro API.
Optional orderbookThe address of the OrderbookStreamer contract (on Arbitrum Nova).
Premia.orderbookAddress
Optional orderbookOptional orderbookA string representing a wallet's secret phrase for use with the orderbookProvider,
to instantiate the orderbookSigner. Ignored if orderbookPrivateKey or orderbookSigner is provided.
Optional orderbookA string representing a wallet's private key for use with the orderbookProvider,
to instantiate the orderbookSigner. Ignored if orderbookSigner is provided.
Optional orderbookAn ethers.js provider instance or a string representing a JSON-RPC URL. This provider is used for interacting with the orderbook contract. If not provided, a default connection string will be used.
Optional orderbookAn ethers.js signer instance for transacting with the orderbook contract. If no orderbookSigner,
orderbookPrivateKey, or orderbookPhrase is provided, the orderbookProvider's default signer will be used.
Premia.orderbookProvider.getSigner
Optional phraseA string representing a wallet's secret phrase for use with the provider,
to instantiate the signer. Ignored if privateKey or signer is provided.
Optional poolThe address of the PremiaDiamond contract (on Arbitrum).
Premia.poolDiamondAddress
Optional poolThe address of the PoolFactory contract (on Arbitrum).
Premia.poolFactoryAddress
Optional privateA string representing a wallet's private key for use with the provider,
to instantiate the signer. Ignored if signer is provided.
Optional providerAn ethers.js provider instance or a string representing a JSON-RPC URL. This provider is used for interacting with the main exchange contracts. If not provided, a default connection string will be used.
Optional signerAn ethers.js signer instance for transacting with the main exchange contracts. If no signer,
privateKey, or phrase is provided, the provider's default signer will be used.
Premia.provider.getSigner
Optional skipA flag to disable usage of the voidnode, and instead use smart contract data where available.
Optional useOptional userThe address of the UserSettings contract (on Arbitrum).
Premia.userSettingsAddress
Optional vaultThe address of the VaultMining contract (on Arbitrum).
Premia.vaultMiningAddress
Optional vaultThe address of the VaultRegistry contract (on Arbitrum).
Premia.vaultRegistryAddress
Optional voidnodeOptional apiOptional voidnodeThe voidnode URL to use for fetching indexed contract data.
Premia.voidnode.uri
Optional vxThe address of the VxPremia contract (on Arbitrum).
Premia.vxPremiaAddress
Generated using TypeDoc
The base URL to use for fetching data from the Premia API.
Default Value
apiBaseUri
See
https://docs.premia.finance/api