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
# Requirements : | |
# - python3 | |
# - requests (if not preinstalled, python3 -m pip install requests) | |
# | |
# Start by : | |
# - Filling login and password at line 66 | |
# - python3 app.py | |
from datetime import date | |
import requests |
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
// exporting from a bs58 private key to an Uint8Array | |
// == from phantom private key to solana cli id.json key file | |
// npm install bs58 @solana/web3.js | |
const web3 = require("@solana/web3.js"); | |
const bs58 = require('bs58'); | |
let secretKey = bs58.decode("[base58 private key here]"); | |
console.log(`[${web3.Keypair.fromSecretKey(secretKey).secretKey}]`); | |
// exporting back from Uint8Array to bs58 private key |
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
import requests | |
def list_common_pairs(kraken, binance): | |
common = [] | |
for bcurr in binance["symbols"]: | |
# REMOVE THIS LINE IF YOU DON'T WANT ANY FILTER. | |
# HERE, ONLY RETAINS EUR PAIRS | |
if "EUR" not in bcurr["symbol"]: | |
continue | |
for kcurr in [*kraken["result"]]: |