0
Follow
0
Followers
주문 문제, Buy(27793.27, 0.001): 400: {"code":-4014,"msg":"가격이 tick 크기에 따라 증가하지 않았습니다."} 알려주세요.
Created 2023-05-08 17:38:20
1
1270
다자리 포지션을 개설합니다.
def open_long(exchange, symbol, amount):
last_price = exchange.GetTicker()['Last']
adjusted_price = last_price * 1.0001
contract_amount = amount * adjusted_price / 100
contract_amount = round(contract_amount, 4) # Round to 4 decimal places
Log("Buy:", symbol, contract_amount)
exchange.SetDirection("buy")
return exchange.Buy(adjusted_price, contract_amount)
2023-05-08 17:18:19 Futures_Binance 错误 Buy(27793.27, 0.001): 400: {"code":-4014,"msg":"Price not increased by tick size."}
Related Recommendations
Inventor Quant Workflow FAQ (Continuously Updated)Financial Magic Zone Global KOL RecruitmentFAQ Summary (Updating...)PINE Language Introductory Tutorial of FMZ QuantPrimary Tutorial of Strategy Writing with FMZ Quant Trading Platform (Must Read)Getting Started with FMZ Quant Trading Platform (Must Read)MyLanguage DocFMZ PINE Script DocNotes & Explanation of Futures Reverse Doubling Algorithm StrategySolutions to Obtaining Docker Http Request Message
Comment
All comments (1)
- 1
