文档
测试

持仓列表

GET
http://sims.teniucaijing.com:81/api/v1/positions

请求头

参数名
类型
描述
必填
Authorization
string
access_token
必填

请求参数

参数名
类型
描述
必填
page
int
页码
必填

成功返回

参数名
类型
描述
必填
status
string
示例:success
必填
code
int
示例:200
必填
data
object
数据字典
必填
current_page
int
示例:1
必填
data
array
数据列表
必填
user_id
int
示例:8
必填
stock_code
string
股票代码
必填
stock_name
string
股票名称
必填
market
string
交易市场 0-上证 1-深证
必填
market_name
string
示例:上证
必填
number
int
数量
必填
total_price
int
总价
必填
shareholder
string
股东账户
必填
created_at
string
示例:2020-05-14 16:11:22
必填
buying_price
string
成本价
必填
cold
int
冻结
必填
total
int
示例:7
必填
asset
int
总资产
必填
positionValue
int
总市值
必填
tradeValue
int
总盈亏
必填
tradeValueToday
int
当日盈亏
必填

说明 / 示例

```json { "status": "success", "code": 200, "data": { "data": [ { "user_id": 4, "stock_code": "000009", "stock_name": "中国宝安", "market": "0", "market_name": "上证", "number": 1000, "total_price": 6454, "shareholder": "29C7F817B", "created_at": "2020-04-30 09:28:37", "now": 6.48, "market_value": 2592, "buying_price": "6.45", "cold": 0 }, { "user_id": 4, "stock_code": "000005", "stock_name": "世纪星源", "market": "0", "market_name": "上证", "number": 100, "total_price": "3265.00", "shareholder": "2B858CB1A", "created_at": "2020-04-10 09:28:41", "now": 2.51, "market_value": 251, "buying_price": "32.65", "cold": 0 } ], "current_page": 1, "total": 2, "asset": 7012, "positionValue": 6731, "tradeValue": -2988, "tradeValueToday": 0 } } ```