Advertisement
retesere20

recycled-saved-cxt-swagger-resp-1

Feb 17th, 2022
43
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.97 KB | None | 0 0
  1. ###### key ######
  2. get
  3. ###### value ######
  4. {
  5. tags: [
  6. "rest-api",
  7. ],
  8. summary: "accountInfo",
  9. description: "Get current account information",
  10. operationId: "accountUsingGET_1",
  11. produces: [
  12. "*/*",
  13. ],
  14. parameters: [{
  15. name: "recvWindow",
  16. in: "query",
  17. description: "recvWindow cannot be greater than 60000",
  18. required: false,
  19. type: "integer",
  20. default: 5000,
  21. format: "int64",
  22. allowEmptyValue: false,
  23. },
  24. {
  25. name: "timestamp",
  26. in: "query",
  27. description: "Timestamp in milliseconds",
  28. required: true,
  29. type: "integer",
  30. format: "int64",
  31. allowEmptyValue: false,
  32. },
  33. {
  34. name: "X-MBX-APIKEY",
  35. in: "header",
  36. description: "X-MBX-APIKEY",
  37. required: true,
  38. type: "string",
  39. },
  40. {
  41. name: "showZeroBalance",
  42. in: "query",
  43. description: "showZeroBalance",
  44. required: false,
  45. type: "boolean",
  46. },
  47. {
  48. name: "signature",
  49. in: "query",
  50. description: "signature",
  51. required: true,
  52. type: "string",
  53. },
  54. ],
  55. responses: {
  56. "200": {
  57. description: "Example: {
  58. "status": "OK",
  59. "correlationId": "2",
  60. "payload": {
  61. "makerCommission": 0.20,
  62. "takerCommission": 0.20,
  63. "buyerCommission": 0.20,
  64. "sellerCommission": 0.20,
  65. "canTrade": true,
  66. "canWithdraw": true,
  67. "canDeposit": true,
  68. "updateTime": 1586935521,
  69. "balances": [{
  70. "accountId": "2376104765040206",
  71. "collateralCurrency": true,
  72. "asset": "BYN",
  73. "free": 0.0,
  74. "locked": 0.0,
  75. "default": false
  76. },
  77. {
  78. "accountId": "2376109060084932",
  79. "collateralCurrency": true,
  80. "asset": "USD",
  81. "free": 515.59092523,
  82. "locked": 0.0,
  83. "default": true
  84. }
  85. ]
  86. }
  87.  
  88. }
  89. ",
  90. schema: {
  91. $ref: "#/definitions/AccountResponse",
  92. },
  93. },
  94. "401": {
  95. description: "Unauthorized",
  96. },
  97. "403": {
  98. description: "Forbidden",
  99. },
  100. "404": {
  101. description: "Not Found",
  102. },
  103. },
  104. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement