haythemsellami / opyn-exchange-volume

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

HOW TO RUN

$ npm i
$ npm start

GraphQL query

{
  sellOTokensActions(orderBy: block) {
    block
    oTokensToSell
    payoutTokenPrice
    payoutTokenAddress
    payoutTokensReceived
    timestamp
    transactionHash
    usdcPrice
    token {
      strike
      strikePriceValue
    }
  }
  
  buyOTokensActions(orderBy: block) {
    block
    exchangeRateCurrent
    tokenUnderlyingAddress
    cTokenUnderlyingPrice
    oTokensToBuy
    paymentTokenPrice
    paymentTokenAddress
    premiumPaid
    timestamp
    transactionHash
    usdcPrice
    token {
      strike
      strikePriceValue
    }
  }
}

About


Languages

Language:TypeScript 98.2%Language:JavaScript 1.8%