Trade

Put up trade

Use this endpoint to create a buy or sell order

POST https://ecn.afexnigeria.com/AFEXOVS/api/v1/order/create

This endpoint is used to save new trade orders (buy or sell).

Request Body

Name
Type
Description

tid*

String

A unique string of 10 characters. Typical consists of only numbers e.g. 5647382038

cid*

String

The cid of client creating the order e.g. 3300011001

security_code*

String

Code of security to be traded e.g. SMAZ

units*

String

The number of units to be traded

board_type*

String

Board type can be "Spot" or "OTC".

order_type*

String

This can either be "Buy" or "Sell"

order_price*

String

The price per unit to trade at as specified by the client.

brokerage_fee*

String

Brokerage Fee in percentage.

security_location_code

String

discount

String

discount_type

String

deduction

String

deduction_type

String

fees_breakdown*

list

A list of json objects that include the percentage fee to be charged as well as the recipient client (broker) cid of the fee e.g. [{"cid": "1000000001", "fee": 0.5, "type": "percentage"}].

N.B: The sum of fees in the breakdown must be equal to the brokerage_fee value above

is_on_behalf*

bool

A boolean that specifies if the order was created on behalf of the client. Perhaps by a broker

trader_first_name

String

For OTC

trader_last_name

String

For OTC

trader_phone_number

String

For OTC

trader_address

String

For OTC

trader_lga

String

For OTC

trader_state

String

For OTC

Trade Order List

Use this endpoint to pull a list of all orders on the exchange

GET https://ecn.afexnigeria.com/AFEXOVS/api/v1/order/list

This endpoint is used to list saved trade orders

Completed Trade Order List

Use this endpoint to pull a list of all completed (Matched) trades on the exchange

GET https://ecn.afexnigeria.com/AFEXOVS/api/v1/order/list/complete

Trade Cancellation

Use this endpoint to cancel an open trade

GET https://ecn.afexnigeria.com/AFEXOVS/api/v1/order/cancel

This endpoint enables the cancellation of a trade order as long as it has not matched.

Request Body

Name
Type
Description

tid*

String

Last updated