Skip to content

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 ​

Statistical ​

Time ​

  • Summary: Time
  • Method: Time
  • Endpoint: statistical.Statistical/Time
  • Request:
    • Content-Type: application/grpc
    • Schema: Empty
  • Response:

GetFinancialStatementsList ​

GetFinancialStatementsInfo ​

GetEventus ​

  • Summary: GetEventus
  • Method: GetEventus
  • Endpoint: statistical.Statistical/GetEventus
  • Request:
  • Response:

GetUploadEventusRecords ​

GetUploadEventusInfo ​

GetUserRecentTrades ​

GetDailyAverage ​

  • Summary: GetDailyAverage
  • Method: GetDailyAverage
  • Endpoint: statistical.Statistical/GetDailyAverage
  • Request:
  • Response:

GetUserCritical ​

  • Summary: GetUserCritical
  • Method: GetUserCritical
  • Endpoint: statistical.Statistical/GetUserCritical
  • Request:
  • Response:

GetUserPositionLimit ​

GetUserPositionSnapshot ​

GetSolidusUploadRecords ​

GetSolidusUploadInfo ​

GetBatchSolidusUploadInfo ​

DownloadStatementPre ​

DownloadStatement ​

AddMarketMaker ​

  • Summary: 添加做市商
  • Method: AddMarketMaker
  • Endpoint: statistical.Statistical/AddMarketMaker
  • Request:
  • Response:

GetMarketMaker ​

  • Summary: 获取做市商
  • Method: GetMarketMaker
  • Endpoint: statistical.Statistical/GetMarketMaker
  • Request:
  • Response:

GetTradeRatio ​

  • Summary: 获取成交占比
  • Method: GetTradeRatio
  • Endpoint: statistical.Statistical/GetTradeRatio
  • Request:
  • Response:

GetMarketMakerActivity ​

GetMarketMakerActivityDetail ​

GetMarketMakerList ​

GetUserTradeVolume ​

  • Summary: 获取用户近30天的成交量,默认30天,最大返回1000条数据,更多数据需要分页查询
  • Method: GetUserTradeVolume
  • Endpoint: statistical.Statistical/GetUserTradeVolume
  • Request:
  • Response:

GetAccountFinancialReport ​

GetWalletFinancialReport ​

FinancialReportCorrection ​

FinancialReportCorrectionList ​

FinancialReportCorrectionHistory ​

FinancialReportCorrectionAudit ​

GetFinancialStatementsNewList ​

GetFinancialStatementsNewInfo ​

FinancialReportCorrectionInfo ​


3. Components ​

3.1 Schemas ​

AddMarketMakerRequest ​

FieldTypeDescription
symbolstringnone
emailsstringnone

AddMarketMakerResponse ​

FieldTypeDescription

DailyAverage ​

FieldTypeDescription
statisticsTimestring统计日期
transactionTypestring交易类型
symbolstring交易币种
orderCountint64订单笔数
tradeCountint64成交笔数
tradeVolumestring日成交额
tradeVolumeCoinstring日成交额单位
tradeAmountstring日成交量
tradeAmountCoinstring日成交量单位
avgTradeValuestring平均交易价值
avgPriceCoinstring平均交易价值单位
userTypestringIndividual PI/Corporate PI/Institutional PI
idint64none

DownloadStatementPreRequest ​

FieldTypeDescription
reportDatestring报告时间,格式: DAILY: 2024-11-01 MONTHLY: 2024-11
reportTypestring文件类型,可选值:DAILY / MONTHLY
userIdstringnone

DownloadStatementPreResponse ​

FieldTypeDescription
idint64none
canDownloadstring是否可下载:YES/NO

DownloadStatementRequest ​

FieldTypeDescription
idint64none
userIdstringnone
sourcestringnone

DownloadStatementResponse ​

FieldTypeDescription
reportDatestringnone
reportstringnone
userIdstringnone
reportTypestringnone

Eventus ​

