aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--market.py6
-rw-r--r--script.py3
2 files changed, 8 insertions, 1 deletions
diff --git a/market.py b/market.py
new file mode 100644
index 0000000..a34636e
--- /dev/null
+++ b/market.py
@@ -0,0 +1,6 @@
1import ccxt
2
3market = ccxt.poloniex({
4 "apiKey": "XXXXXXXX-XXXXXXXX-XXXXXXXX-XXXXXXXX",
5 "secret": "1234567890abcdef1234567890abcdef1234567890abcdef1234567890abcdef1234567890abcdef1234567890abcdef1234567890abcdef1234567890abcdef",
6 })
diff --git a/script.py b/script.py
index fe0f0de..9bc2fe6 100644
--- a/script.py
+++ b/script.py
@@ -1,4 +1,6 @@
1import ccxt 1import ccxt
2# Put your poloniex api key in market.py
3from market import market
2 4
3def static_var(varname, value): 5def static_var(varname, value):
4 def decorate(func): 6 def decorate(func):
@@ -22,7 +24,6 @@ repartition_pertenthousand = {
22 "SC": 623, 24 "SC": 623,
23 } 25 }
24 26
25market = ccxt.poloniex()
26 27
27def formatted_price(value): 28def formatted_price(value):
28 return round(value / 10**max_digits, 8) 29 return round(value / 10**max_digits, 8)