kraken works

This commit is contained in:
Death916 2021-05-25 05:27:37 -07:00
parent df270c2365
commit bd5f6bca33
3 changed files with 8 additions and 3 deletions

View file

@ -3,6 +3,9 @@ Automatically buy/sell crypto from tradingview alert email
Create keys.json file in project root and add bittrex or kraken keys
and email and password for gmail
MUST read code and add folder to gmail in same format-- will try and make easier later
MUST add an alert to indicator you want to use on trading view that just says sell or buy
If you like this software:
Get me a beer
ETH:

View file

@ -1,14 +1,16 @@
import glogin
import trex
import history as hist
import kraken
import time
MARKET = input("Pease enter what market you want to use: Kraken or bittrex").lower()
if MARKET == "kraken":
import kraken
trade = kraken
elif MARKET == "bittrex":
import trex
trade = trex
# TODO make above cleaner in get_signal

View file

@ -14,7 +14,7 @@ with open(os.getcwd() + "/keys.json") as k:
API_KEY = keys["public"]
PRIV_KEY = keys["priv"]
TICKER= "ETHUSD"
API = krakenex.api(API_KEY, PRIV_KEY)
API = krakenex.API(API_KEY, PRIV_KEY)
#BUY_CURRENCY = input().capitalize()
kraken = KrakenAPI(API)