Skip to content
MyStocks Developers
API v1

API v1

Current stable contract

Versioning policyRelease changelog
Sandbox console
Trading API

Placing Orders

MyStocks Partner API

Place quote-gated market orders and resting limit or stop orders with correct sizing, idempotency, and lifecycle handling.

Explore endpoints

23 of 23
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.

Market order sequence

  1. Request GET /quote/{symbol} with the account, side, and exact quantity or cashValue.
  2. Validate quoteExpiresAt, fees, currency, and sufficient funds.
  3. Submit POST /trade or POST /users/{userId}/trade with the matching quoteId.
  4. Include a unique Idempotency-Key.
  5. Follow the order through REST, SSE, or signed webhooks.

Resting order sequence

LIMIT, STOP, and STOP_LIMIT orders supply trigger/limit prices and do not use quoteId. They return WORKING while resting, may trigger later as order.triggered, and can be cancelled while active.

{
  "symbol": "SCOM.KE",
  "type": "BUY",
  "orderType": "LIMIT",
  "quantity": 100,
  "limitPrice": 16.25,
  "timeInForce": "GTC"
}

Every write must be safe to retry with the same idempotency key. A new key represents a new operation, not a retry of the previous request. See Order Lifecycles for terminal states and Advanced Order Types for triggers and expiry.

Was this page useful?

Your signal helps us tighten partner onboarding docs.

Send note

Last updated on

On this page