POST api/Demo/Stock/PlaceOrder

Request Information

URI Parameters

None.

Body Parameters

OrderDetails
NameDescriptionTypeAdditional information
OrderID

integer

None.

UserID

integer

None.

StockID

integer

None.

EnteredAmount

decimal number

None.

RemainingShares

integer

None.

AmountAvailableforTrading

decimal number

None.

IsSetPrice

boolean

None.

IsMarketPrice

boolean

None.

StockCode

string

None.

StockName

string

None.

OrderType

string

None.

TradeType

string

None.

TransactionType

string

None.

NoofShares

integer

None.

AvailableShares

integer

None.

SharesExecuted

integer

None.

SharesExecutedDate

date

None.

Price

decimal number

None.

MarketPrice

decimal number

None.

PriceLimit

decimal number

None.

ValidityType

string

None.

ValidityDate

date

None.

OrderedDate

date

None.

CompletedDate

date

None.

Status

string

None.

ISXCommission

decimal number

None.

BrokerCommission

decimal number

None.

TotalAmount

decimal number

None.

EquityValue

decimal number

None.

CreatedDate

date

None.

CreatedBy

integer

None.

UpdatedDate

date

None.

UpdatedBy

integer

None.

FireBaseClientID

string

None.

StatusName

string

None.

MarketType

string

None.

companyStatus

string

None.

IsImported

boolean

None.

Request Formats

application/json, text/json

Sample:
{
  "OrderID": 1,
  "UserID": 2,
  "StockID": 3,
  "EnteredAmount": 1.0,
  "RemainingShares": 1,
  "AmountAvailableforTrading": 1.0,
  "IsSetPrice": true,
  "IsMarketPrice": true,
  "StockCode": "sample string 6",
  "StockName": "sample string 7",
  "OrderType": "sample string 8",
  "TradeType": "sample string 9",
  "TransactionType": "sample string 10",
  "NoofShares": 1,
  "AvailableShares": 1,
  "SharesExecuted": 1,
  "SharesExecutedDate": "2024-11-15T20:23:01.9069743+00:00",
  "Price": 1.0,
  "MarketPrice": 1.0,
  "PriceLimit": 1.0,
  "ValidityType": "sample string 11",
  "ValidityDate": "2024-11-15T20:23:01.9069743+00:00",
  "OrderedDate": "2024-11-15T20:23:01.9069743+00:00",
  "CompletedDate": "2024-11-15T20:23:01.9069743+00:00",
  "Status": "sample string 13",
  "ISXCommission": 1.0,
  "BrokerCommission": 1.0,
  "TotalAmount": 1.0,
  "EquityValue": 1.0,
  "CreatedDate": "2024-11-15T20:23:01.9069743+00:00",
  "CreatedBy": 1,
  "UpdatedDate": "2024-11-15T20:23:01.9069743+00:00",
  "UpdatedBy": 1,
  "FireBaseClientID": "sample string 14",
  "StatusName": "sample string 15",
  "MarketType": "sample string 16",
  "companyStatus": "sample string 17",
  "IsImported": true
}

application/xml, text/xml

Sample:
<OrderDetails xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/StockTrading.Entities.Models.Demo">
  <AmountAvailableforTrading>1</AmountAvailableforTrading>
  <AvailableShares>1</AvailableShares>
  <BrokerCommission>1</BrokerCommission>
  <CompletedDate>2024-11-15T20:23:01.9069743+00:00</CompletedDate>
  <CreatedBy>1</CreatedBy>
  <CreatedDate>2024-11-15T20:23:01.9069743+00:00</CreatedDate>
  <EnteredAmount>1</EnteredAmount>
  <EquityValue>1</EquityValue>
  <FireBaseClientID>sample string 14</FireBaseClientID>
  <ISXCommission>1</ISXCommission>
  <IsImported>true</IsImported>
  <IsMarketPrice>true</IsMarketPrice>
  <IsSetPrice>true</IsSetPrice>
  <MarketPrice>1</MarketPrice>
  <MarketType>sample string 16</MarketType>
  <NoofShares>1</NoofShares>
  <OrderID>1</OrderID>
  <OrderType>sample string 8</OrderType>
  <OrderedDate>2024-11-15T20:23:01.9069743+00:00</OrderedDate>
  <Price>1</Price>
  <PriceLimit>1</PriceLimit>
  <RemainingShares>1</RemainingShares>
  <SharesExecuted>1</SharesExecuted>
  <SharesExecutedDate>2024-11-15T20:23:01.9069743+00:00</SharesExecutedDate>
  <Status>sample string 13</Status>
  <StatusName>sample string 15</StatusName>
  <StockCode>sample string 6</StockCode>
  <StockID>3</StockID>
  <StockName>sample string 7</StockName>
  <TotalAmount>1</TotalAmount>
  <TradeType>sample string 9</TradeType>
  <TransactionType>sample string 10</TransactionType>
  <UpdatedBy>1</UpdatedBy>
  <UpdatedDate>2024-11-15T20:23:01.9069743+00:00</UpdatedDate>
  <UserID>2</UserID>
  <ValidityDate>2024-11-15T20:23:01.9069743+00:00</ValidityDate>
  <ValidityType>sample string 11</ValidityType>
  <companyStatus>sample string 17</companyStatus>
</OrderDetails>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

HttpResponseMessage
NameDescriptionTypeAdditional information
Version

Version

None.

Content

HttpContent

None.

StatusCode

HttpStatusCode

None.

ReasonPhrase

string

None.

Headers

Collection of Object

None.

RequestMessage

HttpRequestMessage

None.

IsSuccessStatusCode

boolean

None.