获取合约最高限价和最低限价

/sapi/v1/public/price_limit

请求类型: GET

是否验签: 否

接口权限: 读取

限频: 其他非行情类的公开接口,比如获取指数信息,限价信息,交割结算、平台持仓信息等,所有用户都是每个IP3秒最多240次请求(所有该IP的非行情类的公开接口请求共享3秒240次的额度)

接口描述: 该接口支持全仓模式和逐仓模式 请求参数contract_code支持交割合约代码,格式为BTC-USDT-210625。pair、contract_type和contract_code同时填写,优先取contract_code。 business_type 在查询交割合约数据时为必填参数。且参数值要传:futures 或 all 。

请求地址

环境
地址

线上环境(aws客户首选)

请求参数

参数
数据类型
是否必填
描述
取值范围
默认值

contract_code

string

false

合约代码

永续:"BTC-USDT"... ,交割:"BTC-USDT-210625"...

pair

string

false

交易对

BTC-USDT

contract_type

string

false

合约类型

swap(永续)、this_week(当周)、next_week(次周)、quarter(当季)、next_quarter(次季)

business_type

string

false

业务类型,不填默认永续

futures:交割、swap:永续、all:全部

响应参数

参数
数据类型
是否必填
描述
取值范围

status

string

true

请求处理结果

ok

<data>

object array

true

symbol

string

true

品种代码

BTC,"ETH" ...

contract_code

string

true

合约代码

如 永续:"BTC-USDT"... ,交割:"BTC-USDT-210625"...

high_limit

decimal

true

最高买价

low_limit

decimal

true

最低卖价

contract_type

string

true

合约类型

swap(永续)、this_week(当周)、next_week(次周)、quarter(当季)、next_quarter(次季)

pair

string

true

交易对

如:“BTC-USDT”

business_type

string

true

业务类型

futures:交割、swap:永续

trade_partition

string

true

参数已废弃

<data>

false

ts

long

true

响应生成时间点,单位:毫秒

请求示例

响应示例

最后更新于