-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathKey_Example.py
56 lines (26 loc) · 1.05 KB
/
Key_Example.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
import botconfig
#dict of dicts with ccxt-standard 3-letter currency id as the key, and dict with name of coin, public address, and private address
_all_coins = {
'BTC':{'name':'bitcoin','public':'pubkey','private':'privkey'}}
_all_exchange_keys = {'exchangename':{'key':'apikeypublic','secret':'apikeyprivate'}}
_active_exchanges = ['exchangename']
_active_coins = ['BTC']
_infura_url = "used for infura api calls"
_infura_api_keys = {'public':'pubkey', 'private':'privkey'}
_onchain_key = "onchain_api_key"
_email = "your_email for site logins"
def get_keys(coins=botconfig.active_coins):
return {coin: _all_coins[coin] for coin in coins}
def get_exchanges(exchanges=botconfig.active_exchanges):
return {exchange: _all_exchange_keys[exchange] for exchange in exchanges}
def get_email():
return _email
def get_exchange_password(exchange):
#fill this out with your passwords
return
def get_infura_keys():
return _infura_api_keys
def get_infura_url():
return _infura_url
def get_onchain_key():
return _onchain_key