FieldTypeDescription
eventIdint32The number identifying the event uniquely in the source file
eventDatestringThe date of the event (in local date)
eventTimestringThe time of the event (accurate to seconds, in local time)
eventMillisint32The number of milliseconds since the time in column 3
orderIdstringThe unique order identifier for the event
executionOptionsstringThe restrictions for matching the order event
eventTypestringThe action representing the event
symbolstringThe identifier for the order book traded on the platform
orderTypestringThe order matching rules for the order
sidestringThe representation of the side of the order for buying or selling
limitPricestringThe representation of the price a limit order can be matched at
originalQuantitystringThe quantity representing the initially input quantity for the order
grossNotionalValuestringThe value of the order event (only applicable for matched order messages)
fillPricestringThe price the order fills at for the event
fillQuantitystringThe quantity of the order filled by the event
totalExecQuantitystringThe quantity of the order matched in the lifecycle of the order
remainingQuantitystringThe quantity remaining on the order following the event
avgPricestringThe average price of the order due to one or more matches
feesstringThe fees associated with the transaction
auctionIdstringThe identifier of the account used to place the order
accountIdstringnone

FinancialReportCorrection ​

FieldTypeDescription
idint64none
reportDatestringnone
assetstringnone
reportStatusstringnone
reportTypestringnone
createTimeint64none
updateTimeint64none
reportIdint64none
lastAuditorstringnone
lastAuditRolestringnone
needAuditRolestringnone
remarkstringnone

FinancialReportCorrectionAuditRequest ​

FieldTypeDescription
orderIdint64订单Id
auditorstring审核人
rolestring角色
operationstring操作 SUBMIT 提交 APPROVE 通过 CANCEL 拒绝
remarkstringnone

FinancialReportCorrectionAuditResponse ​

FieldTypeDescription

FinancialReportCorrectionHistory ​

FieldTypeDescription
orderIdint64订单Id
auditorstring审核人
rolestring角色
operationstring状态
remarkstring备注
createdAtint64创建时间
updatedAtint64更新时间
idint64none

FinancialReportCorrectionHistoryRequest ​

FieldTypeDescription
idint64none

FinancialReportCorrectionHistoryResponse ​

FieldTypeDescription
listFinancialReportCorrectionHistorynone
totalsint64none

FinancialReportCorrectionInfoRequest ​

FieldTypeDescription
idint64none

FinancialReportCorrectionInfoResponse ​

FieldTypeDescription
infoFinancialReportCorrectionnone

FinancialReportCorrectionListRequest ​

FieldTypeDescription
pageNumint32none
pageSizeint32none
startTimeint64none
endTimeint64none
assetstringnone
statusstring未申报:UNDECLARED 审核中:PENDING 已通过:APPROVED
statementsTypestringFEE-手续费,ASSET-资产

FinancialReportCorrectionListResponse ​

FieldTypeDescription
listFinancialReportCorrectionnone
totalsint64none

FinancialReportCorrectionRequest ​

FieldTypeDescription
reportDatestringnone
assetstringnone
remarkstringnone
userSummariesGetAccountFinancialReportResponse.UserSummarynone
systemSummariesGetAccountFinancialReportResponse.SystemSummarynone
walletBalanceGetWalletFinancialReportResponse.WalletBalancenone
rolestringnone
auditorstringnone

FinancialReportCorrectionResponse ​

FieldTypeDescription

FinancialStatements ​

FieldTypeDescription
createTimeint64none
statementsTypestringFEE-手续费,ASSET-资产
assetstring币种
reportstring报告
reportDatestring报告时间
reportIdint64none

GetAccountFinancialReportRequest ​

FieldTypeDescription
reportDatestringnone
assetstringnone

GetAccountFinancialReportResponse ​

FieldTypeDescription
reportDatestringnone
assetstringnone
userSummariesGetAccountFinancialReportResponse.UserSummarynone
systemSummariesGetAccountFinancialReportResponse.SystemSummarynone
newUserSummariesGetAccountFinancialReportResponse.UserSummarynone
newSystemSummariesGetAccountFinancialReportResponse.SystemSummarynone

FundingTransactions ​

FieldTypeDescription
fundingTodayAmountstringnone
fundingBuySellSpendstringnone
fundingBuySellGetstringnone
fundingDepositstringnone
fundingWithdrawalstringnone
fundingWithdrawalFeestringnone
fundingTransactionFeestringnone
fundingCurrencyGetstringnone
fundingCurrencyCoststringnone
fundingTransferInFromSpotstringnone
fundingTransferOutToSpotstringnone
fundingTransferInFromOTCstringnone
fundingTransferOutToOTCstringnone
fundingTransferInFromFundstringnone
fundingTransferOutToFundstringnone
fundingSettlementstringnone
fundingRefundFeestringnone
fundingOffsettingGasFeesstringnone
fundingYesterdayAmountstringnone

