Skip to main content

Global Accounts

Auth:
  • Hybrid (JWT or API key)

Create

curl -X POST http://localhost:3004/global-accounts \
  -H "x-api-key: $API_KEY" \
  -H 'Content-Type: application/json' \
  -d '{"currency":"USD"}'

List

curl http://localhost:3004/global-accounts \
  -H "x-api-key: $API_KEY"

Get by id

curl http://localhost:3004/global-accounts/$ACCOUNT_ID \
  -H "x-api-key: $API_KEY"

Fund (deposit)

curl -X POST http://localhost:3004/global-accounts/$ACCOUNT_ID/fund \
  -H "x-api-key: $API_KEY" \
  -H 'Content-Type: application/json' \
  -d '{"amount":"1000","currency":"USD"}'