Support Center

API Method: POST addorders

Last Updated: Feb 26, 2014 02:00PM GMT
This method allows you to place one or more orders for buying or selling a number of shares of a contract.

For this POST operation, you need to specify a JSON body for the request. It is also required to specify the following HTTP header:
​Content-Type: application/json
The details of the orders should be passed in the body of the request in JSON format. The JSON document should look as follow:
For example:

Return Value
The response is an array of string values representing the new order IDs:

Description of the fields:
  • ContractId: Unique Id of the contract you want to buy or sell shares for.
  • IsAsk: if true, it means you want to sell long shares (same as buy short shares), if false you want to buy long shares (same as sell short share).
  • Quantity: Number of shares you want to ask or bid for
  • Price: price of each share you want to buy or sell, in Satoshi (the base unit of Bitcoin, 1 Satoshi = 0.00000001 BTC)
  • (Optional) ExpirationSeconds: This element can be omitted. This represents the number of seconds before which the order will expire and be automatically cancelled. If this is omitted, the order does not expire. The minimum valid value is 60 (one minute).
seconds ago
a minute ago
minutes ago
an hour ago
hours ago
a day ago
days ago
Invalid characters found