Skip to content

Instantly share code, notes, and snippets.

@sayon-bitquery
sayon-bitquery / index.js
Last active July 21, 2021 17:33
Tradingview-3.9
{
ethereum(network: bsc) {
dexTrades(
options: {asc: "timeInterval.minute"}
date: {since: "2021-06-20T07:23:21.000Z", till: "${new Date().toISOString()}"}
exchangeAddress: {is: "0xcA143Ce32Fe78f1f7019d7d551a6402fC5350c73"}
baseCurrency: {is: "${baseCurrency}"},
quoteCurrency: {is: "0xbb4cdb9cbd36b01bd1cbaebf2de08d9173bc095c"},
tradeAmountUsd: {gt: 10}
)
@sayon-bitquery
sayon-bitquery / index.js
Created July 21, 2021 17:28
Tradingview-3.8
resolveSymbol: async (symbolName, onSymbolResolvedCallback, onResolveErrorCallback) =>{
const response = await axios.post(
Bitquery.endpoint, {
query: `
{
ethereum(network: bsc) {
dexTrades(
options: {desc: ["block.height", "transaction.index"], limit: 1}
exchangeAddress: {is: "0xcA143Ce32Fe78f1f7019d7d551a6402fC5350c73"}
@sayon-bitquery
sayon-bitquery / index.js
Created July 21, 2021 17:26
Tradingview-3.7
export default(baseCurrency) => ({
onReady: (callback) => {
setTimeout(() => callback(configurationData));
},
@sayon-bitquery
sayon-bitquery / Bitquery.js
Created July 21, 2021 17:11
Tradingview-3.5
export const endpoint = 'https://graphql.bitquery.io';
@sayon-bitquery
sayon-bitquery / index.html
Created July 21, 2021 17:00
Tradingview-3.4
<body style="background-color: #171717;">
<header style="background-color: #171717;;">
<h1 style="color: white; text-align: center; font-family: 'Lucida Sans', 'Lucida Sans Regular', 'Lucida Grande', sans-serif;">Bitquery & Tradingview Integration</h1>
</header>
<div id="app"></div>
</body>
@sayon-bitquery
sayon-bitquery / terminal
Created July 21, 2021 16:50
Tradingview-3.3
vue create Tradingview-three-VueJS
@sayon-bitquery
sayon-bitquery / termainal
Created July 21, 2021 15:48
Tradingvue-3.2
npm install -g @vue/cli
@sayon-bitquery
sayon-bitquery / terminal
Created July 21, 2021 15:45
Tradingview-3.1
npm install axios
{
ethereum(network: ethereum){
dexTrades (protocol: {is: "Uniswap v3"}){
count
protocol
started: minimum(of: date)
}
}
}
@sayon-bitquery
sayon-bitquery / index.html
Last active June 30, 2021 08:06
tradingview-2:3
<!DOCTYPE HTML>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Technical Charts & Bitquery</title>
<!-- Datafeed scripts -->
<script src="%PUBLIC_URL%/datafeeds/udf/dist/polyfills.js"></script>
<script src="%PUBLIC_URL%/datafeeds/udf/dist/bundle.js"></script>