OTCTransactions ​

FieldTypeDescription
otcTodayAmountstringnone
otcBuySellSpendstringnone
otcBuySellGetstringnone
otcDepositstringnone
otcWithdrawalstringnone
otcWithdrawalFeestringnone
otcTransactionFeestringnone
otcCurrencyGetstringnone
otcCurrencyCoststringnone
otcTransferInFromSpotstringnone
otcTransferOutToSpotstringnone
otcTransferInFromOTCstringnone
otcTransferOutToOTCstringnone
otcTransferInFromFundstringnone
otcTransferOutToFundstringnone
otcSettlementstringnone
otcRefundFeestringnone
otcOffsettingGasFeesstringnone
otcYesterdayAmountstringnone

SpotTransactions ​

FieldTypeDescription
spotTodayAmountstringnone
spotBuySellSpendstringnone
spotBuySellGetstringnone
spotDepositstringnone
spotWithdrawalstringnone
spotWithdrawalFeestringnone
spotTransactionFeestringnone
spotCurrencyGetstringnone
spotCurrencyCoststringnone
spotTransferInFromSpotstringnone
spotTransferOutToSpotstringnone
spotTransferInFromOTCstringnone
spotTransferOutToOTCstringnone
spotTransferInFromFundstringnone
spotTransferOutToFundstringnone
spotSettlementstringnone
spotRefundFeestringnone
spotOffsettingGasFeesstringnone
spotYesterdayAmountstringnone

SystemSummary ​

FieldTypeDescription
accountDailySummaryIDint64none
totalTransactionsGetAccountFinancialReportResponse.TotalTransactionsnone
spotTransactionsGetAccountFinancialReportResponse.SpotTransactionsnone
otcTransactionsGetAccountFinancialReportResponse.OTCTransactionsnone
fundingTransactionsGetAccountFinancialReportResponse.FundingTransactionsnone

TotalTransactions ​

FieldTypeDescription
totalTodayAmountstringnone
totalBuySellSpendstringnone
totalBuySellGetstringnone
totalDepositstringnone
totalWithdrawalstringnone
totalWithdrawalFeestringnone
totalTransactionFeestringnone
totalCurrencyGetstringnone
totalCurrencyCoststringnone
totalTransferInFromSpotstringnone
totalTransferOutToSpotstringnone
totalTransferInFromOTCstringnone
totalTransferOutToOTCstringnone
totalTransferInFromFundstringnone
totalTransferOutToFundstringnone
totalSettlementstringnone
totalRefundFeestringnone
totalOffsettingGasFeesstringnone
totalYesterdayAmountstringnone

UserSummary ​

FieldTypeDescription
accountDailySummaryIDint64none
totalTransactionsGetAccountFinancialReportResponse.TotalTransactionsnone
spotTransactionsGetAccountFinancialReportResponse.SpotTransactionsnone
otcTransactionsGetAccountFinancialReportResponse.OTCTransactionsnone
fundingTransactionsGetAccountFinancialReportResponse.FundingTransactionsnone

GetBatchSolidusUploadInfoRequest ​

FieldTypeDescription
idsint64none

GetBatchSolidusUploadInfoResponse ​

FieldTypeDescription
listSolidusUploadRecordsnone

GetDailyAverageRequest ​

FieldTypeDescription
pageNumint32none
pageSizeint32none
startTimeint64none
endTimeint64none
transactionTypestringSPOT/OTC
symbolstringnone
userTypestringIndividual PI/Corporate PI/Institutional PI

GetDailyAverageResponse ​

FieldTypeDescription
listDailyAveragenone
totalsint64none

GetEventusRequest ​

FieldTypeDescription
pageNumint32none
pageSizeint32none
startTimeint64none
endTimeint64none
symbolstringnone
searchValstringnone

GetEventusResponse ​

FieldTypeDescription
listEventusnone
totalsint64none

GetFinancialStatementsInfoRequest ​

FieldTypeDescription
reportIdint64none

GetFinancialStatementsInfoResponse ​

FieldTypeDescription
infoFinancialStatementsnone

GetFinancialStatementsListRequest ​

FieldTypeDescription
pageNumint32none
pageSizeint32none
startTimeint64none
endTimeint64none
assetstringnone
statementsTypestringnone

GetFinancialStatementsListResponse ​

FieldTypeDescription
listFinancialStatementsnone
totalsint64none

GetMarketMakerActivityDetailRequest ​

FieldTypeDescription
idint64none

GetMarketMakerActivityDetailResponse ​

FieldTypeDescription
infoMarketMakerActivitynone

GetMarketMakerActivityRequest ​

FieldTypeDescription
startTimeint64开始时间
endTimeint64结束时间
symbolstring交易对
marketMakerstring做市商
pageNumint32页码
pageSizeint32每页数量
reportTypestring报告类型

GetMarketMakerActivityResponse ​

FieldTypeDescription
listMarketMakerActivitynone
totalsint64none

GetMarketMakerListRequest ​

FieldTypeDescription

GetMarketMakerListResponse ​

FieldTypeDescription
emailsstringnone

GetMarketMakerRequest ​

FieldTypeDescription
symbolstringnone

GetMarketMakerResponse ​

FieldTypeDescription
emailsstringnone

GetSolidusUploadInfoRequest ​

FieldTypeDescription
idint64none

GetSolidusUploadInfoResponse ​

FieldTypeDescription
infoSolidusUploadRecordsnone

GetSolidusUploadRecordsRequest ​

FieldTypeDescription
pageNumint32none
pageSizeint32none
startTimeint64毫秒时间戳
endTimeint64毫秒时间戳

GetSolidusUploadRecordsResponse ​

FieldTypeDescription
listSolidusUploadRecordsnone
totalsint64none

GetTradeRatioRequest ​

FieldTypeDescription
startTimeint64开始时间
endTimeint64结束时间
symbolstring交易对
marketMakerstring做市商
pageNumint32页码
pageSizeint32每页数量

GetTradeRatioResponse ​

FieldTypeDescription
listTradeProportionnone
totalsint64none

GetUploadEventusInfoRequest ​

FieldTypeDescription
idint64none

GetUploadEventusInfoResponse ​

FieldTypeDescription
infoUploadEventusRecordsnone

GetUploadEventusRecordsRequest ​

FieldTypeDescription
pageNumint32none
pageSizeint32none
startTimeint64none
endTimeint64none

GetUploadEventusRecordsResponse ​

FieldTypeDescription
listUploadEventusRecordsnone
totalsint64none

GetUserCriticalRequest ​

FieldTypeDescription
pageNumint32none
pageSizeint32none
statisticsTimeint64none
transactionTypestringnone
symbolstringnone

GetUserCriticalResponse ​

FieldTypeDescription
listUserCriticalnone
totalsint64none

GetUserPositionLimitRequest ​

FieldTypeDescription
pageNumint32none
pageSizeint32none
startTimeint64none
endTimeint64none

GetUserPositionLimitResponse ​

FieldTypeDescription
listUserPositionLimitnone
totalsint64none

GetUserPositionSnapshotRequest ​

FieldTypeDescription
pageNumint32none
pageSizeint32none
reportIdint64none
searchValstringnone

GetUserPositionSnapshotResponse ​

FieldTypeDescription
listUserPositionSnapshotnone
totalsint64none

GetUserRecentTradesRequest ​

FieldTypeDescription
userIdsstringnone

GetUserRecentTradesResponse ​

FieldTypeDescription
listGetUserRecentTradesResponse.UserTradeRecordsnone

UserTradeRecords ​

FieldTypeDescription
userIdstringnone
lastTradeTimeint64none
lastDepositAndWithdrawTimeint64none
lastTransferTimeint64none
lastDepositTimeint64none
lastWithdrawTimeint64none
registrationTimeint64用户注册时间

GetUserTradeVolumeRequest ​

FieldTypeDescription
afterIdint64none
startTimeint64none
endTimeint64none

GetUserTradeVolumeResponse ​

FieldTypeDescription
listGetUserTradeVolumeResponse.UserTradeVolumenone

UserTradeVolume ​

FieldTypeDescription
userIdstringnone
spotTradeVolumestringnone
otcTradeVolumestringnone
idint64none

GetWalletFinancialReportRequest ​

FieldTypeDescription
reportDatestringnone
assetstringnone

GetWalletFinancialReportResponse ​

FieldTypeDescription
reportDatestringnone
assetstringnone
walletBalanceGetWalletFinancialReportResponse.WalletBalancenone
newWalletBalanceGetWalletFinancialReportResponse.WalletBalancenone

WalletBalance ​

