Skip to content
MyStocks Developers
API v1

API v1

Current stable contract

Versioning policyRelease changelog
Sandbox console
Trading API

Getting Started with Trading API

MyStocks Partner API

Place, observe, and reconcile a sandbox trade with the MyStocks Partner API.

Explore endpoints

59 of 59
GET

/bonds

List bonds & fixed income

Full endpoint documentation
Sandbox availablelistBonds

Returns all available bonds, treasury bills, and fixed-income instruments. Includes coupon rate, maturity date, minimum investment, and current yield.

Parameters

instrumentTypestringquery
currencystringquery
exchangestringquery

Headers

AuthorizationstringRequired

Bearer sk_sandbox_<your_key> for sandbox requests.

Response fields

bondsobject[]Required
bonds[].idstringRequired
bonds[].namestring | nullRequired
bonds[].symbolstring | nullRequired
bonds[].issuerstring | nullRequired
bonds[].instrumentTypestringRequired
bonds[].assetTypestringRequired
bonds[].currencystring | nullRequired
bonds[].faceValuenumberRequired
bonds[].pricePerUnitnumberRequired
bonds[].couponRatenumber | nullRequired

Percentage points: 12.5 means 12.5%.

bonds[].currentYieldnumber | nullRequired
bonds[].yieldToMaturitynumber | nullRequired
bonds[].minInvestmentnumber | nullRequired
bonds[].maturityDatestring | nullRequired
bonds[].exchangestring | nullRequired
bonds[].statusstringRequired
bonds[].descriptionstring | nullRequired
countintegerRequired

Response codes

200Bond list.

Workflow

  1. Authenticate with a sandbox partner key.
  2. Create or select a verified sub-account, or use the master account.
  3. Request a quote using the exact symbol, side, quantity, or cashValue.
  4. Place the order with the returned quoteId and an Idempotency-Key.
  5. Poll order status or subscribe to signed webhook/SSE events.
  6. Inspect executions, portfolio, buying power, and ledger entries.
  7. Reconcile the completed trade against the daily report.

The full request sequence is in Trading, including market, limit, stop, time-in-force, cancellation, and fractional cash-value examples.

Important invariants

  • Never reuse an expired or already-consumed quote.
  • Never generate a new idempotency key when retrying the same write.
  • Treat webhook delivery as at-least-once and potentially out of order.
  • Do not treat a submitted or pending order as settled custody.

Use the API Tester for individual calls and the API Reference for the exact request schema.

Was this page useful?

Your signal helps us tighten partner onboarding docs.

Send note

Last updated on

On this page