### 资金流
~~~
get_money_flow(code)
~~~
#### 参数说明
* code: 股票代码,例如:600000。
#### 返回说明
返回Promise。
**resolve参数对象属性:**
* date: 数组,日期,
* inflow:数组,主力净流入,
* inflow_rate: 数组,主力净流入净占比,
* super_inflow: 数组,超大单净流入净额,
* super_inflow_rate: 数组,超大单净流入净占比,
* b_inflow:数组,大单净流入净额
* b_inflow_rate:数组,大单净流入净占比
* m_inflow:数组,中单净流入净额,
* m_inflow_rate:数组,中单净流入净占比,
* s_inflow:数组,小单净流入净额,
* s_inflow_rate:数组,小单净流入净占比,
* close:数组,收盘价,
* chg: 数组,涨跌幅。
#### 例子
~~~
let stock = require('okaystock')
stock.get_money_flow('600000')
.then(data => {
console.log(data)
}).catch(err => {
console.log(err)
})
~~~
输出:
~~~
{ date:
[ '2017-12-25',
'2017-12-26',
'2017-12-27',
'2017-12-28',
'2017-12-29',
'2018-01-02',
'2018-01-03',
'2018-01-04',
'2018-01-05',
'2018-01-08',
'2018-01-09',
'2018-01-10',],
close:
[ '12.59',
'12.64',
'12.62',
'12.54',
'12.59',
'12.72',
'12.66',
'12.66',
'12.69',
'12.68',
'12.70',
'13.02',],
chg:
[ '-0.24%',
'0.40%',
'-0.16%',
'-0.63%',
'0.40%',
'1.03%',
'-0.47%',
'0%',
'0.24%',
'-0.08%',
'0.16%',
'2.52%', ],
inflow:
[ -268.3222,
-2731.1214,
-1748.8468,
1219.7968,
2036.3304,
603.2288,
-2991.4757,
-6440.9467,
1433.2368,
1587.8037,
2081.4137,
11840.2736,
-2903.3224,
-1465.8686,
-77.6115,
-8331.7374,
8395.7488,
-7037.4624,],
inflow_rate:
[ '-1.1%',
'-14.22%',
'-4.25%',
'4.06%',
'10.03%',
'1.52%',
'-6.23%',
'-18.38%',
'3.65%',
'4.01%',
'6.31%',
'10.1%',
'-5.98%',
'-4.72%',
'-0.1%',
'-8.67%',
'5.04%',
'-4.83%',
'-4.89%',],
super_inflow:
[ '-479.8313',
'-447.2535',
'392.9182',
'1196.6716',
'1121.0266',
'997.0715',
'-5302.1116',
'-8712.6219',
'787.0979',
'-953.8571',
'2036.6205',
'10594.2816',
'-4503.2332',
'-670.7415',],
super_inflow_rate:
[ '-1.97%',
'-2.33%',
'0.95%',
'3.98%',
'5.52%',
'2.51%',
'-11.04%',
'-24.87%',
'2.01%',
'-2.41%',
'6.17%',
'9.03%',
'-9.28%',
'-2.16%',
'-0.92%',],
b_inflow:
[ '211.5091',
'-2283.8679',
'-2141.765',
'23.1252',
'915.3038',
'-393.8427',
'2310.6359',
'2271.6752',
'646.1389',
'2541.6608',
'44.7932',
'1245.992',
'1599.9108',],
b_inflow_rate:
[ '0.87%',
'-11.89%',
'-5.2%',
'0.08%',
'4.51%',
'-0.99%',
'4.81%',
'6.48%',
'1.65%',
'6.42%',
'0.14%',
'1.06%',
'3.3%',
'-2.56%',
'0.82%',
'3.3%',],
m_inflow:
[ '1252.0607',
'1741.901',
'1256.9604',
'-343.6514',
'-1386.9196',
'-1576.1041',
'2502.4034',
'4017.5632',
'-644.4761',
'-1682.3739',
'-1442.9973',
'-6984.9472',
'1650.4537',
'1542.762',
'934.7269',
'6128.109',
'-7009.8832',
'2452.4272',],
m_inflow_rate:
[ '5.15%',
'9.07%',
'3.05%',
'-1.14%',
'-6.83%',
'-3.97%',
'5.21%',
'11.47%',
'-1.64%',
'-4.25%',
'-4.37%',
'-5.96%',
'3.4%',
'4.97%',
'1.18%',],
s_inflow:
[ '-983.7385',
'989.2205',
'491.8865',
'-876.1453',
'-649.4106',
'972.8752',
'489.0722',
'2423.3834',
'-788.7607',
'94.5703',
'-638.4164',
'-4855.3249',
'1252.8688',
'-76.8933',
'-857.115',
'2203.6287',],
s_inflow_rate:
[ '-4.05%',
'5.15%',
'1.19%',
'-2.92%',
'-3.2%',
'2.45%',
'1.02%',
'6.92%',
'-2.01%',
'0.24%',
'-1.94%',
'-4.14%',
'2.58%',
'-0.25%',
'-1.08%',
'2.29%',
'-0.83%', ] }
~~~
