数字货币定投
0
Follow
1
Followers
Source
Python
def onTick():
exchange_count = len(exchanges)
for i in range(exchange_count):
account = exchanges[i].GetAccount()
marketName = exchanges[i].GetName()
depth = exchanges[i].GetDepth()
Log("Market ",marketName,exchanges[i].GetCurrency(),"Account Balance [",account["Balance"],"] Stocks[",account["Stocks"],"]")
if account and depth and account["Balance"] > accountLimitMoney :
bidPrice = depth["Asks"][0]["Price"]
if bidPrice < maxBidPrice :Strategy parameters
Related strategies
Comment
All comments (0)
No data
- 1