Skip to main content
When you place an order, we store it, send it to the exchange once, and then track it until it reaches a final state. Every change creates an event.

Order states

An order that ends as cancelled, expired or rejected can have a filled_quantity above zero: shares that traded before it ended. We record those fills first, so you receive an order.partially_filled event before the final one. New states can be added. Treat a state you don’t recognise as not final, and retrieve the order again later. See Versioning.

Trading hours

The exchange’s equities market opens for order entry at 9:00 a.m. and trades continuously from 9:30 a.m. until the pre-close at 3:50 p.m. It closes at 4:00 p.m. All times are West Africa Time (WAT). The exchange sets these hours, not us, and publishes them on its market structure page. No endpoint says whether the market is open now. The exchange doesn’t trade on Nigerian public holidays. It lists them on its trading holidays page, and the dates follow the Federal Government’s announcements. An order the broker can’t take because the market is closed comes back as 422 order_rejected with reject_reason market_closed. Send it again with a new Idempotency-Key when the market opens. While the day’s trades settle, the broker can refuse requests. It publishes this settlement lockout for an order, an estimate, the account’s balance and withdrawals (not yet in the API). If it sends one on any other read, or on an allocation, we pass it on too: The broker doesn’t specify when in the day this window falls or how long it lasts.

Order types

The broker takes limit orders only for an ETF. A market order on an ETF is rejected with 422 order_rejected and reject_reason etf_limit_orders_only, and stored as rejected: place a limit order with a new Idempotency-Key. Shares take both types. No endpoint lists which symbols are ETFs: the exchange lists them on its listed ETPs page. In the sandbox, the only ETF is STANBICETF30.

Time in force

These are the broker’s own definitions. We accept either type with any time_in_force: the broker publishes no combination it refuses. If it refuses an order’s type or time in force as invalid, the order is rejected with reject_reason rejected_by_exchange, and sending it again won’t change that: contact us with its id. An order the broker refuses with a reason it doesn’t publish is uncertain until our operations team reconciles it. Only a limit order can be cancelled: the broker takes no other cancel. A market order sent gtc that doesn’t fill stays open, with no way to cancel it through the API, so send market orders as day. If one stays open, contact us with its id. When the broker reports an order expired, we record it as expired on our next check. The broker doesn’t specify when an unfilled day order expires, or how an ioc or fok order that doesn’t fill at once ends. In the sandbox, an ioc or fok order that doesn’t fill at once ends expired. See how the sandbox behaves for day and gtc. In live, each follows the broker.

Fills

We check the broker for changes to your open orders about every 30 seconds. When an order fills, partly or fully, we record the change, and you receive the event within seconds, so expect a fill to reach you within about a minute of the trade. Fills between two checks arrive as one change, and an order that fills completely between two checks sends only order.filled: read filled_quantity, not the number of events. GET /v1/orders/{id} also returns the order as we’ve recorded it, without asking the broker. Charges aren’t on the order: the broker fixes them on the contract note, so read GET /v1/accounts/{account}/contract-notes for what an order cost.

After a fill

A fill becomes a trade, the trade settles, and the broker issues a contract note for it: The broker describes contract notes as settled trades: a trade’s note appears once it settles, from the business day after the trade. In the sandbox, a trade shows at once, and its contract note appears from the next day, with its transaction_date the same as its trade_date. When a sale’s proceeds can pay for a buy or be taken out is the broker’s decision: available_kobo on GET /v1/accounts/{account}/balance is what the account can spend. Sell no more than the position’s quantity: the broker doesn’t specify whether shares bought can be sold before they settle. In the sandbox, a sale’s proceeds, less charges, are in the balance at once, and shares bought can be sold at once. A contract note’s ticket is the ticket of its trade, and the trade carries the order_id of your order. Match a note to its trade by ticket to find the order it belongs to. What a contract note’s figures mean: For what a buy cost, add the three charges to consideration_kobo; for what a sell paid, subtract them. The broker counts charges apart from the consideration: its estimate is the consideration plus statutory charges and commission. The broker’s charges can include fractions of a kobo, so each figure also comes exact, as a _kobo_decimal string: commission_kobo_decimal beside commission_kobo, and so on. The whole-kobo figures are rounded against the customer: the three charges up, and amount_kobo and consideration_kobo up on a buy and down on a sell. Each is rounded on its own, so for an exact total, add the _kobo_decimal figures. A position’s average_cost_kobo_decimal is the broker’s average price for the shares held. The broker doesn’t specify whether it includes charges. In the sandbox it doesn’t.

Dividends and bonus shares

Cash dividends don’t pass through the API. The company’s registrar pays them into the bank account on the customer’s e-dividend mandate, which the SEC introduced so shareholders are paid electronically. Bonus shares are credited to the customer’s CSCS account. They show in GET /v1/accounts/{account}/positions as the broker reports them.

Rights issues

The API doesn’t take part in a rights issue. A customer takes up their rights as the issue’s own documents describe, through the registrar or a stockbroker. Shares allotted to them show in GET /v1/accounts/{account}/positions once the broker reports them. The API sends no notice of a rights issue. For a question about one on a customer’s holding, contact us with the account code.

Your own reference

Send client_reference with an order, an application or an allocation to tag it with your own ID. We store it, return it on the object and its events, and let you filter a list by it: GET /v1/orders?client_reference=ord-88213. It’s 1 to 64 printable ASCII characters with no spaces, and it isn’t unique: several orders can share one. It’s part of the request an Idempotency-Key stands for, so a retry with the same key and a different client_reference returns 409 duplicate_order. Never put personal data in it. GET /v1/orders also filters by account, state and symbol, each at most once, and the filters combine. Keep the same filters on every page of a list. To place, estimate and cancel orders step by step, see Trade for a customer.