Skip to content

feat(examples): add go-account-place-order script#9234

Open
alia-bitgo wants to merge 1 commit into
masterfrom
caas-2080-go-account-place-order
Open

feat(examples): add go-account-place-order script#9234
alia-bitgo wants to merge 1 commit into
masterfrom
caas-2080-go-account-place-order

Conversation

@alia-bitgo

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

Copy link
Copy Markdown
Contributor

Summary

  • Adds go-account-place-order.ts example script that places a trade order on a Go Account via POST /api/prime/trading/v1/accounts/{accountId}/orders
  • Supports all order types: market, limit, and TWAP (with optional time-slicing)
  • All parameters configurable via environment variables

Test plan

  • Set TESTNET_ACCESS_TOKEN and OFC_WALLET_ID in examples/.env
  • Run a market order: OFC_WALLET_ID=your_wallet_id npx tsx go-account-place-order.ts
  • Run a limit order with TRADE_TYPE=limit TRADE_LIMIT_PRICE=... TRADE_DURATION=...
  • Verify order ID is returned in the response

Ticket: CAAS-2080

🤖 Generated with Claude Code

@alia-bitgo alia-bitgo requested a review from a team as a code owner July 10, 2026 19:08
@linear-code

linear-code Bot commented Jul 10, 2026

Copy link
Copy Markdown
Contributor

CAAS-2080

Adds a new example script that places a trade order (market, limit, or TWAP)
on a Go Account via POST /api/prime/trading/v1/accounts/{accountId}/orders.
Supports all order types with relevant parameters (limit price, duration,
time-slicing, interval) configurable via environment variables.

Ticket: CAAS-2080
@alia-bitgo alia-bitgo force-pushed the caas-2080-go-account-place-order branch from 52d684b to 1876da7 Compare July 10, 2026 19:13
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