Skip to content

Instantly share code, notes, and snippets.

@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)
}
}
}
generateCSV();
const data = convertJSONTOCSV(jsonObject)
writeCSV('results.csv', data)
const jsonObject = JSON.stringify(objectArray)
const objectArray = results.data.ethereum.dexTrades
async function writeCSV (fileName, data) {
try {
await writeFile(fileName, data, 'utf8');
} catch (err) {
console.log(err);
}
}