Skip to content

Instantly share code, notes, and snippets.

View uneasyguy's full-sized avatar

Jeff Bingaman uneasyguy

View GitHub Profile
function BinanceAccountInfo() {
Logger.clear()
var sheet = SpreadsheetApp.getActiveSpreadsheet().getSheetByName("account_info");
var key = sheet.getRange(1,2).getValue() ;
var secret = sheet.getRange(2,2).getValue();
var curTime = new Date().getTime();
var timestamp = "timestamp=" + curTime;
var signature = Utilities.computeHmacSha256Signature(timestamp, secret);
signature = signature.map(function(e) {
var v = (e < 0 ? e + 256 : e).toString(16);
from binance.client import Client
from datetime import datetime
api_key = 'xxxx'
api_secret = 'xxxx'
binance_account_info = Client(api_key,api_secret)
deposits_query = binance_account_info.get_deposit_history()
deposits_list = deposits_query['depositList']
for x in range(0,len(deposits_list)):
import requests
url = 'https://api.binance.com/api/v1/exchangeInfo'
r = requests.get(url)
data = r.json()
symbols_info = data['symbols']
market_list = list()
for x in range(0,len(symbols_info)):
symbol = symbols_info[x]['symbol']
import time
import dateparser
import pytz
import json
import csv
import datetime
from dateutil.rrule import rrule, MONTHLY
from binance.client import Client
import os
import sys
import os,sys,csv
from binance.client import Client
pathname = os.path.dirname(sys.argv[0])
full_path = '{}/'.format(str(os.path.abspath(pathname)))
def create_needed_directories():
directory_finder = [x[0] for x in os.walk(full_path)]
concatenated_price_data_directory = '{}concatenated_price_data'.format(str(full_path))
if concatenated_price_data_directory not in directory_finder:
import time
import dateparser
import pytz
import json
import csv
import datetime
from dateutil.rrule import rrule, MONTHLY
from binance.client import Client
import os
import sys
import time
import dateparser
import pytz
import json
import csv
import datetime
from dateutil.rrule import rrule, MONTHLY
from binance.client import Client
import os
import sys
import time
import dateparser
import pytz
import json
import csv
import datetime
from dateutil.rrule import rrule, MONTHLY
from binance.client import Client
import os
import sys
import time
import dateparser
import pytz
import json
import csv
import datetime
from dateutil.rrule import rrule, MONTHLY
from binance.client import Client
import os
import sys
import os
import sys
import shutil
import multiprocessing as mp
from itertools import repeat as re
import dateparser
import pytz
import json
import csv
import datetime