POST api/MarketQuotation/GetChartData
获取商品项的图表数据
Request Information
URI Parameters
None.
Body Parameters
ChartRequest| Name | Description | Type | Additional information |
|---|---|---|---|
| ProductSkuId |
skuId |
integer |
None. |
| StartTime |
开始时间,不能为空,后台自动转换为日期格式 |
date |
None. |
| EndTime |
结束时间,不能为空,后台自动转换为日期格式 |
date |
None. |
Request Formats
application/json, text/json
Sample:
{
"ProductSkuId": 1,
"StartTime": "2025-12-26T20:11:44.0846775+08:00",
"EndTime": "2025-12-26T20:11:44.0846775+08:00"
}
application/xml, text/xml
Sample:
<ChartRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/DataModel.Exchange.Request"> <EndTime>2025-12-26T20:11:44.0846775+08:00</EndTime> <ProductSkuId>1</ProductSkuId> <StartTime>2025-12-26T20:11:44.0846775+08:00</StartTime> </ChartRequest>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
ResponseOfChartResponse| Name | Description | Type | Additional information |
|---|---|---|---|
| data | ChartResponse |
None. |
|
| errcode |
错误码,默认为成功:SUCCESS |
string |
None. |
| errmsg |
错误信息,默认为:成功 |
string |
None. |
Response Formats
application/json, text/json
Sample:
{
"data": {
"Name": "sample string 1",
"VenderName": "sample string 2",
"Id": 3,
"Prices": [
1.0,
2.0
],
"MarketPrices": [
1.0,
2.0
],
"UseDate": [
"2025-12-26T20:11:44.0846775+08:00",
"2025-12-26T20:11:44.0846775+08:00"
]
},
"errcode": "sample string 1",
"errmsg": "sample string 2"
}
application/xml, text/xml
Sample:
<ResponseOfChartResponseP67rDlvc xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Infrastructure.WebApi">
<errcode>sample string 1</errcode>
<errmsg>sample string 2</errmsg>
<data xmlns:d2p1="http://schemas.datacontract.org/2004/07/DataModel.Exchange.Response.api">
<d2p1:Id>3</d2p1:Id>
<d2p1:MarketPrices xmlns:d3p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d3p1:decimal>1</d3p1:decimal>
<d3p1:decimal>2</d3p1:decimal>
</d2p1:MarketPrices>
<d2p1:Name>sample string 1</d2p1:Name>
<d2p1:Prices xmlns:d3p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d3p1:decimal>1</d3p1:decimal>
<d3p1:decimal>2</d3p1:decimal>
</d2p1:Prices>
<d2p1:UseDate xmlns:d3p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d3p1:dateTime>2025-12-26T20:11:44.0846775+08:00</d3p1:dateTime>
<d3p1:dateTime>2025-12-26T20:11:44.0846775+08:00</d3p1:dateTime>
</d2p1:UseDate>
<d2p1:VenderName>sample string 2</d2p1:VenderName>
</data>
</ResponseOfChartResponseP67rDlvc>