将交易命令发送到BYBIT TESTNET时错误

发布于 2025-01-17 14:47:42 字数 651 浏览 1 评论 0原文

我正在使用AlertaTron将手动警报发送到BYBIT TestNet Exchange。我将获得以下错误日志。请让我知道问题是什么

========错误开始==

[v283,bybit,jothibybit,eosusd] ::: market(side = buy,金额= 1); 脚本市场v1.0.0,通过aerveratron 使用2.884(当前价格)的“购买账单”为0-> 2.884 [BYBIT,JOTHIBYBIT,EOSUSD]执行市场命令购买1。 没有足够的保证金来涵盖订单的大小[POST/V2/私人/订单/创建] - 状态代码:30031 会话40B71524无需在Bybit上处理(Jothibybit),EOSUSD-等待背景过程... BYBIT:Jothibybit:无主动背景过程。完毕。 会议40B71524完成等待相关背景任务 要求关闭交换连接Bybit,Jothibybit。不再使用。 bybit关闭 机器人输入空闲状态 - 更新到最新版本。 ===结束日志

我的代码

jothibybit(EOSUSD){
exchangeSettings(leverage=cross);
cancel(which=all);
 market(side=buy, amount=1);
}
#bot

I am using Alertatron to send manual alerts to bybit testnet exchange. I am getting the following error log. Please let me know what the issue is

======error start==

[v283, bybit, jothibybit, EOSUSD] ::: market(side=buy, amount=1);
Script market v1.0.0, by Alertatron
using buy offset of 0 from 2.884 (current price) --> 2.884
[bybit, jothibybit, EOSUSD] Executing market order to buy 1.
Not enough margin to cover order that size [post /v2/private/order/create] - status code: 30031
Session 40b71524 has no more commands to process on bybit (jothibybit), EOSUSD - waiting for background processes...
bybit : jothibybit : No active background processes for EOSUSD. Done.
Session 40b71524 finished waiting for related background tasks
Request to close exchange connection bybit, jothibybit. Not being used any more.
Bybit closed
Bot entering idle state - updating to latest release.
===end log

my code

jothibybit(EOSUSD){
exchangeSettings(leverage=cross);
cancel(which=all);
 market(side=buy, amount=1);
}
#bot

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

蓝礼 2025-01-24 14:47:42

一般来说,该错误意味着您的 Bybit 账户上没有足够的资金来执行交易。

原因可能是,您没有足够的资金,那么您需要减少交易规模,或者您正在尝试从子账户执行交易,但该子账户在某种程度上无法正常工作。如果您在 Bybit 上使用子账户 API 密钥,请尝试使用主账户 API 密钥执行交易。

在这两种情况下,请通过运行手动警报来仔细检查 Alertatron 是否有权访问 Bybit 余额:

https://alertatron.com/docs/automated-trading/balance
当您执行测试交易时,您应该在 Alertatron 中打开“实时机器人输出”,以查看从 Bybit 获得的响应。

如果可行,请尝试执行示例交易:
https://alertatron.com/docs/automated-trading/api-keys-拜比特

Generally that error means that you do not have enough money on your Bybit account to execute the trade.

The reason for that can be, that you have not enough money, then you need to reduce the trade size, or you are trying to execute the trade from a subaccount, which is somehow not working properly. in case you are using a subaccount API Key on Bybit, try to execute the trades using a Main Account API Key.

In both cases double check on Alertatron if you have access to the Bybit balance, by running a Manual Alert:

https://alertatron.com/docs/automated-trading/balance
While you are executing that test trade, you should open the "live bot output" in Alertatron, to see the response you get from Bybit.

If that works, try to execute an example trade:
https://alertatron.com/docs/automated-trading/api-keys-bybit

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文