Account Types should inform that under "API Key Permissions" we need to select "Read-Write" not "Read-Only", and that we need to enable Margin Cross Trading.
Actual Behavior
Not documented. If we don't set the account correctly, we can get:
2024-04-09T12:57:00.4688577Z ERROR:: BrokerageTransactionHandler.HandleSubmitOrderRequest(): System.Exception: ByBitApiClient request failed: [200] OK, Content: {"retCode":10005,"retMsg":"Invalid API-key, IP, or permissions for action.","result":{},"retExtInfo":{},"time":1712667420360}, ErrorCode: 10005 ErrorMessage: Invalid API-key, IP, or permissions for action.
and
2024-04-09T19:02:00.4766528Z ERROR:: BrokerageTransactionHandler.HandleSubmitOrderRequest(): System.Exception: ByBitApiClient request failed: [200] OK, Content: {"retCode":170036,"retMsg":"You haven't enabled Cross Margin Trading yet. To do so, please head to the PC trading site or the Bybit app","result":{},"retExtInfo":{},"time":1712689320374}, ErrorCode: 170036 ErrorMessage: You haven't enabled Cross Margin Trading yet. To do so, please head to the PC trading site or the Bybit app
Checklist
[x] I have completely filled out this template
[x] I have confirmed that this issue exists on the current master branch
[x] I have confirmed that this is not a duplicate issue by searching issues
Expected Behavior
Account Types should inform that under "API Key Permissions" we need to select "Read-Write" not "Read-Only", and that we need to enable Margin Cross Trading.
Actual Behavior
Not documented. If we don't set the account correctly, we can get:
and
Checklist
master
branch