Skip to content

feat(v3.1.11): rewrite RestClientV3 apidoc examples and add missing UTA endpoints - #154

Merged
tiagosiebler merged 5 commits into
sieblyio:masterfrom
JJ-Cro:updateExamplesApidoc
Jul 15, 2026
Merged

feat(v3.1.11): rewrite RestClientV3 apidoc examples and add missing UTA endpoints#154
tiagosiebler merged 5 commits into
sieblyio:masterfrom
JJ-Cro:updateExamplesApidoc

Conversation

@JJ-Cro

@JJ-Cro JJ-Cro commented Jul 15, 2026

Copy link
Copy Markdown
Contributor

PR body / release notes

Summary
RestClientV3 apidoc examples are rewritten to match official Bitget UTA docs (Bybit-style): kebab-case filenames from API doc titles, inline params from curl examples, no auto-gen headers. Adds missing SDK methods and fixes several request/response types that were out of sync with the docs.

RestClientV3 apidoc (177 examples)
Replaced all camelCase auto-generated stubs under examples/apidoc/RestClientV3/ with manual examples covering:

Market / Public (35)
Account (52)
Trade (22)
Strategy (5)
Copy Trading (5)
Earn (8)
Tax (1)
Crypto Loans (11)
Inst Loan (9)
P2P (18)
Broker (11)
Each file follows the same pattern: RestClientV3 client init, SDK method call with doc params, .then / .catch logging.

New SDK methods
Method Endpoint
getRealityOrderBook
GET /api/v3/account/reality-orderbook
getRealityFills
GET /api/v3/account/reality-fills
createAgentSubAccount
POST /api/v3/user/sub-account/agent-create
subMasterTransfer
POST /api/v3/account/sub-master-transfer
movePositions
POST /api/v3/account/move-positions
getMovePositionHistory
GET /api/v3/account/move-position-history

JJ-Cro added 5 commits July 15, 2026 12:32
… account management features

- Introduced new methods in RestClientV3 for retrieving reality fills and order book data.
- Added request and response types for agent subaccount creation, position movement, and related functionalities.
- Updated existing types to improve consistency and support new features.
…g operations

- Introduced new example scripts for adjusting account modes, batch modifying orders, placing batch orders, and managing subaccounts.
- Added examples for canceling orders, confirming payments, and retrieving account information and assets.
- Enhanced documentation with practical usage examples for various trading and account management functionalities.
- Introduced multiple new example scripts for various account management operations, including adjusting account modes, retrieving account information, and managing subaccounts.
- Added examples for crypto loan functionalities such as borrowing coins, getting loan history, and repaying loans.
- Enhanced documentation with practical usage examples for the new features.
- Deleted the generate-account-apidoc.mjs script, which contained example API calls for account management.
- This cleanup helps streamline the codebase by removing unused or redundant files.

@tiagosiebler tiagosiebler left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@tiagosiebler
tiagosiebler merged commit 437fad6 into sieblyio:master Jul 15, 2026
2 of 3 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.

2 participants