Skip to content

feat(examples): add go-account-list-orders script#9254

Open
alia-bitgo wants to merge 1 commit into
masterfrom
caas-2126-go-account-list-orders
Open

feat(examples): add go-account-list-orders script#9254
alia-bitgo wants to merge 1 commit into
masterfrom
caas-2126-go-account-list-orders

Conversation

@alia-bitgo

@alia-bitgo alia-bitgo commented Jul 14, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Adds go-account-list-orders.ts example script that fetches all trade orders for a Go Account via GET /api/prime/trading/v1/accounts/{accountId}/orders
  • Supports optional filtering by status and product symbol via environment variables

Test plan

  • Set TESTNET_ACCESS_TOKEN and OFC_WALLET_ID in examples/.env
  • Run npx tsx go-account-list-orders.ts from examples/ts/go-account
  • Test status filter: TRADE_ORDER_STATUS=filled npx tsx go-account-list-orders.ts
  • Test product filter: TRADE_ORDER_PRODUCT=TBTC4-TEUR npx tsx go-account-list-orders.ts

Ticket: CAAS-2126

🤖 Generated with Claude Code

Adds a new example script that fetches all trade orders for a Go Account
via GET /api/prime/trading/v1/accounts/{accountId}/orders. Supports
optional filtering by status and product symbol via environment variables.

Ticket: CAAS-2126
@alia-bitgo alia-bitgo requested a review from a team as a code owner July 14, 2026 15:39
@linear-code

linear-code Bot commented Jul 14, 2026

Copy link
Copy Markdown
Contributor

CAAS-2126

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.

1 participant