QuantConnect / Documentation

QuantConnect Wiki Style Documentation Behind QuantConnect
https://www.quantconnect.com/docs/v2/
Apache License 2.0
171 stars 135 forks source link

Improve Bybit Account Information #1674

Closed AlexCatarino closed 2 months ago

AlexCatarino commented 5 months ago

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:

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

AlexCatarino commented 2 months ago

Closed by https://github.com/QuantConnect/Documentation/commit/79efb563ee0b5c433eaeb96fd8523a0ccba7294e

For reference: Captura de ecrã 2024-07-11 164916