mirror of
https://github.com/Death916/emailtrade.git
synced 2026-04-10 03:04:40 -07:00
kraken works
This commit is contained in:
parent
df270c2365
commit
bd5f6bca33
3 changed files with 8 additions and 3 deletions
|
|
@ -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:
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue