API Reference
1. Info
- Title: gRPC API
- Version: 1.0.0
- Description: This documentation is generated from protobuf files using protoc-gen-doc.
2. Paths
Currency
AddSymbolType
- Summary: 增加交易对类型
- Method:
AddSymbolType - Endpoint:
currency.Currency/AddSymbolType - Request:
- Content-Type:
application/grpc - Schema: AddSymbolTypeRequest
- Content-Type:
- Response:
- Content-Type:
application/grpc - Schema: AddSymbolTypeResponse
- Content-Type:
UpdateSymbolType
- Summary: 更新交易对类型
- Method:
UpdateSymbolType - Endpoint:
currency.Currency/UpdateSymbolType - Request:
- Content-Type:
application/grpc - Schema: UpdateSymbolTypeRequest
- Content-Type:
- Response:
- Content-Type:
application/grpc - Schema: Empty
- Content-Type:
DeleteSymbolType
- Summary: 删除交易对类型
- Method:
DeleteSymbolType - Endpoint:
currency.Currency/DeleteSymbolType - Request:
- Content-Type:
application/grpc - Schema: DeleteSymbolTypeRequest
- Content-Type:
- Response:
- Content-Type:
application/grpc - Schema: Empty
- Content-Type:
GetSymbolTypeInfo
- Summary: 获取交易对类型的详细信息
- Method:
GetSymbolTypeInfo - Endpoint:
currency.Currency/GetSymbolTypeInfo - Request:
- Content-Type:
application/grpc - Schema: GetSymbolTypeInfoRequest
- Content-Type:
- Response:
- Content-Type:
application/grpc - Schema: GetSymbolTypeInfoResponse
- Content-Type:
GetSymbolTypeList
- Summary: 获取交易对类型列表
- Method:
GetSymbolTypeList - Endpoint:
currency.Currency/GetSymbolTypeList - Request:
- Content-Type:
application/grpc - Schema: Empty
- Content-Type:
- Response:
- Content-Type:
application/grpc - Schema: GetSymbolTypeListResponse
- Content-Type:
AddSymbolInfo
- Summary: 新增交易对
- Method:
AddSymbolInfo - Endpoint:
currency.Currency/AddSymbolInfo - Request:
- Content-Type:
application/grpc - Schema: AddSymbolInfoRequest
- Content-Type:
- Response:
- Content-Type:
application/grpc - Schema: AddSymbolInfoResponse
- Content-Type:
UpdateSymbolInfo
- Summary: 更新交易对信息
- Method:
UpdateSymbolInfo - Endpoint:
currency.Currency/UpdateSymbolInfo - Request:
- Content-Type:
application/grpc - Schema: UpdateSymbolInfoRequest
- Content-Type:
- Response:
- Content-Type:
application/grpc - Schema: Empty
- Content-Type:
DeleteSymbolInfo
- Summary: 删除交易对
- Method:
DeleteSymbolInfo - Endpoint:
currency.Currency/DeleteSymbolInfo - Request:
- Content-Type:
application/grpc - Schema: DeleteSymbolInfoRequest
- Content-Type:
- Response:
- Content-Type:
application/grpc - Schema: Empty
- Content-Type:
GetSymbolInfo
- Summary: 通过id获取交易对信息
- Method:
GetSymbolInfo - Endpoint:
currency.Currency/GetSymbolInfo - Request:
- Content-Type:
application/grpc - Schema: GetSymbolInfoRequest
- Content-Type:
- Response:
- Content-Type:
application/grpc - Schema: GetSymbolInfoResponse
- Content-Type:
GetSymbolInfoList
- Summary: 通过名称获取交易对信息
- Method:
GetSymbolInfoList - Endpoint:
currency.Currency/GetSymbolInfoList - Request:
- Content-Type:
application/grpc - Schema: GetSymbolInfoListRequest
- Content-Type:
- Response:
- Content-Type:
application/grpc - Schema: GetSymbolInfoListResponse
- Content-Type:
GetAllSymbolInfo
- Summary: 获取所有交易对信息
- Method:
GetAllSymbolInfo - Endpoint:
currency.Currency/GetAllSymbolInfo - Request:
- Content-Type:
application/grpc - Schema: GetAllSymbolInfoRequest
- Content-Type:
- Response:
- Content-Type:
application/grpc - Schema: GetAllSymbolInfoResponse
- Content-Type:
BatchGetSymbolInfo
- Summary: 批量获取交易对信息
- Method:
BatchGetSymbolInfo - Endpoint:
currency.Currency/BatchGetSymbolInfo - Request:
- Content-Type:
application/grpc - Schema: BatchGetSymbolInfoRequest
- Content-Type:
- Response:
- Content-Type:
application/grpc - Schema: BatchGetSymbolInfoResponse
- Content-Type:
AddSymbolSettings
- Summary: 新增交易对配置参数
- Method:
AddSymbolSettings - Endpoint:
currency.Currency/AddSymbolSettings - Request:
- Content-Type:
application/grpc - Schema: AddSymbolSettingsRequest
- Content-Type:
- Response:
- Content-Type:
application/grpc - Schema: Empty
- Content-Type:
UpdateSymbolSettings
- Summary: 更新交易对配置参数
- Method:
UpdateSymbolSettings - Endpoint:
currency.Currency/UpdateSymbolSettings - Request:
- Content-Type:
application/grpc - Schema: UpdateSymbolSettingsRequest
- Content-Type:
- Response:
- Content-Type:
application/grpc - Schema: Empty
- Content-Type:
DeleteSymbolSettings
- Summary: 删除交易对配置参数
- Method:
DeleteSymbolSettings - Endpoint:
currency.Currency/DeleteSymbolSettings - Request:
- Content-Type:
application/grpc - Schema: DeleteSymbolSettingsRequest
- Content-Type:
- Response:
- Content-Type:
application/grpc - Schema: Empty
- Content-Type:
GetSymbolSettings
- Summary: 查询交易对配置参数
- Method:
GetSymbolSettings - Endpoint:
currency.Currency/GetSymbolSettings - Request:
- Content-Type:
application/grpc - Schema: GetSymbolSettingsRequest
- Content-Type:
- Response:
- Content-Type:
application/grpc - Schema: GetSymbolSettingsResponse
- Content-Type:
GetSymbolSettingsList
- Summary: 获取交易对配置列表
- Method:
GetSymbolSettingsList - Endpoint:
currency.Currency/GetSymbolSettingsList - Request:
- Content-Type:
application/grpc - Schema: GetSymbolSettingsListRequest
- Content-Type:
- Response:
- Content-Type:
application/grpc - Schema: GetSymbolSettingsListResponse
- Content-Type:
BatchGetSymbolSettings
- Summary: 批量获取交易对信息
- Method:
BatchGetSymbolSettings - Endpoint:
currency.Currency/BatchGetSymbolSettings - Request:
- Content-Type:
application/grpc - Schema: BatchGetSymbolSettingsRequest
- Content-Type:
- Response:
- Content-Type:
application/grpc - Schema: BatchGetSymbolSettingsResponse
- Content-Type:
UpdateSymbolSettingsWithSymbolId
- Summary: 更新交易对配置参数
- Method:
UpdateSymbolSettingsWithSymbolId - Endpoint:
currency.Currency/UpdateSymbolSettingsWithSymbolId - Request:
- Content-Type:
application/grpc - Schema: UpdateSymbolSettingsWithSymbolIdRequest
- Content-Type:
- Response:
- Content-Type:
application/grpc - Schema: Empty
- Content-Type:
DeleteSymbolSettingsWithSymbolId
- Summary: 删除交易对配置参数
- Method:
DeleteSymbolSettingsWithSymbolId - Endpoint:
currency.Currency/DeleteSymbolSettingsWithSymbolId - Request:
- Content-Type:
application/grpc - Schema: DeleteSymbolSettingsWithSymbolIdRequest
- Content-Type:
- Response:
- Content-Type:
application/grpc - Schema: Empty
- Content-Type:
GetSymbolSettingsWithSymbolId
- Summary: 查询交易对配置参数
- Method:
GetSymbolSettingsWithSymbolId - Endpoint:
currency.Currency/GetSymbolSettingsWithSymbolId - Request:
- Content-Type:
application/grpc - Schema: GetSymbolSettingsWithSymbolIdRequest
- Content-Type:
- Response:
- Content-Type:
application/grpc - Schema: GetSymbolSettingsWithSymbolIdResponse
- Content-Type:
AddSymbolFilter
- Summary: 新增交易对过滤参数
- Method:
AddSymbolFilter - Endpoint:
currency.Currency/AddSymbolFilter - Request:
- Content-Type:
application/grpc - Schema: AddSymbolFilterRequest
- Content-Type:
- Response:
- Content-Type:
application/grpc - Schema: Empty
- Content-Type:
UpdateSymbolFilter
- Summary: 更新交易对过滤参数
- Method:
UpdateSymbolFilter - Endpoint:
currency.Currency/UpdateSymbolFilter - Request:
- Content-Type:
application/grpc - Schema: UpdateSymbolFilterRequest
- Content-Type:
- Response:
- Content-Type:
application/grpc - Schema: Empty
- Content-Type:
DeleteSymbolFilter
- Summary: 删除交易对过滤参数
- Method:
DeleteSymbolFilter - Endpoint:
currency.Currency/DeleteSymbolFilter - Request:
- Content-Type:
application/grpc - Schema: DeleteSymbolFilterRequest
- Content-Type:
- Response:
- Content-Type:
application/grpc - Schema: Empty
- Content-Type:
GetSymbolFilter
- Summary: 查询交易对过滤参数
- Method:
GetSymbolFilter - Endpoint:
currency.Currency/GetSymbolFilter - Request:
- Content-Type:
application/grpc - Schema: GetSymbolFilterRequest
- Content-Type:
- Response:
- Content-Type:
application/grpc - Schema: GetSymbolFilterResponse
- Content-Type:
GetSymbolFilterList
- Summary: 获取交易对过滤列表
- Method:
GetSymbolFilterList - Endpoint:
currency.Currency/GetSymbolFilterList - Request:
- Content-Type:
application/grpc - Schema: GetSymbolFilterListRequest
- Content-Type:
- Response:
- Content-Type:
application/grpc - Schema: GetSymbolFilterListResponse
- Content-Type:
BatchGetSymbolInfoList
- Summary: BatchGetSymbolInfoList
- Method:
BatchGetSymbolInfoList - Endpoint:
currency.Currency/BatchGetSymbolInfoList - Request:
- Content-Type:
application/grpc - Schema: BatchGetSymbolInfoListRequest
- Content-Type:
- Response:
- Content-Type:
application/grpc - Schema: BatchGetSymbolInfoListResponse
- Content-Type:
GetSymbolGlobalSettings
- Summary: GetSymbolGlobalSettings
- Method:
GetSymbolGlobalSettings - Endpoint:
currency.Currency/GetSymbolGlobalSettings - Request:
- Content-Type:
application/grpc - Schema: GetSymbolGlobalSettingsRequest
- Content-Type:
- Response:
- Content-Type:
application/grpc - Schema: GetSymbolGlobalSettingsResponse
- Content-Type:
GetSymbolRules
- Summary: 查询交易手续费
- Method:
GetSymbolRules - Endpoint:
currency.Currency/GetSymbolRules - Request:
- Content-Type:
application/grpc - Schema: GetSymbolRulesRequest
- Content-Type:
- Response:
- Content-Type:
application/grpc - Schema: GetSymbolRulesResponse
- Content-Type:
SetSymbolRules
- Summary: 设置交易手续费
- Method:
SetSymbolRules - Endpoint:
currency.Currency/SetSymbolRules - Request:
- Content-Type:
application/grpc - Schema: SetSymbolRulesRequest
- Content-Type:
- Response:
- Content-Type:
application/grpc - Schema: Empty
- Content-Type:
GetSymbolTradeFee
- Summary: 获取交易对手续费
- Method:
GetSymbolTradeFee - Endpoint:
currency.Currency/GetSymbolTradeFee - Request:
- Content-Type:
application/grpc - Schema: GetSymbolTradeFeeRequest
- Content-Type:
- Response:
- Content-Type:
application/grpc - Schema: GetSymbolTradeFeeResponse
- Content-Type:
ListAsset
- Summary: ListAsset
- Method:
ListAsset - Endpoint:
currency.Currency/ListAsset - Request:
- Content-Type:
application/grpc - Schema: ListAssetRequest
- Content-Type:
- Response:
- Content-Type:
application/grpc - Schema: ListAssetResponse
- Content-Type:
3. Components
3.1 Schemas
AddSymbolFilterRequest
| Field | Type | Description |
|---|---|---|
| symbolId | int64 | 交易对id |
| filters | AddSymbolFilterRequest.Filter | 交易对过滤参数 |
Filter
| Field | Type | Description |
|---|---|---|
| maxNotionalValue | string | 最大名义价值 |
| maxLeverage | string | 最大杠杆 |
| maintMarginRatio | string | 维持保证金率 |
AddSymbolInfoRequest
| Field | Type | Description |
|---|---|---|
| symbolName | string | 交易对名称 |
| pair | string | 标的交易对 |
| contractType | string | 合约类型 |
| deliveryDate | int64 | 交割日期 |
| onboardDate | int64 | 上线日期 |
| baseAsset | string | 标的资产 |
| quoteAsset | string | 计价资产 |
| typeId | int64 | 交易对类型 |
| description | string | 交易对描述 |
| symbol | string | 交易对 |
| symbolIcon | string | 图标 |
| symbolFlag | string | SHOW/HIDDEN |
| isStablecoin | string | none |
AddSymbolInfoResponse
| Field | Type | Description |
|---|---|---|
| symbolId | int64 | 交易对ID |
AddSymbolSettingsRequest
| Field | Type | Description |
|---|---|---|
| symbolId | int64 | none |
| settings | AddSymbolSettingsRequest.Settings | none |
Settings
| Field | Type | Description |
|---|---|---|
| settingsKey | string | 交易对配置参数 |
| settingsValue | string | 交易对配置参数 |
AddSymbolTypeRequest
| Field | Type | Description |
|---|---|---|
| typeName | string | 交易对类型名称 |
| typeDesc | string | 交易对类型描述 |
AddSymbolTypeResponse
| Field | Type | Description |
|---|---|---|
| typeId | int64 | 交易对类型ID |
BatchGetSymbolInfoListRequest
| Field | Type | Description |
|---|---|---|
| symbols | string | none |
| typeId | int64 | none |
BatchGetSymbolInfoListResponse
| Field | Type | Description |
|---|---|---|
| list | GetAllSymbolInfoResponse | none |
BatchGetSymbolInfoRequest
| Field | Type | Description |
|---|---|---|
| symbol | string | none |
BatchGetSymbolInfoResponse
| Field | Type | Description |
|---|---|---|
| info | GetSymbolInfoResponse.SymbolInfo | none |
BatchGetSymbolSettingsRequest
| Field | Type | Description |
|---|---|---|
| symbols | BatchGetSymbolSettingsRequest.Symbols | none |
| typeId | int64 | none |
| symbolFlag | string | none |
Symbols
| Field | Type | Description |
|---|---|---|
| settingsKey | string | none |
| symbol | string | none |
BatchGetSymbolSettingsResponse
| Field | Type | Description |
|---|---|---|
| list | BatchGetSymbolSettingsResponse.ListEntry | none |
| updateTime | int64 | none |
ListEntry
| Field | Type | Description |
|---|---|---|
| key | string | none |
| value | BatchGetSymbolSettingsResponse.SymbolSettings | none |
SymbolSettings
| Field | Type | Description |
|---|---|---|
| settings | BatchGetSymbolSettingsResponse.SymbolSettings.SettingsEntry | none |
SettingsEntry
| Field | Type | Description |
|---|---|---|
| key | string | none |
| value | string | none |
DeleteSymbolFilterRequest
| Field | Type | Description |
|---|---|---|
| filterIds | int64 | 交易对id |
DeleteSymbolInfoRequest
| Field | Type | Description |
|---|---|---|
| symbolId | int64 | 交易对id |
DeleteSymbolSettingsRequest
| Field | Type | Description |
|---|---|---|
| settingIds | int64 | 交易对id |
DeleteSymbolSettingsWithSymbolIdRequest
| Field | Type | Description |
|---|---|---|
| symbolId | int64 | 交易对id |
| settingsKey | string | none |
DeleteSymbolTypeRequest
| Field | Type | Description |
|---|---|---|
| typeId | int64 | 交易对类型ID |
GetAllSymbolInfoRequest
| Field | Type | Description |
|---|---|---|
| symbolId | int64 | 交易对id |
| symbol | string | 交易对名称 |
GetAllSymbolInfoResponse
| Field | Type | Description |
|---|---|---|
| info | GetSymbolInfoResponse.SymbolInfo | none |
| type | GetSymbolTypeInfoResponse.SymbolType | none |
| settings | GetSymbolSettingsResponse.Settings | none |
| filters | GetSymbolFilterResponse.Filter | none |
GetSymbolFilterListRequest
| Field | Type | Description |
|---|---|---|
| symbolId | int64 | 交易对id |
| symbol | string | 交易对 |
GetSymbolFilterListResponse
| Field | Type | Description |
|---|---|---|
| filters | GetSymbolFilterResponse.Filter | none |
GetSymbolFilterRequest
| Field | Type | Description |
|---|---|---|
| filterIds | int64 | 交易对id |
GetSymbolFilterResponse
| Field | Type | Description |
|---|---|---|
| filters | GetSymbolFilterResponse.Filter | 交易对过滤参数 |
Filter
| Field | Type | Description |
|---|---|---|
| filterId | int64 | 过滤参数id |
| symbolId | int64 | 交易对id |
| maxNotionalValue | string | 最大名义价值 |
| maxLeverage | string | 最大杠杆 |
| maintMarginRatio | string | 维持保证金率 |
GetSymbolGlobalSettingsRequest
| Field | Type | Description |
|---|---|---|
| typeId | int64 | 交易对类型ID:defaule:spot |
GetSymbolGlobalSettingsResponse
| Field | Type | Description |
|---|---|---|
| list | GetSymbolGlobalSettingsResponse.ListEntry | none |
ListEntry
| Field | Type | Description |
|---|---|---|
| key | string | none |
| value | string | none |
GetSymbolInfoListRequest
| Field | Type | Description |
|---|---|---|
| typeId | int64 | 交易对类型 |
| keyword | string | 搜索关键字 |
| flag | string | flag:TRADING,DISABLE 默认all |
| levelId | int64 | levelID |
| status | string | TRADING/DISABLE |
GetSymbolInfoListResponse
| Field | Type | Description |
|---|---|---|
| list | GetSymbolInfoResponse.SymbolInfo | 货币信息列表 |
GetSymbolInfoRequest
| Field | Type | Description |
|---|---|---|
| symbolId | int64 | 交易对id |
GetSymbolInfoResponse
| Field | Type | Description |
|---|---|---|
| info | GetSymbolInfoResponse.SymbolInfo | 交易对信息 |
SymbolInfo
| Field | Type | Description |
|---|---|---|
| symbolId | int64 | symbol ID |
| symbolName | string | 交易对名称 |
| pair | string | 标的交易对 |
| contractType | string | 合约类型 |
| deliveryDate | int64 | 交割日期 |
| onboardDate | int64 | 上线日期 |
| baseAsset | string | 标的资产 |
| quoteAsset | string | 计价资产 |
| typeId | int64 | 交易对类型 |
| description | string | 交易对描述 |
| status | string | 交易对状态:"DISABLE" "TRADING" |
| createTime | int64 | 交易对创建时间 |
| updateTime | int64 | 交易对更新时间 |
| symbol | string | 交易对 |
| symbolIcon | string | 图标 |
| symbolFlag | string | SHOW/HIDDEN |
| rules | GetSymbolRulesResponse.SymbolRules | none |
| isStablecoin | string | 是否是稳定币:TRUE/FALSE |
GetSymbolRulesRequest
| Field | Type | Description |
|---|---|---|
| typeId | int64 | 交易对类型:3-SPOT,5-OTC |
| levelIds | int64 | none |
| symbolId | int64 | 交易对Id:非必填,当设置全局则可为空 |
GetSymbolRulesResponse
| Field | Type | Description |
|---|---|---|
| rules | GetSymbolRulesResponse.SymbolRules | 交易手续费 |
| status | string | 交易对状态:当为默认时忽略该字段 |
| isDefault | string | 是否启用默认费率ENABLE/DISABLE |
SymbolRules
| Field | Type | Description |
|---|---|---|
| makerFeeRate | string | 名称 |
| takerFeeRate | string | none |
| levelId | int64 | none |
| symbolId | int64 | none |
| symbolTypeId | int64 | none |
| remark | string | none |
| updateTime | int64 | none |
GetSymbolSettingsListRequest
| Field | Type | Description |
|---|---|---|
| symbolId | int64 | 交易对id |
GetSymbolSettingsListResponse
| Field | Type | Description |
|---|---|---|
| settings | GetSymbolSettingsResponse.Settings | none |
GetSymbolSettingsRequest
| Field | Type | Description |
|---|---|---|
| settingIds | int64 | 交易对id |
GetSymbolSettingsResponse
| Field | Type | Description |
|---|---|---|
| settings | GetSymbolSettingsResponse.Settings | 交易对配置参数 |
Settings
| Field | Type | Description |
|---|---|---|
| settingId | int64 | settingId |
| symbolId | int64 | symbolId |
| settingsKey | string | 交易对配置参数 |
| settingsValue | string | 交易对配置参数 |
GetSymbolSettingsWithSymbolIdRequest
| Field | Type | Description |
|---|---|---|
| symbolId | int64 | none |
| settingsKey | string | none |
GetSymbolSettingsWithSymbolIdResponse
| Field | Type | Description |
|---|---|---|
| settings | GetSymbolSettingsWithSymbolIdResponse.Settings | 交易对配置参数 |
Settings
| Field | Type | Description |
|---|---|---|
| settingId | int64 | settingId |
| symbolId | int64 | symbolId |
| settingsKey | string | 交易对配置参数 |
| settingsValue | string | 交易对配置参数 |
GetSymbolTradeFeeRequest
| Field | Type | Description |
|---|---|---|
| typeId | int64 | 交易对类型:3-SPOT,5-OTC |
| levelId | int64 | none |
| symbol | string | 交易对 |
| symbolId | int64 | none |
GetSymbolTradeFeeResponse
| Field | Type | Description |
|---|---|---|
| rules | GetSymbolRulesResponse.SymbolRules | none |
GetSymbolTypeInfoRequest
| Field | Type | Description |
|---|---|---|
| typeId | int64 | 交易对类型ID |
GetSymbolTypeInfoResponse
| Field | Type | Description |
|---|---|---|
| info | GetSymbolTypeInfoResponse.SymbolType | 交易对类型信息 |
SymbolType
| Field | Type | Description |
|---|---|---|
| typeId | int64 | 交易对类型ID |
| typeName | string | 交易对类型名称 |
| typeDesc | string | 交易对类型描述 |
| createTime | int64 | 交易对类型创建时间 |
| updateTime | int64 | 交易对类型更新时间 |
GetSymbolTypeListResponse
| Field | Type | Description |
|---|---|---|
| list | GetSymbolTypeInfoResponse.SymbolType | 交易对类型列表 |
ListAssetRequest
| Field | Type | Description |
|---|---|---|
| typeId | int64 | none |
| baseAsset | string | none |
| quoteAsset | string | none |
ListAssetResponse
| Field | Type | Description |
|---|---|---|
| otcSymbols | ListAssetResponse.OTCSymbol | none |
OTCSymbol
| Field | Type | Description |
|---|---|---|
| symbolIcon | string | none |
| baseAsset | string | none |
| quoteAsset | string | none |
| baseIcon | string | none |
| quoteIcon | string | none |
| symbol | string | none |
| symbolName | string | none |
| symbolId | int64 | none |
| symbolTypeId | int64 | none |
| contractType | string | none |
SetSymbolRulesRequest
| Field | Type | Description |
|---|---|---|
| typeId | int64 | 交易对类型:3-SPOT,5-OTC |
| rules | SetSymbolRulesRequest.SymbolRules | none |
| symbolId | int64 | 交易对Id:非必填,当设置全局则可为空 |
| isDefault | string | 设置是否默认:ENABLE/DISABLE,非必填,设置默认配置则不需要填写 |
| status | string | 设置交易状态:TRADING/DISABLE,非必填,设置默认配置则不需要填写 |
SymbolRules
| Field | Type | Description |
|---|---|---|
| makerFeeRate | string | none |
| takerFeeRate | string | none |
| levelId | int64 | none |
| remark | string | none |
TimeResponse
| Field | Type | Description |
|---|---|---|
| serverTime | int64 | 当前服务器时间 |
UpdateSymbolFilterRequest
| Field | Type | Description |
|---|---|---|
| filters | UpdateSymbolFilterRequest.Filter | none |
Filter
| Field | Type | Description |
|---|---|---|
| filterId | int64 | 过滤参数id |
| maxNotionalValue | string | 最大名义价值 |
| maxLeverage | string | 最大杠杆 |
| maintMarginRatio | string | 维持保证金率 |
UpdateSymbolInfoRequest
| Field | Type | Description |
|---|---|---|
| symbolId | int64 | symbol ID |
| symbolName | string | 交易对名称 |
| pair | string | 标的交易对 |
| contractType | string | 合约类型 |
| deliveryDate | int64 | 交割日期 |
| onboardDate | int64 | 上线日期 |
| baseAsset | string | 标的资产 |
| quoteAsset | string | 计价资产 |
| typeId | int64 | 交易对类型 |
| description | string | 交易对描述 |
| status | string | 交易对状态:"DISABLE" "TRADING" |
| symbol | string | 交易对 |
| symbolIcon | string | 图标 |
| symbolFlag | string | SHOW/HIDDEN |
UpdateSymbolSettingsRequest
| Field | Type | Description |
|---|---|---|
| settings | UpdateSymbolSettingsRequest.Settings | none |
Settings
| Field | Type | Description |
|---|---|---|
| symbolId | int64 | settingId int64 settingId = 1[(validate.rules).int64.gt = 0]; |
| settingsKey | string | 交易对配置参数 |
| settingsValue | string | 交易对配置参数 |
UpdateSymbolSettingsWithSymbolIdRequest
| Field | Type | Description |
|---|---|---|
| symbolId | int64 | symbolId |
| settings | UpdateSymbolSettingsWithSymbolIdRequest.Settings | none |
Settings
| Field | Type | Description |
|---|---|---|
| settingsKey | string | 交易对配置参数 |
| settingsValue | string | 交易对配置参数 |
UpdateSymbolTypeRequest
| Field | Type | Description |
|---|---|---|
| typeId | int64 | 交易对类型ID |
| typeName | string | 交易对类型名称 |
| typeDesc | string | 交易对类型描述 |
3.2 Enums
SettingsKey
| Name | Number | Description |
|---|---|---|
| None | 0 | none |
| ReservePrice | 1 | 保留价 |
| PricePrecision | 2 | 价格小数点位数 |
| QuantityPrecision | 3 | 数量小数点位数 |
| BaseAssetPrecision | 4 | 标的资产精度 |
| QuoteAssetPrecision | 5 | 计价资产精度 |
| MarginAsset | 6 | 保证金资产 |
| MinOrderQuantity | 7 | 最小下单数量 |
| LimitOrderMaxOrderQuantity | 8 | 最大下单数量 |
| MarketOrderMaxOrderQuantity | 9 | none |
| MinOrderPrice | 10 | 最小下单价格 |
| MaxOrderPrice | 11 | 最大下单价格 |
| LimitOrderPriceLimitRate | 12 | 限价订单价格上下限(5% = 0.05) |
| MarketOrderPriceLimitRate | 13 | 市价订单价格上下限(5% = 0.05) |
| MinNotionalValue | 14 | 最小名义价值USDT(5) |
| MaxNotionalValue | 15 | 最大名义价值USDT(2500000) |
| MaxPositionPercent | 16 | 最大持仓量百分比(10%=0.1) |
| MaxLeverage | 17 | 最大杠杆(100) |
| FundingFeeIntervalHours | 18 | 资金费率计算间隔(小时) |
| FundingFeeMaxRate | 19 | 资金费率最大值(0.1% = 0.001) |
| FundingFeeMinRate | 20 | 资金费率最小值(-0.1% = -0.001) |
| InterestRate | 21 | 利率(0.1% = 0.001) |
| MakerFeeRate | 22 | MakerFeeRate |
| TakerFeeRate | 23 | TakerFeeRate |
SymbolStatus
| Name | Number | Description |
|---|---|---|
| Unknown | 0 | none |
| TRADING | 1 | 交易 |
| DISABLE | 2 | 禁用 |
4. Scalar Value Types
| Proto Type | Go Type | C++ Type | Java Type | Python Type | Notes |
|---|---|---|---|---|---|
| double | float64 | double | double | float | |
| float | float32 | float | float | float | |
| int32 | int32 | int32 | int | int | Uses variable-length encoding. Inefficient for encoding negative numbers – if your field is likely to have negative values, use sint32 instead. |
| int64 | int64 | int64 | long | int/long | Uses variable-length encoding. Inefficient for encoding negative numbers – if your field is likely to have negative values, use sint64 instead. |
| uint32 | uint32 | uint32 | int | int/long | Uses variable-length encoding. |
| uint64 | uint64 | uint64 | long | int/long | Uses variable-length encoding. |
| sint32 | int32 | int32 | int | int | Uses variable-length encoding. Signed int value. These more efficiently encode negative numbers than regular int32s. |
| sint64 | int64 | int64 | long | int/long | Uses variable-length encoding. Signed int value. These more efficiently encode negative numbers than regular int64s. |
| fixed32 | uint32 | uint32 | int | int | Always four bytes. More efficient than uint32 if values are often greater than 2^28. |
| fixed64 | uint64 | uint64 | long | int/long | Always eight bytes. More efficient than uint64 if values are often greater than 2^56. |
| sfixed32 | int32 | int32 | int | int | Always four bytes. |
| sfixed64 | int64 | int64 | long | int/long | Always eight bytes. |
| bool | bool | bool | boolean | boolean | |
| string | string | string | String | str/unicode | A string must always contain UTF-8 encoded or 7-bit ASCII text. |
| bytes | []byte | string | ByteString | str | May contain any arbitrary sequence of bytes. |
