Scout Chart Creator
  • Overview
  • Get Started
    • Tutorial 1: NMR Daily Transaction Count
    • Tutorial 2: LPT Weekly Volume (USD)
    • Tutorial 3: NMR vs LPT Daily comparison
  • Pipeline
    • Filter
    • Project
    • Group
      • Accumulators
    • Sort
    • Unwind
    • Custom
  • Data Source
    • Transactions
    • States
    • Contracts
    • Aragon
    • Livepeer
    • dYdX
    • Set
    • Token holders
  • Operators
    • Math operators
    • Logic operators
    • Function operators
    • Array operators
    • String operators
  • Config
  • Protocols
    • Dodo
      • 24H trade volume
      • Deposit & Withdraw
    • Livepeer
    • dYdX
      • Making sense of the trade data
    • MakerDao
    • Pickle Finance
      • Example: Daily deposit and withdraw of jar 0.88
      • Example: Listing all borrows of a strategy
  • FAQ
    • Dealing with "logs" field in "Transaction"
    • How to handle "Query Timeout" error?
    • How to use a variable in a Pipeline
  • Research
    • The circulating supply of DODO tokens
    • How are bitcoins doing on Ethereum? (as of Jan 20th 2021)
Powered by GitBook
On this page
  • 1. dYdX Trades
  • 2. dYdX Weekly Accounts
  • 2. dYdX Monthly Accounts

Was this helpful?

  1. Data Source

dYdX

Customized data sources for dYdX protocol

1. dYdX Trades

Listing every trade transaction in dYdX protocol.

  • _id: Ethereum transaction hash.

  • blockNumber blockTimestamp: The block number and the time when this transaction happened.

  • market: 5 markets currently available on dYdX:"WETH-DAI", "WETH-USDC", "DAI-USDC", "PBTC-USDC", "WETH-PUSD"

  • product: Either "solomargin" or "perpetual".

  • accounts: An array of accounts which have participated in this trade.

    • address: Address of the account

    • role: Liquidity role of the account, either "taker" or "maker".

    • feeAmount: Fee paid by the account.

    • amount: The trade amount in the base token.

    • unitPrice: Unit price.

    • amountUSD: The trade amount in USD.

Tips: Since one maker can trade with multiple takers or vise versa, multiple trades can happen within one transaction.

To find number of trades in one Ethereum transaction: find number of takers and number of makers and use the greater one of the two.

To find transaction volume: sum up all amountUSD, then divide by 2.

2. dYdX Weekly Accounts

List traders' accounts and their trading volume in a week.

  • _id: Timestamp at the beginning of the week.

  • value

    • newAccounts: An array of new traders in the week

    • accounts: An array of traders active in the week

      • address: The address of the trader

      • amountUSD: The trading volume in USD of the trader in this week.

2. dYdX Monthly Accounts

A snapshot of accounts, new accounts, and cumulative accounts in a month.

  • _id: Timestamp at the begining of the week.

  • value

    • newAccounts: An array of new traders in the month

    • accounts: An array of traders active in the week

    • cumulativeAccounts: An array of traders since dYdX went live on mainnet.

PreviousLivepeerNextSet

Last updated 4 years ago

Was this helpful?