Type/to search
0
Follow
0
Followers
Làm thế nào để viết lệnh mua toàn bộ và lệnh bán toàn bộ bằng Python?
Help
Created 2021-04-27 16:51:55  
 3
 1297

Tài liệu api chỉ cho phép mua một số lượng nhất định.
def main():
id = exchange.Buy(100, 1)
Log("id:", id)
Làm ơn cho tôi biết cách viết Python mua kho và bán kho như thế nào?

Related Recommendations
Comment
All comments (3)

    exchange.Buy("梭哈")

    5 years ago

    可用余额/价格

    5 years ago

    buyPrice = _N(ticker.Sell + spread, ZPrecision)
    buyAmount = _N(diffAsset / buyPrice, XPrecision)
    if buyAmount < MinStock:
    return False
    exchange.Buy(buyPrice, buyAmount)

    5 years ago
  • 1
Forums
PINE Language
Get the app
iPhone Download
© 2015 - ∞ INVENTOR PTE LTD (SG)