-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathtest.py
More file actions
25 lines (19 loc) · 686 Bytes
/
test.py
File metadata and controls
25 lines (19 loc) · 686 Bytes
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
import utils
from utils import formatForBinance
client = utils.setProfile()
def formatForBinance_test():
print(formatForBinance('1.00000', '947.237'))
assert formatForBinance('1.00000', '947.237') == '947'
def formatForBinance_test2():
print(formatForBinance('100.2508', '947.237'))
assert formatForBinance('100.2508', '947.237') == '947.2370'
def precision_test(client):
precision = client.get_symbol_info(symbol='ADABTC')["filters"][0]["tickSize"]
print('precision:', precision)
#def findPump_test():
# print(utils.findPump(client))
#formatForBinance_test()
#formatForBinance_test2()
precision_test(client)
#findPump_test()
print("Everything passed")