小熊同学
  1. 交易
小熊同学
  • 股票
    • 分时信息
      GET
    • 股票基础信息
      GET
    • 日k
      GET
    • 周k
      GET
    • 月k
      GET
    • 股票排行
      POST
    • 大盘数据
      GET
    • 板块数据
      GET
    • 所有股票
      GET
    • 所有指数
      GET
    • 可转债列表(分页)
      POST
    • 可转债列表(全部)
      GET
  • openAI接口
    • 简化版接口,get直接请求加回复
      GET
    • stream
      GET
    • 标准的openAI问答接口,参数保持同原生接口一致
      POST
  • 基金接口
    • 获取基金详情
      GET
    • 批量获取基金详情
      GET
    • 批量获取基金基础数据
      GET
    • 获取基金排行
      POST
    • 获取所有基金
      GET
    • 热门基金
      GET
    • 基金持仓数据
      GET
  • 交易
    • 仓位推荐
      POST
    • push
      GET
  1. 交易

仓位推荐

正式环境
https://api.autostock.cn/v1
正式环境
https://api.autostock.cn/v1
POST
/position/indexTrade

请求参数

Body 参数application/json
code
string  | null 
指数代码
可选
name
string  | null 
可选
dateLength
integer  | null 
可选
时间长度,只算开盘日
itemPosition
integer  | null 
可选
currentPrice
number  | null 
可选
min
number  | null 
可选
max
number  | null 
可选
priceIndex
integer  | null 
可选
priceDate
string  | null 
可选
offset
integer  | null 
可选
offsetReason
string  | null 
可选
insertTime
string  | null 
插入时间
可选
updateTime
string  | null 
更新时间
可选
示例
{
    "code": "string",
    "name": "string",
    "dateLength": 0,
    "itemPosition": 0,
    "currentPrice": 0,
    "min": 0,
    "max": 0,
    "priceIndex": 0,
    "priceDate": "string",
    "offset": 0,
    "offsetReason": "string",
    "insertTime": "string",
    "updateTime": "string"
}

示例代码

Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request POST 'https://api.autostock.cn/v1/position/indexTrade' \
--header 'Content-Type: application/json' \
--data-raw '{
    "code": "string",
    "name": "string",
    "dateLength": 0,
    "itemPosition": 0,
    "currentPrice": 0,
    "min": 0,
    "max": 0,
    "priceIndex": 0,
    "priceDate": "string",
    "offset": 0,
    "offsetReason": "string",
    "insertTime": "string",
    "updateTime": "string"
}'

返回响应

🟢200成功
application/json
Body
code
integer  | null 
可选
返回代码
参考 HttpResponse.Code
message
string  | null 
返回消息
可选
traceId
string  | null 
链路ID
可选
data
object (UserPosition) 
可选
返回核心数据,相当于payload
code
string  | null 
指数代码
可选
name
string  | null 
可选
dateLength
integer  | null 
可选
时间长度,只算开盘日
itemPosition
integer  | null 
可选
currentPrice
number  | null 
可选
min
number  | null 
可选
max
number  | null 
可选
priceIndex
integer  | null 
可选
priceDate
string  | null 
可选
offset
integer  | null 
可选
offsetReason
string  | null 
可选
insertTime
string  | null 
插入时间
可选
updateTime
string  | null 
更新时间
可选
meta
object (Object) 
可选
示例
{
  "code": 0,
  "message": "",
  "traceId": "",
  "data": {
    "code": "",
    "name": "",
    "dateLength": 0,
    "itemPosition": 0,
    "currentPrice": 0.0,
    "min": 0.0,
    "max": 0.0,
    "priceIndex": 0,
    "priceDate": "",
    "offset": 0,
    "offsetReason": "",
    "insertTime": "",
    "updateTime": ""
  },
  "meta": {}
}
上一页
基金持仓数据
下一页
push
Built with