Gambit
  • Overview
  • Trading
  • Staking
  • Protocol
  • Tokens
  • Fees
  • FAQ
  • Roadmap
  • Contracts
  • Audit
  • API
Powered by GitBook
On this page

Was this helpful?

API

PreviousAudit

Last updated 3 years ago

Was this helpful?

For contract interaction:

Tokens

  • URL:

  • Retrieve a list of tokens and info for each token

  • USD amounts are multiplied by (10 ** 30)

  • Token amounts are multiplied by (10 ** token.decimals)

Actions

  • URL:

  • Retrieve a list of actions, these will include swaps, increasing a position, decreasing a position 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:

Volume

  • Daily:

  • Weekly:

  • Total:

  • Volumes are separated by action, token, day / week

https://gambit.gitbook.io/gambit/contracts
https://gambit-server-staging.uc.r.appspot.com/tokens
https://gambit-server-staging.uc.r.appspot.com/actions
https://web3-tools.netlify.app/
https://gambit-server-staging.uc.r.appspot.com/daily_volume
https://gambit-server-staging.uc.r.appspot.com/weekly_volume
https://gambit-server-staging.uc.r.appspot.com/total_volume