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 | |
import json | |
from time import sleep | |
from datetime import datetime | |
#settings | |
delta_band = .1 # how far can account delta drift from 0 either up or down | |
repeat_seconds = 5 # how often should the script loop to check for delta | |
delta_bias = 1 # 0=no bias, >0 positive price bias ok with additional BTC exposure |