7 Commits
Author SHA1 Message Date
tiennm99 ee236d1fe0 refactor: rewrite SDK to align with OpenAPI spec
- Split monolithic models.go (738 lines) into 6 domain files
- Fix schema drift: BasicInfo, PersonalInfo, TotalCashDerivativeResponse,
  derivative order types, money transfer types aligned to spec
- Add missing REST endpoints: bsa-ext, bsa-month (supply/demand)
- Add WebSocket support for 5 streaming endpoints (nhooyr.io/websocket)
- Add 45 httptest-based tests (74.9% coverage)
- Rewrite README with full API coverage table

BREAKING CHANGE: struct fields and types changed to match OpenAPI spec.
BasicInfo reduced to 5 fields, TokenResponse uses 'token' field,
PlaceOrderRequest uses int types, derivative order types renamed.
2026-04-05 12:00:18 +07:00
tiennm99 5a083cb7d8 add OpenAPI spec reference file 2026-04-05 10:58:16 +07:00
tiennm99 39c1872781 fix: add sync.RWMutex for thread-safe token access 2026-03-18 11:10:29 +00:00
tiennm99andClaude Opus 4.6 4b1938e61c refactor: move SDK source from src/ to repo root for idiomatic import path
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-18 11:09:35 +00:00
tiennm99andClaude Opus 4.6 aa5b98ea02 Add Go SDK wrapping TCBS OpenAPI spec
Go client library with typed models covering all 40+ API endpoints:
authentication, account info, stock/derivative trading, market data,
and money management. SDK source organized under src/ directory.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-18 10:53:33 +00:00
tiennm99andClaude Opus 4.6 c4858a8066 Add OpenAPI specs and normalize line endings
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-18 10:39:41 +00:00
Tien Nguyen MinhandGitHub ba55ecbb95 Initial commit 2026-03-18 17:38:05 +07:00