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.
Last updated