POST api/houseprice/gethangexchangepricechart

获取挂牌+成交均价,可根据城市、区域、版块以及小区进行细致化查询

默认返回json数据,若要返回xml格式数据在访问地址后加上xml=true

Request 信息

URI 参数

None.

Body 参数

查询

HousePriceModel
名称说明数据类型附加信息
RegionCode

可选,区域,优先级大于城市

string

Matching regular expression pattern: ^\d{6}$

BoardId

可选,板块id,优先级大于区域

integer

None.

BuildingId

可选,小区id,优先级大于板块id

integer

None.

EndDate

[可选]截至日期,如2014-11,表示2014年11月

string

None.

Months

可选,默认6个月

integer

Range: inclusive between 1 and 12

City

城市

string

Required

Token

token

string

Required

Platform

string

None.

Request 数据格式

application/json, text/json

示例:
{
  "RegionCode": "sample string 1",
  "BoardId": 1,
  "BuildingId": 1,
  "EndDate": "sample string 2",
  "Months": 1,
  "City": "sample string 3",
  "Token": "sample string 4",
  "Platform": "sample string 5"
}

application/xml, text/xml

示例:
<HousePriceModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/API.Models.API.HousePrice">
  <Platform xmlns="http://schemas.datacontract.org/2004/07/API.Models.API">sample string 5</Platform>
  <Token xmlns="http://schemas.datacontract.org/2004/07/API.Models.API">sample string 4</Token>
  <City xmlns="http://schemas.datacontract.org/2004/07/API.Models.API">sample string 3</City>
  <BoardId>1</BoardId>
  <BuildingId>1</BuildingId>
  <EndDate>sample string 2</EndDate>
  <Months>1</Months>
  <RegionCode>sample string 1</RegionCode>
</HousePriceModel>

application/x-www-form-urlencoded

示例:

Response 信息

输出返回说明

结果

HangExchangePriceChart
名称说明数据类型附加信息
Labels

月份

Collection of string

None.

BuildingPrice

挂牌价

Collection of integer

None.

ExchangePrice

成交价

Collection of integer

None.

BuildingRate

挂牌涨幅

Collection of decimal number

None.

ExchangeRate

成交涨幅

Collection of decimal number

None.

ErrorCode

API错误码

APIErrorCode

None.

Msg

附带消息

string

None.

Response 返回数据格式

application/json, text/json

示例:
{
  "Labels": [
    "sample string 1",
    "sample string 2"
  ],
  "BuildingPrice": [
    1,
    2
  ],
  "ExchangePrice": [
    1,
    2
  ],
  "BuildingRate": [
    1.1,
    2.1
  ],
  "ExchangeRate": [
    1.1,
    2.1
  ],
  "ErrorCode": 0,
  "Msg": "sample string 1"
}

application/xml, text/xml

示例:
<HangExchangePriceChart xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/API.Models.API.HousePrice">
  <ErrorCode xmlns="http://schemas.datacontract.org/2004/07/API.Models.API">SUCCESS</ErrorCode>
  <Msg xmlns="http://schemas.datacontract.org/2004/07/API.Models.API">sample string 1</Msg>
  <BuildingPrice xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
    <d2p1:long>1</d2p1:long>
    <d2p1:long>2</d2p1:long>
  </BuildingPrice>
  <BuildingRate xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
    <d2p1:float>1.1</d2p1:float>
    <d2p1:float>2.1</d2p1:float>
  </BuildingRate>
  <ExchangePrice xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
    <d2p1:long>1</d2p1:long>
    <d2p1:long>2</d2p1:long>
  </ExchangePrice>
  <ExchangeRate xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
    <d2p1:float>1.1</d2p1:float>
    <d2p1:float>2.1</d2p1:float>
  </ExchangeRate>
  <Labels xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
    <d2p1:string>sample string 1</d2p1:string>
    <d2p1:string>sample string 2</d2p1:string>
  </Labels>
</HangExchangePriceChart>