### 同花顺板块历史行情
~~~
get_history_hy(code, type = 'd')
~~~
#### 参数说明
* code: 板块代码,
* type: 行情类型:
* d: 日线数据
* w: 周线数据
* m: 月线数据
#### 返回说明
返回Promise。
**resolve参数对象属性:**
* date:数组,数据日期,
* open:数组,开盘价,
* high:数组,最高价,
* low:数组,最低价,
* close:数组,收盘价,
* volume:数组,成交量,
* money:数组,成交金额。
#### 例子
~~~
let stock = require('okaystock')
stock.get_history_hy('881137')
.then(data => {
console.log(data)
}).catch(err => {
console.log(err)
})
~~~
输出:
~~~
{ name: '造纸',
date:
[ '20171026',
'20171027',
'20171030',
'20171031',
'20171101',
'20171102',
'20171103',
'20171106',
'20171107',
'20171108',
'20171109',
... more items ],
open:
[ 1961.516,
1972.846,
1962.971,
1917.121,
1938.329,
1935.029,
1908.458,
1875.955,
1885.106,
1897.101,
1907.873,
1921.441,
1905.606,
... more items ],
high:
[ 1978.021,
1978.626,
1967.919,
1941.114,
1942.159,
1935.029,
1908.458,
1890.435,
1891.428,
1914.163,
1916.307,
1924.841,
1908.602,
1918.428,
... more items ],
low:
[ 1951.548,
1959.98,
1907.142,
1914.849,
1932.196,
1907.228,
1861.907,
1845.638,
1874.447,
1894.275,
1904.562,
1900.343,
... more items ],
close:
[ 1973.933,
1964.33,
1911.049,
1940.526,
1934.231,
1909.488,
1877.346,
1890.305,
1891.089,
1902.587,
1915.378,
1909.151,
1908.053,
1900.134,
... more items ],
volume:
[ 294326560,
249460510,
329372490,
224909480,
235256050,
245659600,
383436610,
281436210,
210618490,
208966600,
177252230,
222688070,
... more items ],
money:
[ 2853374900,
2440827600,
3042025500,
2335261200,
2320407300,
2453496900,
3515596500,
2635227400,
1979793500,
1945577200,
1994177700,
2923253900,
3001343300,
... more items ] }
~~~