FieldTypeDescription
accountDailySummaryIDint64none
userBalanceGetWalletFinancialReportResponse.WalletBalance.UserBalancenone
gasBalanceGetWalletFinancialReportResponse.WalletBalance.GasBalancenone
totalBalanceGetWalletFinancialReportResponse.WalletBalance.TotalBalancenone
gasWalletGetWalletFinancialReportResponse.WalletBalance.GasWalletnone
todayAmountstringnone
yesterdayAmountstringnone

GasBalance ​

FieldTypeDescription
gasBalanceTodayAmountstringnone
gasBalanceDepositstringnone
gasBalanceNotCreditedstringnone
gasBalanceOTCSettlementDepositstringnone
gasBalanceOtherIncomestringnone
gasBalanceGasDepositstringnone
gasBalanceGasTransferstringnone
gasBalanceGasTransferFeestringnone
gasBalanceCollectionGasFeestringnone
gasBalanceQuarantineGasFeestringnone
gasBalanceApproveGasFeestringnone
gasBalanceCleanGasstringnone
gasBalanceCleanGasFeestringnone
gasBalanceInnerGasFeestringnone
gasBalanceWithdrawalstringnone
gasBalanceOTCSettlementWithdrawalstringnone
gasBalanceSystemWithdrawalstringnone
gasBalanceRefundstringnone
gasBalanceOffsettingGasFeesstringnone
gasBalanceYesterdayAmountstringnone

GasWallet ​

FieldTypeDescription
gasWalletTodayAmountstringnone
gasWalletDepositstringnone
gasWalletNotCreditedstringnone
gasWalletOTCSettlementDepositstringnone
gasWalletOtherIncomestringnone
gasWalletGasDepositstringnone
gasWalletGasTransferstringnone
gasWalletGasTransferFeestringnone
gasWalletCollectionGasFeestringnone
gasWalletQuarantineGasFeestringnone
gasWalletApproveGasFeestringnone
gasWalletCleanGasstringnone
gasWalletCleanGasFeestringnone
gasWalletInnerGasFeestringnone
gasWalletWithdrawalstringnone
gasWalletOTCSettlementWithdrawalstringnone
gasWalletSystemWithdrawalstringnone
gasWalletRefundstringnone
gasWalletOffsettingGasFeesstringnone
gasWalletYesterdayAmountstringnone

TotalBalance ​

FieldTypeDescription
totalBalanceTodayAmountstringnone
totalBalanceDepositstringnone
totalBalanceNotCreditedstringnone
totalBalanceOTCSettlementDepositstringnone
totalBalanceOtherIncomestringnone
totalBalanceGasDepositstringnone
totalBalanceGasTransferstringnone
totalBalanceGasTransferFeestringnone
totalBalanceCollectionGasFeestringnone
totalBalanceQuarantineGasFeestringnone
totalBalanceApproveGasFeestringnone
totalBalanceCleanGasstringnone
totalBalanceCleanGasFeestringnone
totalBalanceInnerGasFeestringnone
totalBalanceWithdrawalstringnone
totalBalanceOTCSettlementWithdrawalstringnone
totalBalanceSystemWithdrawalstringnone
totalBalanceRefundstringnone
totalBalanceOffsettingGasFeesstringnone
totalBalanceYesterdayAmountstringnone

UserBalance ​

FieldTypeDescription
userBalanceTodayAmountstringnone
userBalanceDepositstringnone
userBalanceNotCreditedstringnone
userBalanceOTCSettlementDepositstringnone
userBalanceOtherIncomestringnone
userBalanceGasDepositstringnone
userBalanceGasTransferstringnone
userBalanceGasTransferFeestringnone
userBalanceCollectionGasFeestringnone
userBalanceQuarantineGasFeestringnone
userBalanceApproveGasFeestringnone
userBalanceCleanGasstringnone
userBalanceCleanGasFeestringnone
userBalanceInnerGasFeestringnone
userBalanceWithdrawalstringnone
userBalanceOTCSettlementWithdrawalstringnone
userBalanceSystemWithdrawalstringnone
userBalanceRefundstringnone
userBalanceOffsettingGasFeesstringnone
userBalanceYesterdayAmountstringnone

MarketMakerActivity ​

FieldTypeDescription
statisticsTimestring统计时间
symbolstring交易对
marketMakerstring做市商
reportDatastring报告数据
reportTypestring报告类型
idint64none
createTimeint64创建时间
updateTimeint64更新时间

SolidusUploadRecords ​

