Comments (4)
没有配置交易所的key
from bitcoin-broker.
from bitcoin-broker.
你好,我调试过程中出现与fantasy-mark同样的错误。请问除了bitcoin-arbitrage模块需要配置key外,在bitcoin-broker模块中还需要配置吗?我在bitcoin-arbitrage中出现如下错误,但key应该是已经配置好的,查询两个账号的能正确返回数据。
[root@x3550m2-1 bitcoin-arbitrage-github]# python3 arbitrage/arbitrage.py -m OkCoinCNY,HuobiCNY get-balance
PrivateOkCoinCNY: {'btc_balance': 0.0, 'btc_frozen': 0.0, 'cny_balance': 100.53, 'cny_frozen': 0.0}
PrivateHuobiCNY: {'btc_balance': 0.0009, 'btc_frozen': 0.0, 'cny_balance': 93.27, 'cny_frozen': 0.0}
[root@x3550m2-1 bitcoin-arbitrage-github]# python3 arbitrage/arbitrage.py -oTraderBotSim -mOKCoinCNY,HuobiCNY
2017-04-25 00:06:17,108 [INFO] BasicBot Setup complete
2017-04-25 00:06:17,359 [WARNING] load client id failed!
Traceback (most recent call last):
File "arbitrage/arbitrage.py", line 204, in
main()
File "arbitrage/arbitrage.py", line 201, in main
cli.main()
File "arbitrage/arbitrage.py", line 197, in main
self.exec_command(args)
File "arbitrage/arbitrage.py", line 33, in exec_command
self.arbitrer.loop()
File "/root/BTC/bitcoin-arbitrage-github/arbitrage/arbitrer.py", line 242, in loop
self.tick()
File "/root/BTC/bitcoin-arbitrage-github/arbitrage/arbitrer.py", line 204, in tick
observer.begin_opportunity_finder(self.depths)
File "/root/BTC/bitcoin-arbitrage-github/arbitrage/observers/traderbot.py", line 47, in begin_opportunity_finder
self.check_order(depths)
File "/root/BTC/bitcoin-arbitrage-github/arbitrage/observers/traderbot.py", line 70, in check_order
if self.is_buying():
File "/root/BTC/bitcoin-arbitrage-github/arbitrage/observers/basicbot.py", line 145, in is_buying
return len(self.get_orders('buy')) > 0
File "/root/BTC/bitcoin-arbitrage-github/arbitrage/observers/basicbot.py", line 132, in get_orders
orders = [x for x in self.orders if x['type'] == type]
AttributeError: 'TraderBotSim' object has no attribute 'orders'
from bitcoin-broker.
交易所的 public key, secret key 要自己往数据库里面写吗?
from bitcoin-broker.
Related Issues (10)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from bitcoin-broker.