Corgi BankDocumentation
OpenAPI

Create a bank securities order

POST/ledger/securities/orders

Fresh verified non-API-key staff with ledger:securities:write required. Exact actor/key/input replay retains the original stable order and lot. BUY binds a cash ceiling and actual master source; SELL reserves the entire original owned lot exclusively. Full fills only. Request and independent review do not invent execution or settlement. All mutations require verified authority even in local mode; customers and API keys are refused. Evidence JSON is strict and bounded at 5 MiB; complete responses are bounded at 16 MiB and never silently truncated.

Headers

Idempotency-KeystringRequired

Send on every write that creates or changes money or state; a replay with the same key returns the original result with 200.

Body parameters

cash_limit_amountintegerRequired
currency_codestringRequired
custody_account_idstringRequired

Example acct_2tVh8nqLxq4GbDe0K1F6S9zRcWm

dealer_customer_idstringRequired

Example cust_2tVh8nqLxq4GbDe0K1F6S9zRcWm

dealer_referencestringRequired
instrument_idstringRequired
limit_priceintegerRequired
lot_idstringOptional
max_fee_amountintegerRequired
program_idstringRequired
rationalestringRequired
settlement_datestring · dateRequired

A business date, YYYY-MM-DD

sidestringRequired
trade_datestring · dateRequired

A business date, YYYY-MM-DD

unitsintegerRequired

Returns

200 OK

The Bank Securities Order object.

Errors

Every error is a problem document with a stable code. See Errors.

400401403404409412413422424429500503

to move to open esc to close