Repository navigation
feat(v3.2.5): add marginMode on V3 place strategy order - #172
Merged
Merged
Conversation
Isolated TP/SL on POST /api/v3/trade/place-strategy-order needs marginMode or Bitget returns 31008. Field defaults to crossed. Co-authored-by: Jerko J <JJ-Cro@users.noreply.github.com>
Version 3.2.5, same as open upstream PR sieblyio#171. Not bumped. Add optional marginMode (isolated | crossed) on PlaceStrategyOrderRequestV3 for POST /api/v3/trade/place-strategy-order. Defaults to crossed. Required for isolated positions: isolated TP/SL fails with 31008 if omitted. Not in Bitget's official API docs yet. Confirmed by Bitget API devs in their OpenAPI Telegram: https://t.me/bitgetOpenapi/152235 Co-authored-by: Jerko J <JJ-Cro@users.noreply.github.com>
cursor
Bot
force-pushed
the
update07102026
branch
from
October 7, 2026 13:41
7f4dd5a to
b3d5224
Compare
GET /api/v3/account/info returns parentId as an integer, not only the string in the docs, and permType uses underscores (read_and_write), with readonly also possible on demo keys. Confirmed by Bitget devs but not yet in their docs. Co-authored-by: Jerko J <JJ-Cro@users.noreply.github.com>
GET /api/v3/trade/history-strategy-orders returns cursor as a number though the docs say string. Response cursor and GetHistoryStrategyOrdersRequestV3.cursor are string | number. Co-authored-by: Jerko J <JJ-Cro@users.noreply.github.com>
Regenerate endpoint docs so the strategy-order type updates sit on top of the endpoints from sieblyio#171. Co-authored-by: Cursor <cursoragent@cursor.com>
tiagosiebler
approved these changes
Oct 8, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
feat(v3.2.5): add marginMode on V3 place strategy order
Isolated TP/SL on POST /api/v3/trade/place-strategy-order needs marginMode or Bitget returns 31008. Field defaults to crossed.