POST FuturesMonthHistory/FuturesMonthHistory
Creates or updates futures month history records for a specified date from the list of futures month keys sent in
Request Information
URI Parameters
Body Parameters
Object that contains a history date and an array of futures month keys
clsGRFuturesPriceHistAdd| Name | Description | Type | Additional Information |
|---|---|---|---|
| GrFuturesPriceKeys |
List of Futures Price Keys to make history records for |
Collection of integer |
Required |
| HistoryDate |
The date the history records will be created for |
string |
Required Data type: DateTime Format must be MM/dd/yyyy |
Request Formats
application/json, text/json
{
"GrFuturesPriceKeys": [
1,
2
],
"HistoryDate": "sample string 3"
}
application/x-www-form-urlencoded
Response Information
Resource Description
Creates or updates futures month history records for a specified date from the list of futures month keys sent in
AgvFuturesMonthHistoryAddOrUpdate| Name | Description | Type | Additional Information |
|---|---|---|---|
| Status |
0 - Success; 1 - An error occurred; 2 - An error occurred; 3 - Descriptive message, process was successful |
string | |
| Message |
Informational message that corresponds to the Status returned; 0 - Message will be "OK"; 1 - Detailed message returned to give user an indication of what went wrong; 2 - Less detailed message returned that may not mean anything to the user but that the application might use to take a corrective action; 3 - Not an error but something the user might need to know |
string | |
| ErrorList |
List of error messages of the API call. |
Collection of string | |
| WarningList |
List of warning messages of the API call. |
Collection of string | |
| Count |
Number of records saved |
integer |
Response Formats
application/json, text/json
{
"Status": "sample string 1",
"Message": "sample string 2",
"ErrorList": [
"sample string 1",
"sample string 2"
],
"WarningList": [
"sample string 1",
"sample string 2"
],
"Count": 1
}
application/xml, text/xml
<AgvFuturesMonthHistoryAddOrUpdate xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/AgvWebAPICSharp.Models.Contract.Purchase">
<Count>1</Count>
<ErrorList xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d2p1:string>sample string 1</d2p1:string>
<d2p1:string>sample string 2</d2p1:string>
</ErrorList>
<Message>sample string 2</Message>
<Status>sample string 1</Status>
<WarningList xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d2p1:string>sample string 1</d2p1:string>
<d2p1:string>sample string 2</d2p1:string>
</WarningList>
</AgvFuturesMonthHistoryAddOrUpdate>