AllPricesQuery

Returns DEX trades on Ethereum and BNB Chain, where quote currency is not 0xf859…f830, base currency is 0xf859…f830 and quote currency is not 0x12e3…d739, sorted by time interval minute: minute, block height, timestamp time, base currency symbol, base currency address, quote currency symbol, quote currency address and 7 more fields.

By joshman2020 · saved 15 March 2021 · Bitquery API v1

What it returns

Filters

The query

{ ethereum(network: bsc) {count0:dexTrades(options: {asc: "timeInterval.minute",
                                        limitBy:{each:"timeInterval.minute",limit:1}},
                                        date:{since:"2021-02-21"},
                                        quoteCurrency: {not: "0xf859bf77cbe8699013d6dbc7c2b926aaf307f830"},
                                        baseCurrency: {is: "0xf859bf77cbe8699013d6dbc7c2b926aaf307f830"}) {
                                        timeInterval {
                                            minute(count: 30)
                                        }
                                        
                                        
                                        block {
                                            height
                                            timestamp {
                                                time(format: "%Y-%m-%d %H:%M:%S")
                                            }
                                            
                                        }
                                    
                                        baseCurrency {
                                            symbol
                                            address
                                        }
                          
                                        quoteCurrency {
                                            symbol
                                            address
                                        }
                                        quoteAmount
                                        
                                        trades: count
                                        
                                        usd_amount: tradeAmount(in: USD)
                                        tot_amount: baseAmount(calculate: sum)
                                        
                                        maximum_price: quotePrice(calculate: maximum)
                                        minimum_price: quotePrice(calculate: minimum)
                                        
                                        open_price: minimum(of: block get: quote_price)
                                        close_price: maximum(of: block get: quote_price)
                                
                                    }count1:dexTrades(options: {asc: "timeInterval.minute",
                                        limitBy:{each:"timeInterval.minute",limit:1}},
                                        date:{since:"2020-11-30"},
                                        quoteCurrency: {not: "0x12e34cdf6a031a10fe241864c32fb03a4fdad739"},
                                        baseCurrency: {is: "0x12e34cdf6a031a10fe241864c32fb03a4fdad739"}) {
                                        timeInterval {
                                            minute(count: 30)
                                        }
                                        
                                        
                                        block {
                                            height
                                            timestamp {
                                                time(format: "%Y-%m-%d %H:%M:%S")
                                            }
                                            
                                        }
                                    
                                        baseCurrency {
                                            symbol
                                            address
                                        }
                          
                                        quoteCurrency {
                                            symbol
                                            address
                                        }
                                        quoteAmount
                                        
                                        trades: count
                                        
                                        usd_amount: tradeAmount(in: USD)
                                        tot_amount: baseAmount(calculate: sum)
                                        
                                        maximum_price: quotePrice(calculate: maximum)
                                        minimum_price: quotePrice(calculate: minimum)
                                        
                                        open_price: minimum(of: block get: quote_price)
                                        close_price: maximum(of: block get: quote_price)
                                
                                    }count2:dexTrades(options: {asc: "timeInterval.minute",
                                        limitBy:{each:"timeInterval.minute",limit:1}},
                                        date:{since:"2021-02-21"},
                                        quoteCurrency: {not: "0x32dffc3fe8e3ef3571bf8a72c0d0015c5373f41d"},
                                        baseCurrency: {is: "0x32dffc3fe8e3ef3571bf8a72c0d0015c5373f41d"}) {
                                        timeInterval {
                                            minute(count: 30)
                                        }
                                        
                                        
                                        block {
                                            height
                                            timestamp {
                                                time(format: "%Y-%m-%d %H:%M:%S")
                                            }
                                            
                                        }
                                    
                                        baseCurrency {
                                            symbol
                                            address
                                        }
                          
                                        quoteCurrency {
                                            symbol
                                            address
                                        }
                                        quoteAmount
                                        
                                        trades: count
                                        
                                        usd_amount: tradeAmount(in: USD)
                                        tot_amount: baseAmount(calculate: sum)
                                        
                                        maximum_price: quotePrice(calculate: maximum)
                                        minimum_price: quotePrice(calculate: minimum)
                                        
                                        open_price: minimum(of: block get: quote_price)
                                        close_price: maximum(of: block get: quote_price)
                                
                                    }count3:dexTrades(options: {asc: "timeInterval.minute",
                                        limitBy:{each:"timeInterval.minute",limit:1}},
                                        date:{since:"2020-09-18"},
                                        quoteCurrency: {not: "0xf68c9df95a18b2a5a5fa1124d79eeeffbad0b6fa"},
                                        baseCurrency: {is: "0xf68c9df95a18b2a5a5fa1124d79eeeffbad0b6fa"}) {
                                        timeInterval {
                                            minute(count: 30)
                                        }
                                        
                                        
                                        block {
                                            height
                                            timestamp {
                                                time(format: "%Y-%m-%d %H:%M:%S")
                                            }
                                            
                                        }
                                    
                                        baseCurrency {
                                            symbol
                                            address
                                        }
                          
                                        quoteCurrency {
                                            symbol
                                            address
                                        }
                                        quoteAmount
                                        
                                        trades: count
                                        
                                        usd_amount: tradeAmount(in: USD)
                                        tot_amount: baseAmount(calculate: sum)
                                        
                                        maximum_price: quotePrice(calculate: maximum)
                                        minimum_price: quotePrice(calculate: minimum)
                                        
                                        open_price: minimum(of: block get: quote_price)
                                        close_price: maximum(of: block get: quote_price)
                                
                                    }count4:dexTrades(options: {asc: "timeInterval.minute",
                                        limitBy:{each:"timeInterval.minute",limit:1}},
                                        date:{since:"2021-02-21"},
                                        quoteCurrency: {not: "0xe4ae305ebe1abe663f261bc00534067c80ad677c"},
                                        baseCurrency: {is: "0xe4ae305ebe1abe663f261bc00534067c80ad677c"}) {
                                        timeInterval {
                                            minute(count: 30)
                                        }
                                        
                                        
                                        block {
                                            height
                                            timestamp {
                                                time(format: "%Y-%m-%d %H:%M:%S")
                                            }
                                            
                                        }
                                    
                                        baseCurrency {
                                            symbol
                                            address
                                        }
                          
                                        quoteCurrency {
                                            symbol
                                            address
                                        }
                                        quoteAmount
                                        
                                        trades: count
                                        
                                        usd_amount: tradeAmount(in: USD)
                                        tot_amount: baseAmount(calculate: sum)
                                        
                                        maximum_price: quotePrice(calculate: maximum)
                                        minimum_price: quotePrice(calculate: minimum)
                                        
                                        open_price: minimum(of: block get: quote_price)
                                        close_price: maximum(of: block get: quote_price)
                                
                                    }count5:dexTrades(options: {asc: "timeInterval.minute",
                                        limitBy:{each:"timeInterval.minute",limit:1}},
                                        date:{since:"2021-02-17"},
                                        quoteCurrency: {not: "0xcf6bb5389c92bdda8a3747ddb454cb7a64626c63"},
                                        baseCurrency: {is: "0xcf6bb5389c92bdda8a3747ddb454cb7a64626c63"}) {
                                        timeInterval {
                                            minute(count: 30)
                                        }
                                        
                                        
                                        block {
                                            height
                                            timestamp {
                                                time(format: "%Y-%m-%d %H:%M:%S")
                                            }
                                            
                                        }
                                    
                                        baseCurrency {
                                            symbol
                                            address
                                        }
                          
                                        quoteCurrency {
                                            symbol
                                            address
                                        }
                                        quoteAmount
                                        
                                        trades: count
                                        
                                        usd_amount: tradeAmount(in: USD)
                                        tot_amount: baseAmount(calculate: sum)
                                        
                                        maximum_price: quotePrice(calculate: maximum)
                                        minimum_price: quotePrice(calculate: minimum)
                                        
                                        open_price: minimum(of: block get: quote_price)
                                        close_price: maximum(of: block get: quote_price)
                                
                                    }count6:dexTrades(options: {asc: "timeInterval.minute",
                                        limitBy:{each:"timeInterval.minute",limit:1}},
                                        date:{since:"2021-02-21"},
                                        quoteCurrency: {not: "0x603c7f932ed1fc6575303d8fb018fdcbb0f39a95"},
                                        baseCurrency: {is: "0x603c7f932ed1fc6575303d8fb018fdcbb0f39a95"}) {
                                        timeInterval {
                                            minute(count: 30)
                                        }
                                        
                                        
                                        block {
                                            height
                                            timestamp {
                                                time(format: "%Y-%m-%d %H:%M:%S")
                                            }
                                            
                                        }
                                    
                                        baseCurrency {
                                            symbol
                                            address
                                        }
                          
                                        quoteCurrency {
                                            symbol
                                            address
                                        }
                                        quoteAmount
                                        
                                        trades: count
                                        
                                        usd_amount: tradeAmount(in: USD)
                                        tot_amount: baseAmount(calculate: sum)
                                        
                                        maximum_price: quotePrice(calculate: maximum)
                                        minimum_price: quotePrice(calculate: minimum)
                                        
                                        open_price: minimum(of: block get: quote_price)
                                        close_price: maximum(of: block get: quote_price)
                                
                                    }count7:dexTrades(options: {asc: "timeInterval.minute",
                                        limitBy:{each:"timeInterval.minute",limit:1}},
                                        date:{since:"2021-03-11"},
                                        quoteCurrency: {not: "0x851f7a700c5d67db59612b871338a85526752c25"},
                                        baseCurrency: {is: "0x851f7a700c5d67db59612b871338a85526752c25"}) {
                                        timeInterval {
                                            minute(count: 30)
                                        }
                                        
                                        
                                        block {
                                            height
                                            timestamp {
                                                time(format: "%Y-%m-%d %H:%M:%S")
                                            }
                                            
                                        }
                                    
                                        baseCurrency {
                                            symbol
                                            address
                                        }
                          
                                        quoteCurrency {
                                            symbol
                                            address
                                        }
                                        quoteAmount
                                        
                                        trades: count
                                        
                                        usd_amount: tradeAmount(in: USD)
                                        tot_amount: baseAmount(calculate: sum)
                                        
                                        maximum_price: quotePrice(calculate: maximum)
                                        minimum_price: quotePrice(calculate: minimum)
                                        
                                        open_price: minimum(of: block get: quote_price)
                                        close_price: maximum(of: block get: quote_price)
                                
                                    }count8:dexTrades(options: {asc: "timeInterval.minute",
                                        limitBy:{each:"timeInterval.minute",limit:1}},
                                        date:{since:"2021-02-20"},
                                        quoteCurrency: {not: "0x948d2a81086a075b3130bac19e4c6dee1d2e3fe8"},
                                        baseCurrency: {is: "0x948d2a81086a075b3130bac19e4c6dee1d2e3fe8"}) {
                                        timeInterval {
                                            minute(count: 30)
                                        }
                                        
                                        
                                        block {
                                            height
                                            timestamp {
                                                time(format: "%Y-%m-%d %H:%M:%S")
                                            }
                                            
                                        }
                                    
                                        baseCurrency {
                                            symbol
                                            address
                                        }
                          
                                        quoteCurrency {
                                            symbol
                                            address
                                        }
                                        quoteAmount
                                        
                                        trades: count
                                        
                                        usd_amount: tradeAmount(in: USD)
                                        tot_amount: baseAmount(calculate: sum)
                                        
                                        maximum_price: quotePrice(calculate: maximum)
                                        minimum_price: quotePrice(calculate: minimum)
                                        
                                        open_price: minimum(of: block get: quote_price)
                                        close_price: maximum(of: block get: quote_price)
                                
                                    }count9:dexTrades(options: {asc: "timeInterval.minute",
                                        limitBy:{each:"timeInterval.minute",limit:1}},
                                        date:{since:"2021-02-21"},
                                        quoteCurrency: {not: "0xa184088a740c695e156f91f5cc086a06bb78b827"},
                                        baseCurrency: {is: "0xa184088a740c695e156f91f5cc086a06bb78b827"}) {
                                        timeInterval {
                                            minute(count: 30)
                                        }
                                        
                                        
                                        block {
                                            height
                                            timestamp {
                                                time(format: "%Y-%m-%d %H:%M:%S")
                                            }
                                            
                                        }
                                    
                                        baseCurrency {
                                            symbol
                                            address
                                        }
                          
                                        quoteCurrency {
                                            symbol
                                            address
                                        }
                                        quoteAmount
                                        
                                        trades: count
                                        
                                        usd_amount: tradeAmount(in: USD)
                                        tot_amount: baseAmount(calculate: sum)
                                        
                                        maximum_price: quotePrice(calculate: maximum)
                                        minimum_price: quotePrice(calculate: minimum)
                                        
                                        open_price: minimum(of: block get: quote_price)
                                        close_price: maximum(of: block get: quote_price)
                                
                                    }count10:dexTrades(options: {asc: "timeInterval.minute",
                                        limitBy:{each:"timeInterval.minute",limit:1}},
                                        date:{since:"2021-02-20"},
                                        quoteCurrency: {not: "0xf952fc3ca7325cc27d15885d37117676d25bfda6"},
                                        baseCurrency: {is: "0xf952fc3ca7325cc27d15885d37117676d25bfda6"}) {
                                        timeInterval {
                                            minute(count: 30)
                                        }
                                        
                                        
                                        block {
                                            height
                                            timestamp {
                                                time(format: "%Y-%m-%d %H:%M:%S")
                                            }
                                            
                                        }
                                    
                                        baseCurrency {
                                            symbol
                                            address
                                        }
                          
                                        quoteCurrency {
                                            symbol
                                            address
                                        }
                                        quoteAmount
                                        
                                        trades: count
                                        
                                        usd_amount: tradeAmount(in: USD)
                                        tot_amount: baseAmount(calculate: sum)
                                        
                                        maximum_price: quotePrice(calculate: maximum)
                                        minimum_price: quotePrice(calculate: minimum)
                                        
                                        open_price: minimum(of: block get: quote_price)
                                        close_price: maximum(of: block get: quote_price)
                                
                                    }count11:dexTrades(options: {asc: "timeInterval.minute",
                                        limitBy:{each:"timeInterval.minute",limit:1}},
                                        date:{since:"2021-02-21"},
                                        quoteCurrency: {not: "0xe02df9e3e622debdd69fb838bb799e3f168902c5"},
                                        baseCurrency: {is: "0xe02df9e3e622debdd69fb838bb799e3f168902c5"}) {
                                        timeInterval {
                                            minute(count: 30)
                                        }
                                        
                                        
                                        block {
                                            height
                                            timestamp {
                                                time(format: "%Y-%m-%d %H:%M:%S")
                                            }
                                            
                                        }
                                    
                                        baseCurrency {
                                            symbol
                                            address
                                        }
                          
                                        quoteCurrency {
                                            symbol
                                            address
                                        }
                                        quoteAmount
                                        
                                        trades: count
                                        
                                        usd_amount: tradeAmount(in: USD)
                                        tot_amount: baseAmount(calculate: sum)
                                        
                                        maximum_price: quotePrice(calculate: maximum)
                                        minimum_price: quotePrice(calculate: minimum)
                                        
                                        open_price: minimum(of: block get: quote_price)
                                        close_price: maximum(of: block get: quote_price)
                                
                                    }count12:dexTrades(options: {asc: "timeInterval.minute",
                                        limitBy:{each:"timeInterval.minute",limit:1}},
                                        date:{since:"2021-02-16"},
                                        quoteCurrency: {not: "BNB"},
                                        baseCurrency: {is: "BNB"}) {
                                        timeInterval {
                                            minute(count: 30)
                                        }
                                        
                                        
                                        block {
                                            height
                                            timestamp {
                                                time(format: "%Y-%m-%d %H:%M:%S")
                                            }
                                            
                                        }
                                    
                                        baseCurrency {
                                            symbol
                                            address
                                        }
                          
                                        quoteCurrency {
                                            symbol
                                            address
                                        }
                                        quoteAmount
                                        
                                        trades: count
                                        
                                        usd_amount: tradeAmount(in: USD)
                                        tot_amount: baseAmount(calculate: sum)
                                        
                                        maximum_price: quotePrice(calculate: maximum)
                                        minimum_price: quotePrice(calculate: minimum)
                                        
                                        open_price: minimum(of: block get: quote_price)
                                        close_price: maximum(of: block get: quote_price)
                                
                                    }count13:dexTrades(options: {asc: "timeInterval.minute",
                                        limitBy:{each:"timeInterval.minute",limit:1}},
                                        date:{since:"2021-02-25"},
                                        quoteCurrency: {not: "0xc9849e6fdb743d08faee3e34dd2d1bc69ea11a51"},
                                        baseCurrency: {is: "0xc9849e6fdb743d08faee3e34dd2d1bc69ea11a51"}) {
                                        timeInterval {
                                            minute(count: 30)
                                        }
                                        
                                        
                                        block {
                                            height
                                            timestamp {
                                                time(format: "%Y-%m-%d %H:%M:%S")
                                            }
                                            
                                        }
                                    
                                        baseCurrency {
                                            symbol
                                            address
                                        }
                          
                                        quoteCurrency {
                                            symbol
                                            address
                                        }
                                        quoteAmount
                                        
                                        trades: count
                                        
                                        usd_amount: tradeAmount(in: USD)
                                        tot_amount: baseAmount(calculate: sum)
                                        
                                        maximum_price: quotePrice(calculate: maximum)
                                        minimum_price: quotePrice(calculate: minimum)
                                        
                                        open_price: minimum(of: block get: quote_price)
                                        close_price: maximum(of: block get: quote_price)
                                
                                    }count14:dexTrades(options: {asc: "timeInterval.minute",
                                        limitBy:{each:"timeInterval.minute",limit:1}},
                                        date:{since:"2021-02-23"},
                                        quoteCurrency: {not: "0x88f1a5ae2a3bf98aeaf342d26b30a79438c9142e"},
                                        baseCurrency: {is: "0x88f1a5ae2a3bf98aeaf342d26b30a79438c9142e"}) {
                                        timeInterval {
                                            minute(count: 30)
                                        }
                                        
                                        
                                        block {
                                            height
                                            timestamp {
                                                time(format: "%Y-%m-%d %H:%M:%S")
                                            }
                                            
                                        }
                                    
                                        baseCurrency {
                                            symbol
                                            address
                                        }
                          
                                        quoteCurrency {
                                            symbol
                                            address
                                        }
                                        quoteAmount
                                        
                                        trades: count
                                        
                                        usd_amount: tradeAmount(in: USD)
                                        tot_amount: baseAmount(calculate: sum)
                                        
                                        maximum_price: quotePrice(calculate: maximum)
                                        minimum_price: quotePrice(calculate: minimum)
                                        
                                        open_price: minimum(of: block get: quote_price)
                                        close_price: maximum(of: block get: quote_price)
                                
                                    }}}

Similar queries