FieldTypeDescription
idint64none
reportDateint64毫秒时间戳
reportstringnone
reportTypestring报告类型:private_order_v2-订单文件,linked_private_execution_v2-执行文件

TimeResponse ​

FieldTypeDescription
serverTimeint64当前服务器时间

TradeProportion ​

FieldTypeDescription
symbolstring交易对
totalTradeAmountstring总交易量
marketMakerTradeAmountstring做市商交易量
totalTradeVolumestring总交易额
marketMakerTradeVolumestring做市商交易额
marketMakerstring做市商
marketMakerTradeRatiostring做市商成交占比
baseAssetstringBaseAsset
quoteAssetstringQuote Asset
statisticsTimestring统计时间
idint64none
createTimeint64创建时间
updateTimeint64更新时间

UploadEventusRecords ​

FieldTypeDescription
idint64none
reportDatestringnone
reportstringnone

UserCritical ​

FieldTypeDescription
userIdstring用户id
transactionTypestring交易类型
symbolstring交易对
orderCountint64订单笔数
tradeCountint64成交笔数
tradeVolumestring日成交额
tradeVolumeCoinstring日成交额单位
tradeAmountstring日成交量
tradeAmountCoinstring日成交量单位
avgTradeValuestring平均交易价值
avgPriceCoinstring平均交易价值单位
idint64none

UserPositionLimit ​

FieldTypeDescription
reportDatestring报告时间
reportIdint64报告ID

UserPositionSnapshot ​

FieldTypeDescription
reportDatestring报告时间
userIDstring用户ID
initialAssetEquivalentstring期初资产折合
finalAssetEquivalentstring期末资产折合
initialReportedNetValuestring期初申报净值
finalReportedNetValuestring期末申报净值
initialPositionLimitstring期初持仓限制
finalPositionLimitstring期末持仓限制
initialPositionQuantitystring期初持仓量
finalPositionQuantitystring期末持仓量
initialPositionPercentagestring期初持仓占用百分比
finalPositionPercentagestring期末持仓占用百分比
adjustedPositionQuantitystring调整后持仓量
remainingQuotastring剩余额度
rechargeCountint64充值笔数
withdrawalCountint64提现笔数
buyAmountstring买入金额
sellAmountstring卖出金额
idint64none
initialTokenPositionQuantitystringnone
finalTokenPositionQuantitystringnone

3.2 Enums ​

AuditOperation ​

NameNumberDescription
SUBMIT0提交
APPROVE1通过
CANCEL2拒绝

AuditRole ​

NameNumberDescription
MAKER0Maker
CHECKER1Checker

AuditStatus ​

NameNumberDescription
UNSPECIFIED0默认值,表示未指定
UNDECLARED1未申报
PENDING2审核中
APPROVED3已通过

ReportType ​

NameNumberDescription
NONETYPE0none
SPREAD1none
ORDER_PRICE2none
ORDER_AMOUNT3none

StatementsType ​

NameNumberDescription
NONE0none
ASSET1none
FEE2none

4. Scalar Value Types ​

Proto TypeGo TypeC++ TypeJava TypePython TypeNotes
doublefloat64doubledoublefloat
floatfloat32floatfloatfloat
int32int32int32intintUses variable-length encoding. Inefficient for encoding negative numbers – if your field is likely to have negative values, use sint32 instead.
int64int64int64longint/longUses variable-length encoding. Inefficient for encoding negative numbers – if your field is likely to have negative values, use sint64 instead.
uint32uint32uint32intint/longUses variable-length encoding.
uint64uint64uint64longint/longUses variable-length encoding.
sint32int32int32intintUses variable-length encoding. Signed int value. These more efficiently encode negative numbers than regular int32s.
sint64int64int64longint/longUses variable-length encoding. Signed int value. These more efficiently encode negative numbers than regular int64s.
fixed32uint32uint32intintAlways four bytes. More efficient than uint32 if values are often greater than 2^28.
fixed64uint64uint64longint/longAlways eight bytes. More efficient than uint64 if values are often greater than 2^56.
sfixed32int32int32intintAlways four bytes.
sfixed64int64int64longint/longAlways eight bytes.
boolboolboolbooleanboolean
stringstringstringStringstr/unicodeA string must always contain UTF-8 encoded or 7-bit ASCII text.
bytes[]bytestringByteStringstrMay contain any arbitrary sequence of bytes.

🚀 构建现代化数字资产交易平台