POST api/SellHistory?mode={mode}&key={key}
Request Information
URI Parameters
| Name | Description | Type | Additional information |
|---|---|---|---|
| mode | string |
Required |
|
| key | string |
Default value is |
Body Parameters
sellhistorymodel| Name | Description | Type | Additional information |
|---|---|---|---|
| Id | integer |
None. |
|
| PortfolioId | integer |
None. |
|
| Quantity | decimal number |
None. |
|
| PurchasePrice | decimal number |
None. |
|
| SellPrice | decimal number |
None. |
|
| SellDate | date |
None. |
|
| Note | string |
None. |
|
| CoinId | integer |
None. |
|
| IsDeleted | integer |
None. |
|
| DisplayOrder | integer |
None. |
Request Formats
application/json, text/json
Sample:
{
"Id": 1,
"PortfolioId": 2,
"Quantity": 3.0,
"PurchasePrice": 4.0,
"SellPrice": 5.0,
"SellDate": "2026-01-29T00:35:30.3929961-08:00",
"Note": "sample string 7",
"CoinId": 8,
"IsDeleted": 9,
"DisplayOrder": 10
}
application/xml, text/xml
Sample:
<sellhistorymodel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/WebApp.Models"> <CoinId>8</CoinId> <DisplayOrder>10</DisplayOrder> <Id>1</Id> <IsDeleted>9</IsDeleted> <Note>sample string 7</Note> <PortfolioId>2</PortfolioId> <PurchasePrice>4</PurchasePrice> <Quantity>3</Quantity> <SellDate>2026-01-29T00:35:30.3929961-08:00</SellDate> <SellPrice>5</SellPrice> </sellhistorymodel>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
DataTable| Name | Description | Type | Additional information |
|---|---|---|---|
| CaseSensitive | boolean |
None. |
|
| IsInitialized | boolean |
None. |
|
| RemotingFormat | SerializationFormat |
None. |
|
| ChildRelations | Collection of Object |
None. |
|
| Columns | Collection of Object |
None. |
|
| Constraints | Collection of Object |
None. |
|
| DataSet | DataSet |
None. |
|
| DefaultView | Collection of Object |
None. |
|
| DisplayExpression | string |
None. |
|
| ExtendedProperties | Dictionary of Object [key] and Object [value] |
None. |
|
| HasErrors | boolean |
None. |
|
| Locale | CultureInfo |
None. |
|
| MinimumCapacity | integer |
None. |
|
| ParentRelations | Collection of Object |
None. |
|
| PrimaryKey | Collection of DataColumn |
None. |
|
| Rows | Collection of Object |
None. |
|
| TableName | string |
None. |
|
| Namespace | string |
None. |
|
| Prefix | string |
None. |
|
| Site | ISite |
None. |
|
| Container | IContainer |
None. |
|
| DesignMode | boolean |
None. |
Response Formats
application/json, text/json, application/xml, text/xml
Sample:
Sample not available.