POST api/Order?strType={strType}
Request Information
URI Parameters
| Name | Description | Type | Additional information |
|---|---|---|---|
| strType | string |
Required |
Body Parameters
OrderModel| Name | Description | Type | Additional information |
|---|---|---|---|
| OrderType | string |
None. |
|
| AccTno | string |
Required |
|
| StockSymbol | string |
Required |
|
| Quantity | string |
Required |
|
| PriceType | string |
None. |
|
| Price | string |
Required |
|
| SlipOrderQuantity | string |
None. |
|
| RememberOrder | boolean |
None. |
|
| OrderId | string |
None. |
|
| IsEdit | integer |
None. |
|
| PassTransfer | string |
None. |
|
| FeeMax | decimal number |
None. |
|
| VIA | string |
None. |
|
| Ticket | string |
None. |
Request Formats
application/json, text/json
Sample:
{
"orderType": "sample string 1",
"accTno": "sample string 2",
"stockSymbol": "sample string 3",
"quantity": "sample string 4",
"priceType": "sample string 5",
"price": "sample string 6",
"slipOrderQuantity": "sample string 7",
"rememberOrder": true,
"orderId": "sample string 9",
"isEdit": 10,
"passTransfer": "sample string 11",
"feeMax": 12.0,
"via": "sample string 13",
"ticket": "sample string 14"
}
application/xml, text/xml
Sample:
<OrderModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/OnlineBusinessObject"> <Ticket>sample string 14</Ticket> <AccTno>sample string 2</AccTno> <FeeMax>12</FeeMax> <IsEdit>10</IsEdit> <OrderId>sample string 9</OrderId> <OrderType>sample string 1</OrderType> <PassTransfer>sample string 11</PassTransfer> <Price>sample string 6</Price> <PriceType>sample string 5</PriceType> <Quantity>sample string 4</Quantity> <RememberOrder>true</RememberOrder> <SlipOrderQuantity>sample string 7</SlipOrderQuantity> <StockSymbol>sample string 3</StockSymbol> <VIA>sample string 13</VIA> </OrderModel>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
JsonResultObj| Name | Description | Type | Additional information |
|---|---|---|---|
| Code | integer |
None. |
|
| Msg | string |
None. |
|
| Message | string |
None. |
|
| Title | string |
None. |
|
| CtrFocus | string |
None. |
|
| LinkRedirect | string |
None. |
Response Formats
application/json, text/json
Sample:
{
"code": 1,
"msg": "sample string 2",
"message": "sample string 3",
"title": "sample string 4",
"ctrFocus": "sample string 5",
"linkRedirect": "sample string 6"
}
application/xml, text/xml
Sample:
<JsonResultObj xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/TradingAPI.Models"> <LinkRedirect>sample string 6</LinkRedirect> <Code>1</Code> <CtrFocus>sample string 5</CtrFocus> <Message>sample string 3</Message> <Msg>sample string 2</Msg> <Title>sample string 4</Title> </JsonResultObj>