Latest trades on Klaytn

Returns the latest 10 DEX trades on Ethereum and klaytn, where date since 2021-10-05: timestamp time, block height, trade index, protocol, full name, address address, annotation and 7 more fields.

By gaurav · saved 5 October 2021 · run 3 times · Bitquery API v1

What it returns

Filters

The query


                        query ($network: EthereumNetwork!,
                                $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 }

                        ) {

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

                          tradeIndex
                          protocol
                          exchange {
                            fullName
                          }

                          smartContract {
                            address {
                              address
                              annotation
                            }
                          }

                          buyAmount
                          buyCurrency {
                            address
                            symbol
                          }

                          sellAmount
                          sellCurrency {
                            address
                            symbol
                          }

                          transaction {
                            hash
                          }

                      }
                    }
                  }

Variables

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

Similar queries