LogoLogo
  • 👋Introduction
  • Get Started
  • Sonic rGEMs Rewards Program
  • Chart Trader
  • Index Price
  • Vaults
    • RabbitX Liquidity Pool Vault
  • Funding Rate
  • Deposit / Withdrawal
  • Fiat Deposits
  • Binance Direct Deposit
  • Profit / Loss Calculation
  • Margin Calculation
  • Market Slippage Protection
  • Liquidations
  • RabbitX Quantower
  • Fees
    • API Fees
  • Frequently Asked Questions
  • Token
    • Explore $RBX
    • Contract Details
  • API Documentation
    • Introduction
    • Rate Limits
    • Generate Your API Keys
      • Signing with API Key
    • Public Endpoints
      • Market Info
      • Trades
      • Orderbook
      • Funding Rate
      • Candles
    • Private Endpoints
      • Account Operations
      • Authentication
      • Orders
      • Fills
      • Positions
      • Profile
      • Balance History
      • Deadman Switch
    • Websocket
      • Trades
      • Orderbook
      • Market Info
      • Account
    • Responses Data Structure
  • Twitter
  • Discord
  • Audit
  • Bug Bounty
  • Bug Bounty Postmortem Report
  • Terms of Use
Powered by GitBook
On this page
  • Important: API keys are specific to each chain
  • How to create an API key and secret
  1. API Documentation

Generate Your API Keys

PreviousRate LimitsNextSigning with API Key

Last updated 4 months ago

Once logged in, users can generate their API key and secret by clicking the gear icon at the top right-hand side of the page. You will be asked to sign a message to generate your API keys. We recommend setting IP restrictions as a security best practice.

Once the API key is created, you can export it into a json file and save it for your trading programme to be used.

You can renew the API keys, which will extend the expiry date by 30 days each time.

Important: API keys are specific to each chain

API keys are specific to each chain. An API key created on one chain cannot be used for trading on another. For example, credentials generated on Ethereum mainnet will not work on Arbitrum. To trade on a different chain, users must onboard onto the target chain and generate a new API key. Each set of credentials is exclusive to the chain where it was created.

How to create an API key and secret

To create an API key and secret, go to the app and click on the icon.

You will then be prompted to sign a message "Welcome to Rabbit DEX" with your wallet to authenticate yourself. This message is safe to sign.

You will then be prompted to create a new API key by specifying the length of expiration of the API key, along with any IP restrictions that you would like to set.

Once your API key is created, you will be able to copy the API Key, Secret, Public and Private JWT tokens.

  • You will need the API Key and Secret to place orders and retrieve private data through REST.

  • You will need the Private JWT token for websocket private account data.

  • Refresh Token is used to renew your keys.

Note: You can renew your tokens for 30 days by clicking on the "Renew Now" button.

⚙️
⚙️