Comment on page
API
For contract interaction: (coming soon)
Base URL: (coming soon)
- URL: (coming soon)
- Get a list of tokens and information on each token.
- The value in USD is multiplied by (10 ** 30).
- Token values are multiplied by 10 ** token.decimals).
The tokens endpoint will return the contract's current pricing, which are utilized for swaps and OLP minting / redeeming. To calculate the figures for opening and closing positions, the realtime median prices are used:
- URL: (coming soon)
- Get a list of tokens and information on each token.
- Prices are multiplied by (10 ** 30)
- URL: (coming soon)
- Retrieve a list of actions, these will include swaps, increasing a position, decreasing a position, orders and liquidations
- Params:
- account (optional): pass in the checksum address of an account
- after (optional): for pagination, the id to start after
- To get the checksum address: https://web3-tools.netlify.app/, you can also use a library like ethers
- Hourly: (coming soon)
- Daily: (coming soon)
- Weekly: (coming soon)
- Total: (coming soon)
- Volumes are separated by action, token, day / week
- Params:
- after (optional): for pagination, the id to start after
Last modified 10mo ago