View bitflyer-fetch-ohlcv-to-csv.py
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
# -*- coding: utf-8 -*- | |
import os | |
import sys | |
import csv | |
import pandas as pd | |
import datetime | |
# ----------------------------------------------------------------------------- |
View pool_details
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 { | |
address(address: {is: "0x930ed81ad809603baf727117385d01f04354612e"}) { | |
annotation | |
address | |
smartContract { | |
contractType | |
currency { | |
symbol | |
name |
View graphql_example.rb
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
require 'net/http' | |
require 'uri' | |
require 'json' | |
uri = URI.parse('https://graphql.bitquery.io/') | |
header = {'Content-Type': 'application/json'} | |
query = ' { bitcoin { blocks { count } } }' | |
puts query | |
# Create the HTTP objects | |
http = Net::HTTP.new(uri.host, uri.port) |
View DEX_OHLC.ql
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(options: {limit: 10, asc: "timeInterval.minute"}, | |
protocol: {is: "Uniswap v2"}, | |
date: {is: "2020-10-10"} | |
buyCurrency: {is: "0xdac17f958d2ee523a2206206994597c13d831ec7"}, | |
sellCurrency: {is: "0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2"}) { | |
timeInterval { | |
minute(count: 5) | |
} |
View data.py
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
# Hello World program in Python | |
import requests | |
import datetime | |
def run_query(query): # A simple function to use requests.post to make the API call. | |
request = requests.post('https://graphql.bitquery.io/', | |
json={'query': query}) | |
if request.status_code == 200: |
View compoundFinance.js
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
const Web3 = require('web3') | |
const httpProvider = "YOUR_QUIKNODE_RINKEBY_URL" | |
var web3 = new Web3(new Web3.providers.HttpProvider(httpProvider)); | |
//create account | |
// console.log(web3.eth.accounts.create(web3.utils.randomHex(32))); | |
const privateKey = "0x8679f89a15e31cbeb7256f37db1a6df215a103261e7c54dd90f8cba9eeba0c70"; | |
const address = "0x3318B0C23621d70B7F22a694d7D7E78f37208AD2"; | |
web3.eth.accounts.wallet.add({ |
View ExampleTokenBurnable.sol
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
pragma solidity ^0.4.24; | |
import "openzeppelin-solidity/contracts/token/ERC20/DetailedERC20.sol"; | |
import "openzeppelin-solidity/contracts/token/ERC20/StandardToken.sol"; | |
import "openzeppelin-solidity/contracts/token/ERC20/BurnableToken.sol"; | |
contract ExampleToken is StandardToken, DetailedERC20, BurnableToken{ | |
//We inherited the DetailedERC20 |
View NewlyCreatedTokenQuery.ql
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 { | |
smartContractCalls(options: {desc: "block.height", limit: 10}, smartContractMethod: {is: "Contract Creation"}, smartContractType: {is: Token}) { | |
block { | |
height | |
timestamp { | |
time | |
} | |
} | |
smartContract { |
View graphql_example.py
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
#!/usr/bin/python | |
# -*- coding: utf-8 -*- | |
import requests | |
def run_query(query): # A simple function to use requests.post to make the API call. | |
headers = {'X-API-KEY': 'YOUR API KEY'} | |
request = requests.post('https://graphql.bitquery.io/', | |
json={'query': query}, headers=headers) | |
if request.status_code == 200: |
View howler.css
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
html { | |
width: 100%; | |
height: 100%; | |
overflow: hidden; | |
padding: 0; | |
margin: 0; | |
outline: 0; | |
} | |
body { |
NewerOlder