This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
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} | |
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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"} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
export default(baseCurrency) => ({ | |
onReady: (callback) => { | |
setTimeout(() => callback(configurationData)); | |
}, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
export const endpoint = 'https://graphql.bitquery.io'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<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> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
vue create Tradingview-three-VueJS |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
npm install -g @vue/cli |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
npm install axios |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
ethereum(network: ethereum){ | |
dexTrades (protocol: {is: "Uniswap v3"}){ | |
count | |
protocol | |
started: minimum(of: date) | |
} | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!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> |