文档
测试

完整持仓列表

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

请求头

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

请求参数

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

成功返回

参数名
类型
描述
必填
status
string
示例:success
必填
code
int
示例:200
必填
data
object
数据字典
必填
current_page
int
当前页
必填
data
array
数据列表
必填
id
int
示例:2
必填
user_id
int
示例:8
必填
trade_id
int
示例:67
必填
stock_code
string
示例:000009
必填
stock_name
string
示例:中国宝安
必填
number
int
数量
必填
buying_price
string
买入价格
必填
total_price
string
总价
必填
market
string
交易市场
必填
created_at
string
买入时间
必填
first_page_url
string
示例:http://sims.com/api/v1/positions/complete?page=1
必填
from
int
示例:1
必填
last_page
int
示例:2
必填
last_page_url
string
示例:http://sims.com/api/v1/positions/complete?page=2
必填
next_page_url
string
示例:http://sims.com/api/v1/positions/complete?page=2
必填
path
string
示例:http://sims.com/api/v1/positions/complete
必填
per_page
int
示例:10
必填
prev_page_url
object
示例:null
必填
to
int
示例:10
必填
total
int
示例:16
必填

说明 / 示例

```json { "status": "success", "code": 200, "data": { "current_page": 1, "data": [ { "id": 2, "user_id": 8, "trade_id": 67, "stock_code": "000009", "stock_name": "中国宝安", "number": 100, "buying_price": "6.28", "total_price": "628.00", "market": "0", "shareholder": "ACCDD761C", "status": "0", "created_at": "2020-04-29 09:28:36", "updated_at": "2020-04-30 17:14:04" }, { "id": 3, "user_id": 8, "trade_id": 68, "stock_code": "000009", "stock_name": "中国宝安", "number": 100, "buying_price": "6.28", "total_price": "628.00", "market": "0", "shareholder": "29C7F817B", "status": "0", "created_at": "2020-04-30 09:28:37", "updated_at": "2020-04-30 09:28:37" }, { "id": 4, "user_id": 8, "trade_id": 69, "stock_code": "000002", "stock_name": "万 科A", "number": 200, "buying_price": "26.86", "total_price": "5372.00", "market": "0", "shareholder": "0CCE00B1D", "status": "0", "created_at": "2020-04-30 09:28:39", "updated_at": "2020-04-30 09:28:39" }, { "id": 5, "user_id": 8, "trade_id": 70, "stock_code": "000005", "stock_name": "世纪星源", "number": 100, "buying_price": "2.65", "total_price": "265.00", "market": "0", "shareholder": "2B858CB1A", "status": "0", "created_at": "2020-04-30 09:28:41", "updated_at": "2020-04-30 09:28:41" }, { "id": 6, "user_id": 8, "trade_id": 71, "stock_code": "000005", "stock_name": "世纪星源", "number": 100, "buying_price": "2.65", "total_price": "265.00", "market": "0", "shareholder": "D5F807E3B", "status": "0", "created_at": "2020-04-30 09:28:43", "updated_at": "2020-04-30 09:28:43" }, { "id": 7, "user_id": 8, "trade_id": 74, "stock_code": "000008", "stock_name": "神州高铁", "number": 100, "buying_price": "3.16", "total_price": "316.00", "market": "0", "shareholder": "3F4D7A1D0", "status": "0", "created_at": "2020-04-30 09:28:48", "updated_at": "2020-04-30 09:28:48" }, { "id": 8, "user_id": 8, "trade_id": 72, "stock_code": "000005", "stock_name": "世纪星源", "number": 100, "buying_price": "2.65", "total_price": "265.00", "market": "0", "shareholder": "0DDEF073B", "status": "0", "created_at": "2020-04-30 10:07:15", "updated_at": "2020-04-30 10:07:15" }, { "id": 9, "user_id": 8, "trade_id": 73, "stock_code": "002194", "stock_name": "武汉凡谷", "number": 100, "buying_price": "25.05", "total_price": "2505.00", "market": "0", "shareholder": "E28592F31", "status": "0", "created_at": "2020-04-30 10:07:18", "updated_at": "2020-04-30 10:07:18" }, { "id": 10, "user_id": 8, "trade_id": 75, "stock_code": "000008", "stock_name": "神州高铁", "number": 100, "buying_price": "3.16", "total_price": "316.00", "market": "0", "shareholder": "33826D4AF", "status": "0", "created_at": "2020-04-30 10:07:21", "updated_at": "2020-04-30 10:07:21" }, { "id": 11, "user_id": 8, "trade_id": 78, "stock_code": "000026", "stock_name": "飞亚达", "number": 100, "buying_price": "8.31", "total_price": "831.00", "market": "0", "shareholder": "491E53B09", "status": "0", "created_at": "2020-04-30 10:07:24", "updated_at": "2020-04-30 10:07:24" } ], "first_page_url": "http://sims.com/api/v1/positions/complete?page=1", "from": 1, "last_page": 2, "last_page_url": "http://sims.com/api/v1/positions/complete?page=2", "next_page_url": "http://sims.com/api/v1/positions/complete?page=2", "path": "http://sims.com/api/v1/positions/complete", "per_page": 10, "prev_page_url": null, "to": 10, "total": 16 } } ```