在设定止盈价和止损价时,当前价格和入场价能有多接近?
我似乎找不到说明此限制的官方文件。我可能错过了文档中的一些内容。
我每隔一段时间就会收到此错误,我想知道我可以收紧多少我的止盈位和止损位(遗憾的是,我认为我无法通过 API 测试每个差异,因为价格是实时变化的):
BinanceAPIException : APIError(code=-2021): 订单将立即触发。
先谢谢您!
I can't seem to find official document stating this limit. I might have missed something from the docs.
I keep on getting this error every once in a while and I want to know how much I can tighten my TPs and SLs (Sadly I dont think i can test every difference through the API since prices are live and moving):
BinanceAPIException: APIError(code=-2021): Order would immediately trigger.
Thank you in advance!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您应该考虑点差:
“点差是证券或资产(如股票、债券或商品)的买价和卖价之间的差距。这称为买卖价差。”
https://www.investopedia.com/terms/s/spread.asp#:~:text=一般%2C%20the%20spread%20引用%20,如%20a%20bid%2Dask%20spread。
因此,关于您必须考虑的值,例如,如果您的点差为 2 点,则设置 2/3 点的止损将立即触发它。
you should take into consideration the spread :
"the spread is the gap between the bid and the ask prices of a security or asset, like a stock, bond, or commodity. This is known as a bid-ask spread."
https://www.investopedia.com/terms/s/spread.asp#:~:text=Generally%2C%20the%20spread%20refers%20to,as%20a%20bid%2Dask%20spread.
so regarding the values you have to take it into consideration , example if you're spread is 2 pip , setting a sl with 2/3 pip will immediately trigger it ..