API地址:http://stock.salefx.cn
这个API提供的股票、期货、转债接口目前看起来不是很多,只有几十个
接口:期货实时行情
api:http://stock.salefx.cn:10000/api/stock/futures
请求方式:get
请求参数:codes=RB2310
返回结果:
{
"code": 200,
"msg": "请求成功",
"data": {
"RB2310": {
"priceinfo": [
{
"time": "1681477200",
"price": "3900.00",
"ratio": "-0.41%",
"increase": "-16.00",
"volume": "6646",
"avgPrice": "3900.00",
"amount": "2.59亿",
"timeKey": "0",
"datetime": "04-14 21:00",
"oriAmount": "259194000",
"show": "1"
}
],
"pankouinfos": {
"list": [
{
"ename": "open",
"name": "今开",
"value": "3900.00",
"status": "up"
}
],
"origin_pankou": {
"open": "3900",
"preClose": "3896",
"volume": "690558",
"turnoverRatio": "0",
"high": "3929",
"low": "3873",
"limitUp": "4346",
"limitDown": "3485",
"inside": "345705",
"outside": "344853",
"amount": "26945957510",
"amplitudeRatio": "1.43",
"weibiRatio": "-27.56",
"volumeRatio": "1.321",
"currencyValue": "0",
"capitalization": "0",
"peratio": "0",
"lyr": "0",
"bvRatio": "0",
"perShareEarn": "0",
"netAssetsPerShare": "0",
"circulatingCapital": "0",
"totalShareCapital": "0",
"priceLimit": "0.13",
"w52_low": "0",
"w52_high": "0",
"expire_date": "",
"holdingAmount": "1691923",
"prevSettlement": "3916",
"currentPrice": "3901.00"
}
},
"sellinfos": [
{
"askprice": "3906.0",
"askvolume": "232"
}
],
"buyinfos": [
{
"bidprice": "3901.0",
"bidvolume": "63"
}
],
"detailinfos": [
{
"time": "1681484390",
"volume": "35",
"price": "3900.00",
"type": "0",
"formatTime": "22:59"
}
]
}
},
"debug": "",
"exec_time": 0.799582,
}
接口:期货实时行情
api:http://stock.salefx.cn:10000/api/stock/bonds
请求方式:get
请求参数:codes=113027
返回结果:
{
"code": 200,
"msg": "请求成功",
"data": {
"113027": {
"high": 155.3,
"low": 152.8,
"last_close": 152.806,
"open": 152.8,
"volume": 51401,
"amount": 79395492,
"conversion_price": 10.17,
"conversion_value": 132.65,
"premium_rate": 16.41,
"benefit_before_tax": -13.9148,
"benefit_after_tax": -14.8518,
"putback_price": 7.119,
"remain_year": 2.101,
"redemption_price": 110,
"convert_bond_ratio": 8.44,
"total_issue_scale": 640000000,
"outstanding_amt": 238572000,
"currency": "CNY",
"percent": 1.05,
"price": 154.415,
"chg": 1.609
}
},
"debug": "",
"exec_time": 0.314579,
}