Skip to content

feat(v3.2.5): add marginMode on V3 place strategy order - #172

Merged
tiagosiebler merged 6 commits into
sieblyio:masterfrom
JJ-Cro:update07102026
Oct 8, 2026
Merged

tiagosiebler merged 6 commits into
sieblyio:masterfrom
JJ-Cro:update07102026

Conversation

@JJ-Cro

@JJ-Cro JJ-Cro commented Oct 7, 2026

Copy link
Copy Markdown
Contributor

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.

cursoragent and others added 2 commits October 7, 2026 13:20
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
cursor Bot force-pushed the update07102026 branch from 7f4dd5a to b3d5224 Compare October 7, 2026 13:41
cursoragent and others added 4 commits October 7, 2026 16:07
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
tiagosiebler merged commit 71d95ec into sieblyio:master Oct 8, 2026
1 of 2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants