Skip to main content

REST V1

REST endpoints for V1 protocol information.

Tokens

Prices

The tokens endpoint will return the current prices in the contract, these prices are used for swaps, GLP minting / redeeming.

For opening and closing positions the realtime median prices are used instead, to get these values:

Actions

  • URL: https://api.gmx.io/actions
  • 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 the account
    • after (optional): for pagination, the id to start after
  • To get the checksum address you can use Web3 Tools, you can also use the ethers library.

Volume