โ“FAQ & Resources

Open API FAQ

Could you explain us which apis or data sources we could use to integrate your data on our data aggregator dashboard.

We have an API that can return different exchange data such as what markets are available, candle data like OHLC, etc https://docs.dydx.trade/developers/indexer/indexer_api

What are the APIs for volume, fees paid by traders, revenue earned and tvl if you have products with tvl?
  1. This shows the field volume24H for each of the markets https://indexer.dydx.trade/v4/perpetualMarkets

  2. It seems like numia has this in big query if you want to set something up fast. the link = https://www.datalenses.zone/chain/dydx/business

Is there a way to get user's BuyingPower from API or from SDK?

You can get equity and freeCollateral from the /v4/addresses/<address> endpoint https://docs.dydx.trade/developers/indexer/indexer_api#getaddress. It would not make sense to get BuyingPower from API since each market has different maximum leverage.

To access dYdX Chain on Numia you need to do the following steps:
  1. Go to Googleโ€™s BigQuery site and click โ€˜Try BigQuery Freeโ€™

  2. Create an Account - You will receive $300 of Free Trial credit (for compute), and there is no autocharge after the trial expires.

  3. Go to the Search Bar at the top and click โ€˜BigQueryโ€™

  4. Hit +ADD and click โ€˜Star a project by nameโ€™ (second option under Additional sources)

  5. Type in numia-data and press โ€˜Starโ€™

  6. numia-data is now saved as one of your resources! Expand it and scroll down to โ€˜dydx_mainnetโ€™ to view dYdX Chain data (you can also view other Cosmos data)

  7. Example query:

    • Click โ€˜dydx_matchโ€™ โ€”> QUERY โ€”> โ€˜In new tabโ€™

    • You can now edit the query to your liking

Last updated