curve sell usdc

curve exchange trades

Returns the latest 100 DEX trades on Ethereum, where base currency is 0xa0b8…eb48, exchange name is Curve and date since 2022-08-12: timestamp time, block height, trade index, protocol, full name, address address, annotation and 7 more fields.

By Primex · saved 26 September 2022 · run 14 times · Bitquery API v1

What it returns

Filters

The query


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

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

                          tradeIndex
                          protocol
                          exchange {
                            fullName
                          }

                          smartContract {
                            address {
                              address
                              annotation
                            }
                          }

                          buyAmount
                          buy_amount_usd: buyAmount(in: USD)
                          buyCurrency {
                            address
                            symbol
                          }

                          sellAmount
                          sell_amount_usd: sellAmount(in: USD)
                          sellCurrency {
                            address
                            symbol
                          }

                          transaction {
                            hash
                          }

                      }
                    }
                  }

Variables

{
  "limit": 100,
  "offset": 100,
  "network": "ethereum",
  "exchange": "Curve",
  "from": "2022-08-12",
  "till": "2022-08-19T23:59:59",
  "dateFormat": "%Y-%m-%d",
  "token0": "0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48"
}

Similar queries