market.v2.trade.json 26 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858
  1. {
  2. "options": {
  3. "syntax": "proto3"
  4. },
  5. "nested": {
  6. "market": {
  7. "nested": {
  8. "v2": {
  9. "nested": {
  10. "trade": {
  11. "nested": {
  12. "Response": {
  13. "fields": {
  14. "code": {
  15. "type": "int32",
  16. "id": 1
  17. },
  18. "msg": {
  19. "type": "string",
  20. "id": 2
  21. },
  22. "status": {
  23. "type": "string",
  24. "id": 3
  25. },
  26. "ts": {
  27. "type": "int64",
  28. "id": 4
  29. },
  30. "ch": {
  31. "type": "string",
  32. "id": 5
  33. },
  34. "klinelist": {
  35. "type": "KlineList",
  36. "id": 21
  37. },
  38. "tradedepthvo": {
  39. "type": "TradeDepthVO",
  40. "id": 22
  41. },
  42. "tradedetaillist": {
  43. "type": "TradeDetailList",
  44. "id": 23
  45. },
  46. "tradeareapair": {
  47. "type": "TradeAreaPair",
  48. "id": 24
  49. },
  50. "mainpair": {
  51. "type": "MainPair",
  52. "id": 25
  53. },
  54. "recommendpair": {
  55. "type": "RecommendPair",
  56. "id": 26
  57. },
  58. "uppair": {
  59. "type": "UpPair",
  60. "id": 27
  61. },
  62. "amtpair": {
  63. "type": "AmtPair",
  64. "id": 28
  65. },
  66. "starpair": {
  67. "type": "StarPair",
  68. "id": 29
  69. },
  70. "tradetickervo": {
  71. "type": "TradeTickerVO",
  72. "id": 30
  73. },
  74. "entrustvo": {
  75. "type": "EntrustVO",
  76. "id": 31
  77. },
  78. "userassetbalance": {
  79. "type": "UserAssetBalance",
  80. "id": 32
  81. },
  82. "markettickerlist": {
  83. "type": "MarketTickerList",
  84. "id": 33
  85. },
  86. "margincrossassetvo": {
  87. "type": "MarginCrossAssetVO",
  88. "id": 35
  89. },
  90. "marginisolatedassetvo": {
  91. "type": "MarginIsolatedAssetVO",
  92. "id": 36
  93. },
  94. "newlistingpair": {
  95. "type": "NewListingPair",
  96. "id": 37
  97. },
  98. "chgdistributions": {
  99. "type": "Chgdistributions",
  100. "id": 38
  101. },
  102. "marketzones": {
  103. "type": "MarketZones",
  104. "id": 39
  105. },
  106. "klineorders": {
  107. "type": "KlineOrders",
  108. "id": 40
  109. },
  110. "notificationpush": {
  111. "type": "NotificationPush",
  112. "id": 41
  113. },
  114. "tradehotlisting": {
  115. "type": "TradeHotListing",
  116. "id": 42
  117. },
  118. "ctcgoingordernum": {
  119. "type": "CtcGoingOrderNum",
  120. "id": 43
  121. },
  122. "multichange": {
  123. "type": "MultiChange",
  124. "id": 44
  125. },
  126. "heatmap": {
  127. "type": "Heatmap",
  128. "id": 45
  129. },
  130. "downpair": {
  131. "type": "DownPair",
  132. "id": 46
  133. },
  134. "heatvol": {
  135. "type": "HeatVol",
  136. "id": 47
  137. },
  138. "currencyrate": {
  139. "type": "CurrencyRate",
  140. "id": 48
  141. },
  142. "marketmonit": {
  143. "type": "MarketMonit",
  144. "id": 34
  145. }
  146. }
  147. },
  148. "KlineList": {
  149. "fields": {}
  150. },
  151. "TradeDepthVO": {
  152. "fields": {
  153. "bids": {
  154. "type": "Bids",
  155. "id": 1
  156. },
  157. "asks": {
  158. "type": "Asks",
  159. "id": 2
  160. },
  161. "last": {
  162. "type": "string",
  163. "id": 3
  164. },
  165. "open": {
  166. "type": "string",
  167. "id": 4
  168. },
  169. "cny": {
  170. "type": "string",
  171. "id": 5
  172. },
  173. "netvalue": {
  174. "type": "string",
  175. "id": 6
  176. },
  177. "buyorsellcnyprice": {
  178. "type": "string",
  179. "id": 7
  180. },
  181. "isfiatconvert": {
  182. "type": "bool",
  183. "id": 8
  184. },
  185. "isrisktip": {
  186. "type": "bool",
  187. "id": 9
  188. }
  189. },
  190. "nested": {
  191. "Bids": {
  192. "fields": {}
  193. },
  194. "Asks": {
  195. "fields": {
  196. "askdataList": {
  197. "rule": "repeated",
  198. "type": "AskData",
  199. "id": 1
  200. }
  201. },
  202. "nested": {
  203. "AskData": {
  204. "fields": {}
  205. }
  206. }
  207. }
  208. }
  209. },
  210. "TradeDetailList": {
  211. "fields": {
  212. "list": {
  213. "rule": "repeated",
  214. "type": "TradeDetailInfo",
  215. "id": 1
  216. }
  217. }
  218. },
  219. "TradeDetailInfo": {
  220. "fields": {
  221. "tradeid": {
  222. "type": "int64",
  223. "id": 1
  224. },
  225. "amount": {
  226. "type": "string",
  227. "id": 2
  228. },
  229. "ts": {
  230. "type": "string",
  231. "id": 3
  232. },
  233. "price": {
  234. "type": "string",
  235. "id": 4
  236. },
  237. "direction": {
  238. "type": "string",
  239. "id": 5
  240. }
  241. }
  242. },
  243. "TradeAreaPair": {
  244. "fields": {
  245. "listList": {
  246. "rule": "repeated",
  247. "type": "TradeAreaPairInfo",
  248. "id": 1
  249. }
  250. }
  251. },
  252. "TradeAreaPairInfo": {
  253. "fields": {
  254. "tradeid": {
  255. "type": "int32",
  256. "id": 1
  257. },
  258. "cny": {
  259. "type": "string",
  260. "id": 2
  261. },
  262. "buy": {
  263. "type": "string",
  264. "id": 3
  265. },
  266. "lever": {
  267. "type": "string",
  268. "id": 4
  269. },
  270. "sell": {
  271. "type": "string",
  272. "id": 5
  273. },
  274. "last": {
  275. "type": "string",
  276. "id": 6
  277. },
  278. "volume": {
  279. "type": "string",
  280. "id": 7
  281. },
  282. "change": {
  283. "type": "string",
  284. "id": 8
  285. },
  286. "high": {
  287. "type": "string",
  288. "id": 9
  289. },
  290. "low": {
  291. "type": "string",
  292. "id": 10
  293. },
  294. "isopen": {
  295. "type": "string",
  296. "id": 11
  297. },
  298. "open": {
  299. "type": "string",
  300. "id": 12
  301. },
  302. "amount": {
  303. "type": "string",
  304. "id": 13
  305. },
  306. "isfiatconvert": {
  307. "type": "bool",
  308. "id": 14
  309. }
  310. }
  311. },
  312. "MainPair": {
  313. "fields": {
  314. "listList": {
  315. "rule": "repeated",
  316. "type": "MainPairInfo",
  317. "id": 1
  318. }
  319. }
  320. },
  321. "MainPairInfo": {
  322. "fields": {
  323. "tradeId": {
  324. "type": "int32",
  325. "id": 1
  326. },
  327. "cny": {
  328. "type": "string",
  329. "id": 2
  330. },
  331. "totalamount": {
  332. "type": "string",
  333. "id": 3
  334. },
  335. "last": {
  336. "type": "string",
  337. "id": 4
  338. },
  339. "volume": {
  340. "type": "string",
  341. "id": 5
  342. },
  343. "change": {
  344. "type": "string",
  345. "id": 6
  346. }
  347. }
  348. },
  349. "RecommendPair": {
  350. "fields": {
  351. "listList": {
  352. "rule": "repeated",
  353. "type": "RecommendPairInfo",
  354. "id": 1
  355. }
  356. }
  357. },
  358. "RecommendPairInfo": {
  359. "fields": {
  360. "tradeId": {
  361. "type": "int32",
  362. "id": 1
  363. },
  364. "cny": {
  365. "type": "string",
  366. "id": 2
  367. },
  368. "totalamount": {
  369. "type": "string",
  370. "id": 3
  371. },
  372. "last": {
  373. "type": "string",
  374. "id": 4
  375. },
  376. "volume": {
  377. "type": "string",
  378. "id": 5
  379. },
  380. "change": {
  381. "type": "string",
  382. "id": 6
  383. }
  384. }
  385. },
  386. "UpPair": {
  387. "fields": {}
  388. },
  389. "AmtPair": {
  390. "fields": {}
  391. },
  392. "StarPair": {
  393. "fields": {}
  394. },
  395. "TradeTickerVO": {
  396. "fields": {
  397. "tradeid": {
  398. "type": "int32",
  399. "id": 1
  400. },
  401. "high": {
  402. "type": "string",
  403. "id": 2
  404. },
  405. "open": {
  406. "type": "string",
  407. "id": 3
  408. },
  409. "low": {
  410. "type": "string",
  411. "id": 4
  412. },
  413. "close": {
  414. "type": "string",
  415. "id": 5
  416. },
  417. "volume": {
  418. "type": "string",
  419. "id": 6
  420. },
  421. "change": {
  422. "type": "string",
  423. "id": 7
  424. },
  425. "cny": {
  426. "type": "string",
  427. "id": 8
  428. },
  429. "last": {
  430. "type": "string",
  431. "id": 9
  432. },
  433. "netvalue": {
  434. "type": "string",
  435. "id": 10
  436. },
  437. "amount": {
  438. "type": "string",
  439. "id": 11
  440. },
  441. "isfiatconvert": {
  442. "type": "bool",
  443. "id": 12
  444. }
  445. }
  446. },
  447. "EntrustVO": {
  448. "fields": {
  449. "id": {
  450. "type": "int64",
  451. "id": 1
  452. },
  453. "tradeid": {
  454. "type": "int32",
  455. "id": 2
  456. },
  457. "entrusttime": {
  458. "type": "int64",
  459. "id": 3
  460. },
  461. "buycoinshortname": {
  462. "type": "string",
  463. "id": 4
  464. },
  465. "sellcoinshortname": {
  466. "type": "string",
  467. "id": 5
  468. },
  469. "type": {
  470. "type": "int32",
  471. "id": 6
  472. },
  473. "direction": {
  474. "type": "int32",
  475. "id": 7
  476. },
  477. "matchtype": {
  478. "type": "int32",
  479. "id": 8
  480. },
  481. "pricetype": {
  482. "type": "string",
  483. "id": 9
  484. },
  485. "entrustprice": {
  486. "type": "string",
  487. "id": 10
  488. },
  489. "count": {
  490. "type": "string",
  491. "id": 11
  492. },
  493. "successcount": {
  494. "type": "string",
  495. "id": 12
  496. },
  497. "averageprice": {
  498. "type": "string",
  499. "id": 13
  500. },
  501. "status": {
  502. "type": "int32",
  503. "id": 14
  504. },
  505. "history": {
  506. "type": "bool",
  507. "id": 15
  508. },
  509. "pushversion": {
  510. "type": "int64",
  511. "id": 16
  512. },
  513. "remove": {
  514. "type": "bool",
  515. "id": 17
  516. },
  517. "amount": {
  518. "type": "string",
  519. "id": 18
  520. },
  521. "marketunit": {
  522. "type": "string",
  523. "id": 19
  524. },
  525. "funds": {
  526. "type": "string",
  527. "id": 20
  528. },
  529. "leftfunds": {
  530. "type": "string",
  531. "id": 21
  532. },
  533. "triggerprice": {
  534. "type": "string",
  535. "id": 22
  536. },
  537. "marginmode": {
  538. "type": "string",
  539. "id": 23
  540. },
  541. "margintrademode": {
  542. "type": "string",
  543. "id": 24
  544. },
  545. "forcedliquidation": {
  546. "type": "bool",
  547. "id": 25
  548. },
  549. "remark": {
  550. "type": "string",
  551. "id": 26
  552. },
  553. "successamount": {
  554. "type": "string",
  555. "id": 27
  556. },
  557. "tradearea": {
  558. "type": "int32",
  559. "id": 28
  560. },
  561. "fee": {
  562. "type": "string",
  563. "id": 29
  564. },
  565. "trailingdelta": {
  566. "type": "string",
  567. "id": 30
  568. },
  569. "activationprice": {
  570. "type": "string",
  571. "id": 31
  572. },
  573. "activationtime": {
  574. "type": "int64",
  575. "id": 32
  576. },
  577. "triggersign": {
  578. "type": "int32",
  579. "id": 33
  580. },
  581. "orderid": {
  582. "type": "string",
  583. "id": 34
  584. }
  585. }
  586. },
  587. "UserAssetBalance": {
  588. "fields": {
  589. "usdtassets": {
  590. "type": "string",
  591. "id": 1
  592. },
  593. "usdtavailableassets": {
  594. "type": "string",
  595. "id": 2
  596. },
  597. "totalassets": {
  598. "type": "string",
  599. "id": 3
  600. },
  601. "btcassets": {
  602. "type": "string",
  603. "id": 4
  604. },
  605. "userwalletlist": {
  606. "rule": "repeated",
  607. "type": "UserWallet",
  608. "id": 5
  609. }
  610. }
  611. },
  612. "UserWallet": {
  613. "fields": {
  614. "listList": {
  615. "rule": "repeated",
  616. "type": "UserWalletPairInfo",
  617. "id": 1
  618. }
  619. }
  620. },
  621. "UserWalletPairInfo": {
  622. "fields": {
  623. "coinid": {
  624. "type": "int32",
  625. "id": 1
  626. },
  627. "totalAmount": {
  628. "type": "string",
  629. "id": 2
  630. },
  631. "total": {
  632. "type": "string",
  633. "id": 3
  634. },
  635. "frozen": {
  636. "type": "string",
  637. "id": 4
  638. },
  639. "borrow": {
  640. "type": "string",
  641. "id": 5
  642. },
  643. "coinname": {
  644. "type": "string",
  645. "id": 6
  646. },
  647. "shortName": {
  648. "type": "string",
  649. "id": 7
  650. },
  651. "withdraw": {
  652. "type": "bool",
  653. "id": 8
  654. },
  655. "recharge": {
  656. "type": "bool",
  657. "id": 9
  658. },
  659. "usdtprice": {
  660. "type": "string",
  661. "id": 10
  662. },
  663. "price": {
  664. "type": "string",
  665. "id": 11
  666. },
  667. "sortid": {
  668. "type": "int32",
  669. "id": 12
  670. }
  671. }
  672. },
  673. "MarketTickerList": {
  674. "fields": {}
  675. },
  676. "MarketMonit": {
  677. "fields": {
  678. "id": {
  679. "type": "int64",
  680. "id": 1
  681. },
  682. "indexkey": {
  683. "type": "string",
  684. "id": 2
  685. },
  686. "scope": {
  687. "type": "int32",
  688. "id": 3
  689. },
  690. "tradeid": {
  691. "type": "int32",
  692. "id": 4
  693. },
  694. "tradecode": {
  695. "type": "string",
  696. "id": 5
  697. },
  698. "indexbase": {
  699. "type": "string",
  700. "id": 6
  701. },
  702. "quote": {
  703. "type": "string",
  704. "id": 7
  705. },
  706. "lever": {
  707. "type": "string",
  708. "id": 8
  709. },
  710. "chg": {
  711. "type": "string",
  712. "id": 9
  713. },
  714. "last": {
  715. "type": "string",
  716. "id": 10
  717. },
  718. "cny": {
  719. "type": "string",
  720. "id": 11
  721. },
  722. "createtime": {
  723. "type": "string",
  724. "id": 12
  725. },
  726. "biztype": {
  727. "type": "string",
  728. "id": 13
  729. },
  730. "contracttype": {
  731. "type": "string",
  732. "id": 14
  733. },
  734. "liquidationdate": {
  735. "type": "int64",
  736. "id": 15
  737. },
  738. "movetime": {
  739. "type": "int64",
  740. "id": 16
  741. }
  742. }
  743. },
  744. "MarginCrossAssetVO": {
  745. "fields": {}
  746. },
  747. "MarginIsolatedAssetVO": {
  748. "fields": {}
  749. },
  750. "NewListingPair": {
  751. "fields": {}
  752. },
  753. "Chgdistributions": {
  754. "fields": {
  755. "upnum": {
  756. "type": "int64",
  757. "id": 1
  758. },
  759. "flatnum": {
  760. "type": "int64",
  761. "id": 2
  762. },
  763. "downnum": {
  764. "type": "int64",
  765. "id": 3
  766. },
  767. "list": {
  768. "rule": "repeated",
  769. "type": "DistributionPb",
  770. "id": 4
  771. }
  772. }
  773. },
  774. "DistributionPb": {
  775. "fields": {
  776. "name": {
  777. "type": "string",
  778. "id": 1
  779. },
  780. "chgType": {
  781. "type": "int32",
  782. "id": 2
  783. },
  784. "num": {
  785. "type": "int64",
  786. "id": 3
  787. }
  788. }
  789. },
  790. "MarketZones": {
  791. "fields": {}
  792. },
  793. "KlineOrders": {
  794. "fields": {}
  795. },
  796. "NotificationPush": {
  797. "fields": {
  798. "userid": {
  799. "type": "int32",
  800. "id": 1
  801. },
  802. "title": {
  803. "type": "string",
  804. "id": 2
  805. },
  806. "body": {
  807. "type": "string",
  808. "id": 3
  809. },
  810. "badge": {
  811. "type": "int32",
  812. "id": 4
  813. },
  814. "group": {
  815. "type": "string",
  816. "id": 5
  817. },
  818. "extrasMap": {
  819. "keyType": "string",
  820. "type": "string",
  821. "id": 6
  822. }
  823. }
  824. },
  825. "TradeHotListing": {
  826. "fields": {}
  827. },
  828. "CtcGoingOrderNum": {
  829. "fields": {
  830. "ordernum": {
  831. "type": "int32",
  832. "id": 1
  833. }
  834. }
  835. },
  836. "MultiChange": {
  837. "fields": {}
  838. },
  839. "Heatmap": {
  840. "fields": {}
  841. },
  842. "DownPair": {
  843. "fields": {}
  844. },
  845. "HeatVol": {
  846. "fields": {}
  847. },
  848. "CurrencyRate": {
  849. "fields": {}
  850. }
  851. }
  852. }
  853. }
  854. }
  855. }
  856. }
  857. }
  858. }