Type/to search
0
Follow
0
Followers
Como escrever posição completa de compra e posição completa de venda em Python?
Help
Created 2021-04-27 16:51:55  
 3
 1297

A documentação do API só permite comprar quantidades especificadas.
def main():
id = exchange.Buy(100, 1)
Log("id:", id)
Por favor, como escrevo "compra em estoque" e "venda em estoque"?

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)