Yeet Token Trades

Returns the latest 10 DEX trades on Ethereum and BNB Chain, where base currency is 0x7060…44de and date since 2021-05-12: timestamp time, block height, trade index, full name, address address, annotation, base amount and 6 more fields.

By gaurav · saved 12 May 2021 · Bitquery API v1

What it returns

Filters

The query


                        query ($network: EthereumNetwork!,
                                $token: String!,
                                $limit: Int!,
                                $offset: Int!
                                $from: ISO8601DateTime,
                                $till: ISO8601DateTime){
                    ethereum(network: $network){
                      dexTrades(options:{desc: ["block.height","tradeIndex"], limit: $limit, offset: $offset},
                        date: {since: $from till: $till }
                        baseCurrency: {is: $token}
                        ) {

                          block {
                            timestamp {
                              time (format: "%Y-%m-%d %H:%M:%S")
                            }
                            height
                          }

                          tradeIndex
                          exchange {
                            fullName
                          }

                          smartContract {
                            address {
                              address
                              annotation
                            }
                          }

                          baseAmount
                          baseCurrency {
                            address
                            symbol
                          }

                          quoteAmount
                          quoteCurrency {
                            address
                            symbol
                          }

                          transaction {
                            hash
                          }

                      }
                    }
                  }

Variables

{"limit":10,"offset":0,"network":"bsc","token":"0x7060d3f1cc70a07f4768560b9d9b692ac29244de","from":"2021-05-12","till":null,"dateFormat":"%Y-%m-%d"}

Similar queries