Support Center

API Method: POST addorders

Last Updated: Feb 26, 2014 02:00PM GMT
Overview
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:
[
  {
    "ContractId":"<contractid>",
    "IsAsk":<true|false>,
    "Quantity":<integer>,
    "Price":<integer>,
    "ExpirationSeconds":<integer>
  },
  ...
]
For example:
[
  {
    "ContractId":"8134472f-c186-45ce-8e6d-28acfd2d56ca",
    "IsAsk":true,
    "Quantity":2,
    "Price":200000,
    "ExpirationSeconds":3600
  }
]

Return Value
The response is an array of string values representing the new order IDs:
["7e746d0f-457a-4252-85b7-f4d67f1445ea","781c864b-c40f-4208-b784-191fae52499d"]

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).
support@predictious.com
https://cdn.desk.com/
false
desk
Loading
seconds ago
a minute ago
minutes ago
an hour ago
hours ago
a day ago
days ago
about
false
Invalid characters found
/customer/en/portal/articles/autocomplete