-
Notifications
You must be signed in to change notification settings - Fork 1
/
braziliex.py
113 lines (89 loc) · 4.06 KB
/
braziliex.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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
import time
import datetime
import json
import requests
def braziliex_usdt():
braziliexusdttick = requests.get('https://braziliex.com/api/v1/public/ticker/usdt_brl')
return braziliexusdttick.json()['lowestAsk']
def braziliex_btc():
braziliextick = requests.get('https://braziliex.com/api/v1/public/ticker/btc_brl')
return braziliextick.json()['lowestAsk']
def braziliex_eth():
braziliexeth = requests.get('https://braziliex.com/api/v1/public/ticker/eth_brl')
return braziliexeth.json()['lowestAsk']
def braziliex_ltc():
braziliexltc = requests.get('https://braziliex.com/api/v1/public/ticker/ltc_brl')
return braziliexltc.json()['lowestAsk']
def braziliex_mxt():
braziliexmxt = requests.get('https://braziliex.com/api/v1/public/ticker/mxt_brl')
return braziliexmxt.json()['lowestAsk']
def braziliex_sngls():
braziliexsngls = requests.get('https://braziliex.com/api/v1/public/ticker/sngls_brl')
return braziliexsngls.json()['lowestAsk']
#def braziliex_trx():
#braziliextrx = requests.get('https://braziliex.com/api/v1/public/ticker/trx_brl')
#return braziliextrx.json()['lowestAsk']
def braziliex_xmr():
braziliexxmr = requests.get('https://braziliex.com/api/v1/public/ticker/xmr_brl')
return braziliexxmr.json()['lowestAsk']
#def braziliex_eos():
#braziliexeos = requests.get('https://braziliex.com/api/v1/public/ticker/eos_brl')
#return braziliexeos.json()['lowestAsk']
def braziliex_bch():
braziliexbch = requests.get('https://braziliex.com/api/v1/public/ticker/bch_brl')
return braziliexbch.json()['lowestAsk']
def braziliex_btg():
braziliexbtg = requests.get('https://braziliex.com/api/v1/public/ticker/btg_brl')
return braziliexbtg.json()['lowestAsk']
def braziliex_omg():
braziliexomg = requests.get('https://braziliex.com/api/v1/public/ticker/omg_brl')
return braziliexomg.json()['lowestAsk']
def braziliex_zec():
braziliexzec = requests.get('https://braziliex.com/api/v1/public/ticker/zec_brl')
return braziliexzec.json()['lowestAsk']
def braziliex_crw():
braziliexcrw = requests.get('https://braziliex.com/api/v1/public/ticker/crw_brl')
return braziliexcrw.json()['lowestAsk']
def braziliex_gnt():
braziliexgnt = requests.get('https://braziliex.com/api/v1/public/ticker/gnt_brl')
return braziliexgnt.json()['lowestAsk']
def braziliex_xrp():
braziliexxrp = requests.get('https://braziliex.com/api/v1/public/ticker/xrp_brl')
return braziliexxrp.json()['lowestAsk']
def braziliex_etc():
braziliexetc = requests.get('https://braziliex.com/api/v1/public/ticker/etc_brl')
return braziliexetc.json()['lowestAsk']
while True:
braziliexliveusdt = float(braziliex_usdt())
braziliexlivebtc = float(braziliex_btc())
braziliexliveeth = float(braziliex_eth())
braziliexliveltc = float(braziliex_ltc())
#braziliexlivemxt = float(braziliex_mxt())
#braziliexlivesngls = float(braziliex_sngls())
#braziliexlivetrx = float(braziliex_trx())
braziliexlivexmr = float(braziliex_xmr())
#braziliexlivebtg = float(braziliex_btg())
#braziliexliveeos = float(braziliex_eos())
braziliexlivebch = float(braziliex_bch())
#braziliexliveomg = float(braziliex_omg())
braziliexlivezec = float(braziliex_zec())
#braziliexlivecrw = float(braziliex_crw())
#braziliexlivegnt = float(braziliex_gnt())
braziliexlivexrp = float(braziliex_xrp())
#braziliexliveetc = float(braziliex_etc())
print ('###################--BRAZILIEX--########################')
print ('BTC = BRL',braziliexlivebtc)
print ('ETH = BRL',braziliexliveeth)
print ('LTC = BRL',braziliexliveltc)
print ('XRP = BRL',braziliexlivexrp)
print ('BCH = BRL',braziliexlivebch)
print ('XMR = BRL',braziliexlivexmr)
#print ('BTG = BRL',braziliexlivebtg)
#print ('SNG = BRL',braziliexlivesngls)
#print ('TRX = BRL',braziliexlivetrx)
print ('ZEC = BRL',braziliexlivezec)
#print ('EOS = BRL',braziliexliveeos)
#print ('OMG = BRL',braziliexliveomg)
#print ('ETC = BRL',braziliexliveetc)
#print ('GNT = BRL',braziliexlivegnt)
time.sleep(60)