├── MEXC V1 contract.postman_collection.json ├── MEXC V2 spot.postman_collection.json ├── MEXC V3.postman_collection.json ├── README.md ├── README_CN.md ├── V1 MEXC GLOBAL contract.postman_environment.json ├── V2 MEXC GLOBAL spot.postman_environment.json ├── V3 MEXC GLOBAL.postman_environment.json └── assets ├── 1.png ├── 2.png ├── 3.png ├── 4.png └── 5.png /MEXC V1 contract.postman_collection.json: -------------------------------------------------------------------------------- 1 | { 2 | "info": { 3 | "_postman_id": "41d7fdb5-e229-4510-9ee9-e5162887ebd1", 4 | "name": "MEXC V1 contract", 5 | "schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json" 6 | }, 7 | "item": [ 8 | { 9 | "name": "Quote", 10 | "item": [ 11 | { 12 | "name": "Ping", 13 | "request": { 14 | "method": "GET", 15 | "header": [], 16 | "url": { 17 | "raw": "{{api_url}}/api/v1/contract/ping", 18 | "host": [ 19 | "{{api_url}}" 20 | ], 21 | "path": [ 22 | "api", 23 | "v1", 24 | "contract", 25 | "ping" 26 | ] 27 | } 28 | }, 29 | "response": [] 30 | }, 31 | { 32 | "name": "ContractDetail", 33 | "request": { 34 | "method": "GET", 35 | "header": [], 36 | "url": { 37 | "raw": "{{api_url}}/api/v1/contract/detail", 38 | "host": [ 39 | "{{api_url}}" 40 | ], 41 | "path": [ 42 | "api", 43 | "v1", 44 | "contract", 45 | "detail" 46 | ] 47 | } 48 | }, 49 | "response": [] 50 | }, 51 | { 52 | "name": "SupporCurrencies", 53 | "request": { 54 | "method": "GET", 55 | "header": [], 56 | "url": { 57 | "raw": "https://contract.mexc.com/api/v1/contract/support_currencies", 58 | "protocol": "https", 59 | "host": [ 60 | "contract", 61 | "mexc", 62 | "com" 63 | ], 64 | "path": [ 65 | "api", 66 | "v1", 67 | "contract", 68 | "support_currencies" 69 | ] 70 | } 71 | }, 72 | "response": [] 73 | }, 74 | { 75 | "name": "DepthBySymbol", 76 | "request": { 77 | "method": "GET", 78 | "header": [], 79 | "url": { 80 | "raw": "https://contract.mexc.com/api/v1/contract/support_currencies", 81 | "protocol": "https", 82 | "host": [ 83 | "contract", 84 | "mexc", 85 | "com" 86 | ], 87 | "path": [ 88 | "api", 89 | "v1", 90 | "contract", 91 | "support_currencies" 92 | ] 93 | } 94 | }, 95 | "response": [] 96 | }, 97 | { 98 | "name": "DepthcommitsBySymbol", 99 | "request": { 100 | "method": "GET", 101 | "header": [], 102 | "url": { 103 | "raw": "https://contract.mexc.com/api/v1/contract/depth_commits/BTC_USDT/20", 104 | "protocol": "https", 105 | "host": [ 106 | "contract", 107 | "mexc", 108 | "com" 109 | ], 110 | "path": [ 111 | "api", 112 | "v1", 113 | "contract", 114 | "depth_commits", 115 | "BTC_USDT", 116 | "20" 117 | ] 118 | } 119 | }, 120 | "response": [] 121 | }, 122 | { 123 | "name": "IndexPriceBySymbol", 124 | "request": { 125 | "method": "GET", 126 | "header": [], 127 | "url": { 128 | "raw": "https://contract.mexc.com/api/v1/contract/depth_commits/BTC_USDT/20", 129 | "protocol": "https", 130 | "host": [ 131 | "contract", 132 | "mexc", 133 | "com" 134 | ], 135 | "path": [ 136 | "api", 137 | "v1", 138 | "contract", 139 | "depth_commits", 140 | "BTC_USDT", 141 | "20" 142 | ] 143 | } 144 | }, 145 | "response": [] 146 | }, 147 | { 148 | "name": "FairPriceBySymbol", 149 | "request": { 150 | "method": "GET", 151 | "header": [], 152 | "url": { 153 | "raw": "https://contract.mexc.com/api/v1/contract/depth_commits/BTC_USDT/20", 154 | "protocol": "https", 155 | "host": [ 156 | "contract", 157 | "mexc", 158 | "com" 159 | ], 160 | "path": [ 161 | "api", 162 | "v1", 163 | "contract", 164 | "depth_commits", 165 | "BTC_USDT", 166 | "20" 167 | ] 168 | } 169 | }, 170 | "response": [] 171 | }, 172 | { 173 | "name": "FundingRateBySymbol", 174 | "request": { 175 | "method": "GET", 176 | "header": [], 177 | "url": { 178 | "raw": "https://contract.mexc.com/api/v1/contract/depth_commits/BTC_USDT/20", 179 | "protocol": "https", 180 | "host": [ 181 | "contract", 182 | "mexc", 183 | "com" 184 | ], 185 | "path": [ 186 | "api", 187 | "v1", 188 | "contract", 189 | "depth_commits", 190 | "BTC_USDT", 191 | "20" 192 | ] 193 | } 194 | }, 195 | "response": [] 196 | }, 197 | { 198 | "name": "KlineBySymbol", 199 | "request": { 200 | "method": "GET", 201 | "header": [], 202 | "url": { 203 | "raw": "https://contract.mexc.com/api/v1/contract/kline/BTC_USDT?interval=Min15&start=1609992674000&end=1652238485681", 204 | "protocol": "https", 205 | "host": [ 206 | "contract", 207 | "mexc", 208 | "com" 209 | ], 210 | "path": [ 211 | "api", 212 | "v1", 213 | "contract", 214 | "kline", 215 | "BTC_USDT" 216 | ], 217 | "query": [ 218 | { 219 | "key": "interval", 220 | "value": "Min15" 221 | }, 222 | { 223 | "key": "start", 224 | "value": "1609992674000" 225 | }, 226 | { 227 | "key": "end", 228 | "value": "1652238485681" 229 | } 230 | ] 231 | } 232 | }, 233 | "response": [] 234 | }, 235 | { 236 | "name": "IndexPriceKlineBySymbol", 237 | "request": { 238 | "method": "GET", 239 | "header": [], 240 | "url": { 241 | "raw": "https://contract.mexc.com/api/v1/contract/kline/index_price/BTC_USDT", 242 | "protocol": "https", 243 | "host": [ 244 | "contract", 245 | "mexc", 246 | "com" 247 | ], 248 | "path": [ 249 | "api", 250 | "v1", 251 | "contract", 252 | "kline", 253 | "index_price", 254 | "BTC_USDT" 255 | ], 256 | "query": [ 257 | { 258 | "key": "interval", 259 | "value": "Min15", 260 | "description": "Min1、Min5、Min15、Min30、Min60、Hour4、Hour8、Day1、Week1、Month1", 261 | "disabled": true 262 | }, 263 | { 264 | "key": "start", 265 | "value": "1609992674000", 266 | "disabled": true 267 | }, 268 | { 269 | "key": "end", 270 | "value": "1609992694000", 271 | "disabled": true 272 | } 273 | ] 274 | } 275 | }, 276 | "response": [] 277 | }, 278 | { 279 | "name": "FairPriceKlineBySymbol", 280 | "request": { 281 | "method": "GET", 282 | "header": [], 283 | "url": { 284 | "raw": "https://contract.mexc.com/api/v1/contract/kline/fair_price/BTC_USDT?interval=Min15&start=1609992674000&end=1609992694000", 285 | "protocol": "https", 286 | "host": [ 287 | "contract", 288 | "mexc", 289 | "com" 290 | ], 291 | "path": [ 292 | "api", 293 | "v1", 294 | "contract", 295 | "kline", 296 | "fair_price", 297 | "BTC_USDT" 298 | ], 299 | "query": [ 300 | { 301 | "key": "interval", 302 | "value": "Min15" 303 | }, 304 | { 305 | "key": "start", 306 | "value": "1609992674000" 307 | }, 308 | { 309 | "key": "end", 310 | "value": "1609992694000" 311 | } 312 | ] 313 | } 314 | }, 315 | "response": [] 316 | }, 317 | { 318 | "name": "DealsBySymbol", 319 | "request": { 320 | "method": "GET", 321 | "header": [], 322 | "url": { 323 | "raw": "https://contract.mexc.com/api/v1/contract/deals/BTC_USDT", 324 | "protocol": "https", 325 | "host": [ 326 | "contract", 327 | "mexc", 328 | "com" 329 | ], 330 | "path": [ 331 | "api", 332 | "v1", 333 | "contract", 334 | "deals", 335 | "BTC_USDT" 336 | ] 337 | } 338 | }, 339 | "response": [] 340 | }, 341 | { 342 | "name": "Ticker", 343 | "request": { 344 | "method": "GET", 345 | "header": [], 346 | "url": { 347 | "raw": "https://contract.mexc.com/api/v1/contract/ticker", 348 | "protocol": "https", 349 | "host": [ 350 | "contract", 351 | "mexc", 352 | "com" 353 | ], 354 | "path": [ 355 | "api", 356 | "v1", 357 | "contract", 358 | "ticker" 359 | ], 360 | "query": [ 361 | { 362 | "key": "symbol", 363 | "value": null, 364 | "disabled": true 365 | } 366 | ] 367 | } 368 | }, 369 | "response": [] 370 | }, 371 | { 372 | "name": "RiskReverse", 373 | "request": { 374 | "method": "GET", 375 | "header": [], 376 | "url": { 377 | "raw": "https://contract.mexc.com/api/v1/contract/risk_reverse", 378 | "protocol": "https", 379 | "host": [ 380 | "contract", 381 | "mexc", 382 | "com" 383 | ], 384 | "path": [ 385 | "api", 386 | "v1", 387 | "contract", 388 | "risk_reverse" 389 | ], 390 | "query": [ 391 | { 392 | "key": "symbol", 393 | "value": null, 394 | "disabled": true 395 | } 396 | ] 397 | } 398 | }, 399 | "response": [] 400 | }, 401 | { 402 | "name": "RiskReverseHistory", 403 | "request": { 404 | "method": "GET", 405 | "header": [], 406 | "url": { 407 | "raw": "https://contract.mexc.com/api/v1/contract/risk_reverse/history?symbol=BTC_USDT&page_num=1&page_size=20", 408 | "protocol": "https", 409 | "host": [ 410 | "contract", 411 | "mexc", 412 | "com" 413 | ], 414 | "path": [ 415 | "api", 416 | "v1", 417 | "contract", 418 | "risk_reverse", 419 | "history" 420 | ], 421 | "query": [ 422 | { 423 | "key": "symbol", 424 | "value": "BTC_USDT" 425 | }, 426 | { 427 | "key": "page_num", 428 | "value": "1" 429 | }, 430 | { 431 | "key": "page_size", 432 | "value": "20" 433 | } 434 | ] 435 | } 436 | }, 437 | "response": [] 438 | }, 439 | { 440 | "name": "FundingRateHistory", 441 | "request": { 442 | "method": "GET", 443 | "header": [], 444 | "url": { 445 | "raw": "{{api_url}}/api/v1/contract/funding_rate/history?symbol=BTC_USDT&page_num=1&page_size=20", 446 | "host": [ 447 | "{{api_url}}" 448 | ], 449 | "path": [ 450 | "api", 451 | "v1", 452 | "contract", 453 | "funding_rate", 454 | "history" 455 | ], 456 | "query": [ 457 | { 458 | "key": "symbol", 459 | "value": "BTC_USDT" 460 | }, 461 | { 462 | "key": "page_num", 463 | "value": "1" 464 | }, 465 | { 466 | "key": "page_size", 467 | "value": "20" 468 | } 469 | ] 470 | } 471 | }, 472 | "response": [] 473 | } 474 | ] 475 | }, 476 | { 477 | "name": "Accounts and Transactions", 478 | "item": [ 479 | { 480 | "name": "Assets", 481 | "request": { 482 | "method": "GET", 483 | "header": [], 484 | "url": { 485 | "raw": "https://contract.mexc.com/api/v1/private/account/assets", 486 | "protocol": "https", 487 | "host": [ 488 | "contract", 489 | "mexc", 490 | "com" 491 | ], 492 | "path": [ 493 | "api", 494 | "v1", 495 | "private", 496 | "account", 497 | "assets" 498 | ] 499 | } 500 | }, 501 | "response": [] 502 | }, 503 | { 504 | "name": "AssetByCurrency", 505 | "request": { 506 | "method": "GET", 507 | "header": [], 508 | "url": { 509 | "raw": "{{api_url}}/api/v1/private/account/asset/USDT", 510 | "host": [ 511 | "{{api_url}}" 512 | ], 513 | "path": [ 514 | "api", 515 | "v1", 516 | "private", 517 | "account", 518 | "asset", 519 | "USDT" 520 | ] 521 | } 522 | }, 523 | "response": [] 524 | }, 525 | { 526 | "name": "TransferRecord", 527 | "request": { 528 | "method": "GET", 529 | "header": [], 530 | "url": { 531 | "raw": "https://contract.mexc.com/api/v1/private/account/transfer_record?page_num=1&page_size=20", 532 | "protocol": "https", 533 | "host": [ 534 | "contract", 535 | "mexc", 536 | "com" 537 | ], 538 | "path": [ 539 | "api", 540 | "v1", 541 | "private", 542 | "account", 543 | "transfer_record" 544 | ], 545 | "query": [ 546 | { 547 | "key": "currency", 548 | "value": null, 549 | "disabled": true 550 | }, 551 | { 552 | "key": "state", 553 | "value": null, 554 | "disabled": true 555 | }, 556 | { 557 | "key": "type", 558 | "value": null, 559 | "disabled": true 560 | }, 561 | { 562 | "key": "page_num", 563 | "value": "1" 564 | }, 565 | { 566 | "key": "page_size", 567 | "value": "20" 568 | } 569 | ] 570 | } 571 | }, 572 | "response": [] 573 | }, 574 | { 575 | "name": "HistoryPositions", 576 | "request": { 577 | "method": "GET", 578 | "header": [], 579 | "url": { 580 | "raw": "https://contract.mexc.com/api/v1/private/position/list/history_positions?page_num=1&page_size=20", 581 | "protocol": "https", 582 | "host": [ 583 | "contract", 584 | "mexc", 585 | "com" 586 | ], 587 | "path": [ 588 | "api", 589 | "v1", 590 | "private", 591 | "position", 592 | "list", 593 | "history_positions" 594 | ], 595 | "query": [ 596 | { 597 | "key": "symbol", 598 | "value": "", 599 | "disabled": true 600 | }, 601 | { 602 | "key": "type", 603 | "value": "", 604 | "disabled": true 605 | }, 606 | { 607 | "key": "page_num", 608 | "value": "1" 609 | }, 610 | { 611 | "key": "page_size", 612 | "value": "20" 613 | } 614 | ] 615 | } 616 | }, 617 | "response": [] 618 | }, 619 | { 620 | "name": "OpenPositions", 621 | "request": { 622 | "method": "GET", 623 | "header": [], 624 | "url": { 625 | "raw": "https://contract.mexc.com/api/v1/private/position/list/history_positions", 626 | "protocol": "https", 627 | "host": [ 628 | "contract", 629 | "mexc", 630 | "com" 631 | ], 632 | "path": [ 633 | "api", 634 | "v1", 635 | "private", 636 | "position", 637 | "list", 638 | "history_positions" 639 | ], 640 | "query": [ 641 | { 642 | "key": "symbol", 643 | "value": "", 644 | "disabled": true 645 | } 646 | ] 647 | } 648 | }, 649 | "response": [] 650 | }, 651 | { 652 | "name": "FundingRecords", 653 | "request": { 654 | "method": "GET", 655 | "header": [], 656 | "url": { 657 | "raw": "https://contract.mexc.com/api/v1/private/position/list/history_positions", 658 | "protocol": "https", 659 | "host": [ 660 | "contract", 661 | "mexc", 662 | "com" 663 | ], 664 | "path": [ 665 | "api", 666 | "v1", 667 | "private", 668 | "position", 669 | "list", 670 | "history_positions" 671 | ], 672 | "query": [ 673 | { 674 | "key": "symbol", 675 | "value": "", 676 | "disabled": true 677 | } 678 | ] 679 | } 680 | }, 681 | "response": [] 682 | }, 683 | { 684 | "name": "OpenOrders", 685 | "request": { 686 | "method": "GET", 687 | "header": [], 688 | "url": { 689 | "raw": "https://contract.mexc.com/api/v1/private/order/list/open_orders/BTC_USDT?page_num=1&page_size=20", 690 | "protocol": "https", 691 | "host": [ 692 | "contract", 693 | "mexc", 694 | "com" 695 | ], 696 | "path": [ 697 | "api", 698 | "v1", 699 | "private", 700 | "order", 701 | "list", 702 | "open_orders", 703 | "BTC_USDT" 704 | ], 705 | "query": [ 706 | { 707 | "key": "page_num", 708 | "value": "1" 709 | }, 710 | { 711 | "key": "page_size", 712 | "value": "20" 713 | } 714 | ] 715 | } 716 | }, 717 | "response": [] 718 | }, 719 | { 720 | "name": "HistoryOrders", 721 | "request": { 722 | "method": "GET", 723 | "header": [], 724 | "url": { 725 | "raw": "https://contract.mexc.com/api/v1/private/order/list/history_orders?page_num=1&page_size=20&symbol=BTC_USDT", 726 | "protocol": "https", 727 | "host": [ 728 | "contract", 729 | "mexc", 730 | "com" 731 | ], 732 | "path": [ 733 | "api", 734 | "v1", 735 | "private", 736 | "order", 737 | "list", 738 | "history_orders" 739 | ], 740 | "query": [ 741 | { 742 | "key": "page_num", 743 | "value": "1" 744 | }, 745 | { 746 | "key": "page_size", 747 | "value": "20" 748 | }, 749 | { 750 | "key": "states", 751 | "value": "", 752 | "disabled": true 753 | }, 754 | { 755 | "key": "category", 756 | "value": "", 757 | "disabled": true 758 | }, 759 | { 760 | "key": "start_time", 761 | "value": "", 762 | "disabled": true 763 | }, 764 | { 765 | "key": "end_time", 766 | "value": "", 767 | "disabled": true 768 | }, 769 | { 770 | "key": "side", 771 | "value": "", 772 | "disabled": true 773 | }, 774 | { 775 | "key": "symbol", 776 | "value": "BTC_USDT" 777 | } 778 | ] 779 | } 780 | }, 781 | "response": [] 782 | }, 783 | { 784 | "name": "ExternalByExternalOid", 785 | "request": { 786 | "method": "GET", 787 | "header": [], 788 | "url": { 789 | "raw": "https://contract.mexc.com/api/v1/private/order/list/history_orders?page_num=1&page_size=20&symbol=BTC_USDT", 790 | "protocol": "https", 791 | "host": [ 792 | "contract", 793 | "mexc", 794 | "com" 795 | ], 796 | "path": [ 797 | "api", 798 | "v1", 799 | "private", 800 | "order", 801 | "list", 802 | "history_orders" 803 | ], 804 | "query": [ 805 | { 806 | "key": "page_num", 807 | "value": "1" 808 | }, 809 | { 810 | "key": "page_size", 811 | "value": "20" 812 | }, 813 | { 814 | "key": "states", 815 | "value": "", 816 | "disabled": true 817 | }, 818 | { 819 | "key": "category", 820 | "value": "", 821 | "disabled": true 822 | }, 823 | { 824 | "key": "start_time", 825 | "value": "", 826 | "disabled": true 827 | }, 828 | { 829 | "key": "end_time", 830 | "value": "", 831 | "disabled": true 832 | }, 833 | { 834 | "key": "side", 835 | "value": "", 836 | "disabled": true 837 | }, 838 | { 839 | "key": "symbol", 840 | "value": "BTC_USDT" 841 | } 842 | ] 843 | } 844 | }, 845 | "response": [] 846 | }, 847 | { 848 | "name": "QueryOrderById", 849 | "request": { 850 | "method": "GET", 851 | "header": [], 852 | "url": { 853 | "raw": "https://contract.mexc.com/api/v1/private/order/get/218699511659380224", 854 | "protocol": "https", 855 | "host": [ 856 | "contract", 857 | "mexc", 858 | "com" 859 | ], 860 | "path": [ 861 | "api", 862 | "v1", 863 | "private", 864 | "order", 865 | "get", 866 | "218699511659380224" 867 | ] 868 | } 869 | }, 870 | "response": [] 871 | }, 872 | { 873 | "name": "BatchQueryById", 874 | "request": { 875 | "method": "GET", 876 | "header": [], 877 | "url": { 878 | "raw": "https://contract.mexc.com/api/v1/private/order/batch_query?order_ids=1423534534", 879 | "protocol": "https", 880 | "host": [ 881 | "contract", 882 | "mexc", 883 | "com" 884 | ], 885 | "path": [ 886 | "api", 887 | "v1", 888 | "private", 889 | "order", 890 | "batch_query" 891 | ], 892 | "query": [ 893 | { 894 | "key": "order_ids", 895 | "value": "1423534534", 896 | "description": "order number array,can be separated by \",\" for example :order_ids = 1,2,3(maximum 50 orders):" 897 | } 898 | ] 899 | } 900 | }, 901 | "response": [] 902 | }, 903 | { 904 | "name": "DealDetails", 905 | "request": { 906 | "method": "GET", 907 | "header": [], 908 | "url": { 909 | "raw": "https://contract.mexc.com/api/v1/private/order/deal_details/2543756756876", 910 | "protocol": "https", 911 | "host": [ 912 | "contract", 913 | "mexc", 914 | "com" 915 | ], 916 | "path": [ 917 | "api", 918 | "v1", 919 | "private", 920 | "order", 921 | "deal_details", 922 | "2543756756876" 923 | ] 924 | } 925 | }, 926 | "response": [] 927 | }, 928 | { 929 | "name": "OrderDeals", 930 | "request": { 931 | "method": "GET", 932 | "header": [], 933 | "url": { 934 | "raw": "{{api_url}}/api/v1/private/order/list/order_deals?symbol=LUNA_USDT&page_num=1&page_size=20", 935 | "host": [ 936 | "{{api_url}}" 937 | ], 938 | "path": [ 939 | "api", 940 | "v1", 941 | "private", 942 | "order", 943 | "list", 944 | "order_deals" 945 | ], 946 | "query": [ 947 | { 948 | "key": "symbol", 949 | "value": "LUNA_USDT" 950 | }, 951 | { 952 | "key": "page_num", 953 | "value": "1" 954 | }, 955 | { 956 | "key": "page_size", 957 | "value": "20" 958 | }, 959 | { 960 | "key": "start_time", 961 | "value": "1", 962 | "disabled": true 963 | }, 964 | { 965 | "key": "end_time", 966 | "value": "100000", 967 | "disabled": true 968 | } 969 | ] 970 | } 971 | }, 972 | "response": [] 973 | }, 974 | { 975 | "name": "Planorder", 976 | "request": { 977 | "method": "GET", 978 | "header": [], 979 | "url": { 980 | "raw": "https://contract.mexc.com/api/v1/private/planorder/list/orders?page_num=1&page_size=20", 981 | "protocol": "https", 982 | "host": [ 983 | "contract", 984 | "mexc", 985 | "com" 986 | ], 987 | "path": [ 988 | "api", 989 | "v1", 990 | "private", 991 | "planorder", 992 | "list", 993 | "orders" 994 | ], 995 | "query": [ 996 | { 997 | "key": "symbol", 998 | "value": "", 999 | "disabled": true 1000 | }, 1001 | { 1002 | "key": "states", 1003 | "value": "", 1004 | "disabled": true 1005 | }, 1006 | { 1007 | "key": "start_time", 1008 | "value": "", 1009 | "disabled": true 1010 | }, 1011 | { 1012 | "key": "end_time", 1013 | "value": "", 1014 | "disabled": true 1015 | }, 1016 | { 1017 | "key": "page_num", 1018 | "value": "1" 1019 | }, 1020 | { 1021 | "key": "page_size", 1022 | "value": "20" 1023 | } 1024 | ] 1025 | } 1026 | }, 1027 | "response": [] 1028 | }, 1029 | { 1030 | "name": "Stoporder", 1031 | "request": { 1032 | "method": "GET", 1033 | "header": [], 1034 | "url": { 1035 | "raw": "https://contract.mexc.com/api/v1/private/stoporder/list/orders?page_num=1&page_size=20", 1036 | "protocol": "https", 1037 | "host": [ 1038 | "contract", 1039 | "mexc", 1040 | "com" 1041 | ], 1042 | "path": [ 1043 | "api", 1044 | "v1", 1045 | "private", 1046 | "stoporder", 1047 | "list", 1048 | "orders" 1049 | ], 1050 | "query": [ 1051 | { 1052 | "key": "symbol", 1053 | "value": "", 1054 | "disabled": true 1055 | }, 1056 | { 1057 | "key": "states", 1058 | "value": "", 1059 | "disabled": true 1060 | }, 1061 | { 1062 | "key": "start_time", 1063 | "value": "", 1064 | "disabled": true 1065 | }, 1066 | { 1067 | "key": "end_time", 1068 | "value": "", 1069 | "disabled": true 1070 | }, 1071 | { 1072 | "key": "page_num", 1073 | "value": "1" 1074 | }, 1075 | { 1076 | "key": "page_size", 1077 | "value": "20" 1078 | } 1079 | ] 1080 | } 1081 | }, 1082 | "response": [] 1083 | }, 1084 | { 1085 | "name": "RiskLimit", 1086 | "request": { 1087 | "method": "GET", 1088 | "header": [], 1089 | "url": { 1090 | "raw": "{{api_url}}/api/v1/private/account/risk_limit", 1091 | "host": [ 1092 | "{{api_url}}" 1093 | ], 1094 | "path": [ 1095 | "api", 1096 | "v1", 1097 | "private", 1098 | "account", 1099 | "risk_limit" 1100 | ] 1101 | } 1102 | }, 1103 | "response": [] 1104 | }, 1105 | { 1106 | "name": "TieredFeeRate", 1107 | "request": { 1108 | "method": "GET", 1109 | "header": [], 1110 | "url": { 1111 | "raw": "https://contract.mexc.com/api/v1/private/account/tiered_fee_rate?symbol=BTC_USDT", 1112 | "protocol": "https", 1113 | "host": [ 1114 | "contract", 1115 | "mexc", 1116 | "com" 1117 | ], 1118 | "path": [ 1119 | "api", 1120 | "v1", 1121 | "private", 1122 | "account", 1123 | "tiered_fee_rate" 1124 | ], 1125 | "query": [ 1126 | { 1127 | "key": "symbol", 1128 | "value": "BTC_USDT" 1129 | } 1130 | ] 1131 | } 1132 | }, 1133 | "response": [] 1134 | }, 1135 | { 1136 | "name": "ChangeMargin", 1137 | "request": { 1138 | "method": "POST", 1139 | "header": [], 1140 | "body": { 1141 | "mode": "raw", 1142 | "raw": "{ \"positionId\": 279313529050999808, \"amount\": 1, \"type\": \"ADD\"}" 1143 | }, 1144 | "url": { 1145 | "raw": "{{api_url}}/api/v1/private/position/change_margin?positionId=279313529050999808&amount=1&type=ADD", 1146 | "host": [ 1147 | "{{api_url}}" 1148 | ], 1149 | "path": [ 1150 | "api", 1151 | "v1", 1152 | "private", 1153 | "position", 1154 | "change_margin" 1155 | ], 1156 | "query": [ 1157 | { 1158 | "key": "positionId", 1159 | "value": "279313529050999808" 1160 | }, 1161 | { 1162 | "key": "amount", 1163 | "value": "1" 1164 | }, 1165 | { 1166 | "key": "type", 1167 | "value": "ADD", 1168 | "description": "type ,ADD: increase,SUB: decrease" 1169 | } 1170 | ] 1171 | } 1172 | }, 1173 | "response": [] 1174 | }, 1175 | { 1176 | "name": "Leverage", 1177 | "request": { 1178 | "method": "GET", 1179 | "header": [], 1180 | "url": { 1181 | "raw": "https://contract.mexc.com/api/v1/private/position/leverage?symbol=LUNA_USDT", 1182 | "protocol": "https", 1183 | "host": [ 1184 | "contract", 1185 | "mexc", 1186 | "com" 1187 | ], 1188 | "path": [ 1189 | "api", 1190 | "v1", 1191 | "private", 1192 | "position", 1193 | "leverage" 1194 | ], 1195 | "query": [ 1196 | { 1197 | "key": "symbol", 1198 | "value": "LUNA_USDT" 1199 | } 1200 | ] 1201 | } 1202 | }, 1203 | "response": [] 1204 | }, 1205 | { 1206 | "name": "ChangeLeverage", 1207 | "request": { 1208 | "method": "POST", 1209 | "header": [], 1210 | "body": { 1211 | "mode": "raw", 1212 | "raw": "{\"openType\": 1,\"leverage\": 20,\"symbol\": \"BTC_USDT\",\"positionType\": 1}" 1213 | }, 1214 | "url": { 1215 | "raw": "{{api_url}}/api/v1/private/position/change_leverage", 1216 | "host": [ 1217 | "{{api_url}}" 1218 | ], 1219 | "path": [ 1220 | "api", 1221 | "v1", 1222 | "private", 1223 | "position", 1224 | "change_leverage" 1225 | ] 1226 | } 1227 | }, 1228 | "response": [] 1229 | }, 1230 | { 1231 | "name": "PositionMode", 1232 | "request": { 1233 | "method": "GET", 1234 | "header": [], 1235 | "url": { 1236 | "raw": "{{api_url}}/api/v1/private/position/leverage?symbol=LUNA_USDT", 1237 | "host": [ 1238 | "{{api_url}}" 1239 | ], 1240 | "path": [ 1241 | "api", 1242 | "v1", 1243 | "private", 1244 | "position", 1245 | "leverage" 1246 | ], 1247 | "query": [ 1248 | { 1249 | "key": "symbol", 1250 | "value": "LUNA_USDT" 1251 | } 1252 | ] 1253 | } 1254 | }, 1255 | "response": [] 1256 | }, 1257 | { 1258 | "name": "ChangePositionMode", 1259 | "request": { 1260 | "method": "POST", 1261 | "header": [], 1262 | "body": { 1263 | "mode": "raw", 1264 | "raw": "{ \"positionMode\": 1 }" 1265 | }, 1266 | "url": { 1267 | "raw": "{{api_url}}/api/v1/private/position/change_position_mode", 1268 | "host": [ 1269 | "{{api_url}}" 1270 | ], 1271 | "path": [ 1272 | "api", 1273 | "v1", 1274 | "private", 1275 | "position", 1276 | "change_position_mode" 1277 | ] 1278 | } 1279 | }, 1280 | "response": [] 1281 | }, 1282 | { 1283 | "name": "PlaceNewOrder", 1284 | "protocolProfileBehavior": { 1285 | "tlsDisabledProtocols": [] 1286 | }, 1287 | "request": { 1288 | "method": "POST", 1289 | "header": [], 1290 | "body": { 1291 | "mode": "raw", 1292 | "raw": "{\"symbol\": \"DOGE_USDT\",\"price\": \"0.16\",\"vol\": 1,\"leverage\": 20,\"side\": 3,\"type\": 5,\"openType\": 1, \"positionMode\": 2}", 1293 | "options": { 1294 | "raw": { 1295 | "language": "json" 1296 | } 1297 | } 1298 | }, 1299 | "url": { 1300 | "raw": "{{api_url}}/api/v1/private/order/submit", 1301 | "host": [ 1302 | "{{api_url}}" 1303 | ], 1304 | "path": [ 1305 | "api", 1306 | "v1", 1307 | "private", 1308 | "order", 1309 | "submit" 1310 | ] 1311 | } 1312 | }, 1313 | "response": [] 1314 | }, 1315 | { 1316 | "name": "PlaceNewOrderBatch", 1317 | "protocolProfileBehavior": { 1318 | "tlsDisabledProtocols": [] 1319 | }, 1320 | "request": { 1321 | "method": "POST", 1322 | "header": [], 1323 | "body": { 1324 | "mode": "raw", 1325 | "raw": "[\n {\n \"symbol\": \"BTC_USD\",\n \"price\": 8800,\n \"vol\": 100,\n \"leverage\": 20,\n \"side\": 1,\n \"type\": 1,\n \"openType\": 1,\n \"externalOid\": \"order1\"\n },\n {\n \"symbol\": \"BTC_USD\",\n \"price\": 500,\n \"vol\": 100,\n \"leverage\": 50,\n \"side\": 3,\n \"type\": 1,\n \"openType\": 1,\n \"externalOid\": \"order2\"\n }\n]", 1326 | "options": { 1327 | "raw": { 1328 | "language": "json" 1329 | } 1330 | } 1331 | }, 1332 | "url": { 1333 | "raw": "{{api_url}}/api/v1/private/order/submit", 1334 | "host": [ 1335 | "{{api_url}}" 1336 | ], 1337 | "path": [ 1338 | "api", 1339 | "v1", 1340 | "private", 1341 | "order", 1342 | "submit" 1343 | ] 1344 | } 1345 | }, 1346 | "response": [] 1347 | }, 1348 | { 1349 | "name": "CancelOrderById", 1350 | "request": { 1351 | "method": "POST", 1352 | "header": [], 1353 | "body": { 1354 | "mode": "raw", 1355 | "raw": "[ 218699511659380224 ]", 1356 | "options": { 1357 | "raw": { 1358 | "language": "json" 1359 | } 1360 | } 1361 | }, 1362 | "url": { 1363 | "raw": "{{api_url}}/api/v1/private/order/cancel", 1364 | "host": [ 1365 | "{{api_url}}" 1366 | ], 1367 | "path": [ 1368 | "api", 1369 | "v1", 1370 | "private", 1371 | "order", 1372 | "cancel" 1373 | ] 1374 | } 1375 | }, 1376 | "response": [] 1377 | }, 1378 | { 1379 | "name": "CancelWithExternal", 1380 | "request": { 1381 | "method": "POST", 1382 | "header": [], 1383 | "body": { 1384 | "mode": "raw", 1385 | "raw": "{\"symbol\": \"DOGE_USDT\",\"externalOid\": \"218699511659380224\"}", 1386 | "options": { 1387 | "raw": { 1388 | "language": "json" 1389 | } 1390 | } 1391 | }, 1392 | "url": { 1393 | "raw": "{{api_url}}/api/v1/private/order/cancel_with_external", 1394 | "host": [ 1395 | "{{api_url}}" 1396 | ], 1397 | "path": [ 1398 | "api", 1399 | "v1", 1400 | "private", 1401 | "order", 1402 | "cancel_with_external" 1403 | ] 1404 | } 1405 | }, 1406 | "response": [] 1407 | }, 1408 | { 1409 | "name": "CancelAll", 1410 | "request": { 1411 | "method": "POST", 1412 | "header": [], 1413 | "body": { 1414 | "mode": "raw", 1415 | "raw": "{\"symbol\": \"DOGE_USDT\"}", 1416 | "options": { 1417 | "raw": { 1418 | "language": "json" 1419 | } 1420 | } 1421 | }, 1422 | "url": { 1423 | "raw": "{{api_url}}/api/v1/private/order/cancel_all", 1424 | "host": [ 1425 | "{{api_url}}" 1426 | ], 1427 | "path": [ 1428 | "api", 1429 | "v1", 1430 | "private", 1431 | "order", 1432 | "cancel_all" 1433 | ] 1434 | } 1435 | }, 1436 | "response": [] 1437 | }, 1438 | { 1439 | "name": "PlacePlanOrder", 1440 | "request": { 1441 | "method": "POST", 1442 | "header": [], 1443 | "body": { 1444 | "mode": "raw", 1445 | "raw": "{\"symbol\":\"DOGE_USDT\",\"price\":\"0.06\",\"vol\":1,\"leverage\":20,\"side\":1,\"openType\":1,\"triggerPrice\":0.06,\"triggerType\":2,\"executeCycle\":1,\"orderType\":5,\"trend\":1}", 1446 | "options": { 1447 | "raw": { 1448 | "language": "json" 1449 | } 1450 | } 1451 | }, 1452 | "url": { 1453 | "raw": "{{api_url}}/api/v1/private/planorder/place", 1454 | "host": [ 1455 | "{{api_url}}" 1456 | ], 1457 | "path": [ 1458 | "api", 1459 | "v1", 1460 | "private", 1461 | "planorder", 1462 | "place" 1463 | ] 1464 | } 1465 | }, 1466 | "response": [] 1467 | }, 1468 | { 1469 | "name": "CancelPlanOrder", 1470 | "request": { 1471 | "method": "POST", 1472 | "header": [], 1473 | "body": { 1474 | "mode": "raw", 1475 | "raw": "[281077101510558208]", 1476 | "options": { 1477 | "raw": { 1478 | "language": "json" 1479 | } 1480 | } 1481 | }, 1482 | "url": { 1483 | "raw": "{{api_url}}/api/v1/private/planorder/cancel", 1484 | "host": [ 1485 | "{{api_url}}" 1486 | ], 1487 | "path": [ 1488 | "api", 1489 | "v1", 1490 | "private", 1491 | "planorder", 1492 | "cancel" 1493 | ] 1494 | } 1495 | }, 1496 | "response": [] 1497 | }, 1498 | { 1499 | "name": "CancelAllPlanOrder", 1500 | "request": { 1501 | "method": "POST", 1502 | "header": [], 1503 | "body": { 1504 | "mode": "raw", 1505 | "raw": "{\"symbol\": \"BTC_USDT\"}", 1506 | "options": { 1507 | "raw": { 1508 | "language": "json" 1509 | } 1510 | } 1511 | }, 1512 | "url": { 1513 | "raw": "{{api_url}}/api/v1/private/planorder/cancel_all", 1514 | "host": [ 1515 | "{{api_url}}" 1516 | ], 1517 | "path": [ 1518 | "api", 1519 | "v1", 1520 | "private", 1521 | "planorder", 1522 | "cancel_all" 1523 | ] 1524 | } 1525 | }, 1526 | "response": [] 1527 | }, 1528 | { 1529 | "name": "CancelStopOrder", 1530 | "request": { 1531 | "method": "POST", 1532 | "header": [], 1533 | "body": { 1534 | "mode": "raw", 1535 | "raw": "[{\"stopPlanOrderId\": \"281077101510558208\"}]", 1536 | "options": { 1537 | "raw": { 1538 | "language": "json" 1539 | } 1540 | } 1541 | }, 1542 | "url": { 1543 | "raw": "{{api_url}}/api/v1/private/stoporder/cancel", 1544 | "host": [ 1545 | "{{api_url}}" 1546 | ], 1547 | "path": [ 1548 | "api", 1549 | "v1", 1550 | "private", 1551 | "stoporder", 1552 | "cancel" 1553 | ], 1554 | "query": [ 1555 | { 1556 | "key": "", 1557 | "value": "", 1558 | "disabled": true 1559 | } 1560 | ] 1561 | } 1562 | }, 1563 | "response": [] 1564 | }, 1565 | { 1566 | "name": "CancelAllStopOrder", 1567 | "request": { 1568 | "method": "POST", 1569 | "header": [], 1570 | "body": { 1571 | "mode": "raw", 1572 | "raw": "", 1573 | "options": { 1574 | "raw": { 1575 | "language": "json" 1576 | } 1577 | } 1578 | }, 1579 | "url": { 1580 | "raw": "{{api_url}}/api/v1/private/stoporder/cancel_all", 1581 | "host": [ 1582 | "{{api_url}}" 1583 | ], 1584 | "path": [ 1585 | "api", 1586 | "v1", 1587 | "private", 1588 | "stoporder", 1589 | "cancel_all" 1590 | ] 1591 | } 1592 | }, 1593 | "response": [] 1594 | }, 1595 | { 1596 | "name": "StoporderChangePrice", 1597 | "request": { 1598 | "method": "POST", 1599 | "header": [], 1600 | "body": { 1601 | "mode": "raw", 1602 | "raw": "{\"orderId\":\"279995533824136192\",\"stopLossPrice\":\"0.04\",\"takeProfitPrice\":\"0.1\"}", 1603 | "options": { 1604 | "raw": { 1605 | "language": "json" 1606 | } 1607 | } 1608 | }, 1609 | "url": { 1610 | "raw": "{{api_url}}/api/v1/private/stoporder/change_price", 1611 | "host": [ 1612 | "{{api_url}}" 1613 | ], 1614 | "path": [ 1615 | "api", 1616 | "v1", 1617 | "private", 1618 | "stoporder", 1619 | "change_price" 1620 | ] 1621 | } 1622 | }, 1623 | "response": [] 1624 | }, 1625 | { 1626 | "name": "StopOrderChangePlanPrice", 1627 | "request": { 1628 | "method": "POST", 1629 | "header": [], 1630 | "body": { 1631 | "mode": "raw", 1632 | "raw": "{\"stopPlanOrderId\":\"279995533824136192\",\"stopLossPrice\":\"0.02\"}", 1633 | "options": { 1634 | "raw": { 1635 | "language": "json" 1636 | } 1637 | } 1638 | }, 1639 | "url": { 1640 | "raw": "{{api_url}}/api/v1/private/stoporder/change_plan_price", 1641 | "host": [ 1642 | "{{api_url}}" 1643 | ], 1644 | "path": [ 1645 | "api", 1646 | "v1", 1647 | "private", 1648 | "stoporder", 1649 | "change_plan_price" 1650 | ] 1651 | } 1652 | }, 1653 | "response": [] 1654 | } 1655 | ] 1656 | } 1657 | ], 1658 | "event": [ 1659 | { 1660 | "listen": "prerequest", 1661 | "script": { 1662 | "type": "text/javascript", 1663 | "exec": [ 1664 | "const ApiKey = pm.environment.get(\"api_key\");;", 1665 | "const ApiSec = pm.environment.get(\"api_secret\");;", 1666 | "const stemp = new Date().getTime().toString()", 1667 | "const method = pm.request.method;", 1668 | "let objectString = ApiKey + stemp", 1669 | "let params = {}", 1670 | "if (method === 'POST') {", 1671 | " objectString += pm.request.body.raw;", 1672 | "} else {", 1673 | " params = pm.request.url.query;", 1674 | " ", 1675 | " // objectString += params.map((key) => {", 1676 | " // console.log(`key->`,!!params[key] == true );", 1677 | "", 1678 | " // return !key.disabled ? `${key}=${encodeURIComponent(params[key])}`:'';", 1679 | " // }).join('&');", 1680 | "", 1681 | " // for(var i in params){", 1682 | " // console.log( params[i].key+params[i].value);", 1683 | " // console.log(params[i].value != '');", 1684 | "", 1685 | " // }", 1686 | "", 1687 | " objectString += params;", 1688 | "}", 1689 | "", 1690 | "console.log(`objectString: ${objectString}`);", 1691 | "", 1692 | "", 1693 | "", 1694 | "const sign = CryptoJS.enc.Hex.stringify(CryptoJS.HmacSHA256(objectString, ApiSec))", 1695 | "", 1696 | "console.log(`Request-Time: ${stemp}`)", 1697 | "console.log(`ApiKey: ${ApiKey}`)", 1698 | "console.log(`Content-Type: application/json`)", 1699 | "console.log(objectString)", 1700 | "console.log(`Signature: ${sign}`)", 1701 | "pm.request.headers.add({", 1702 | " key: 'Request-Time',", 1703 | " value: stemp", 1704 | "});", 1705 | "", 1706 | "pm.request.headers.add({", 1707 | " key: 'ApiKey',", 1708 | " value: ApiKey", 1709 | "});", 1710 | "", 1711 | "pm.request.headers.add({", 1712 | " key: 'Content-Type',", 1713 | " value: 'application/json'", 1714 | "});", 1715 | "", 1716 | "pm.request.headers.add({", 1717 | " key: 'Signature',", 1718 | " value: sign", 1719 | "});", 1720 | "" 1721 | ] 1722 | } 1723 | }, 1724 | { 1725 | "listen": "test", 1726 | "script": { 1727 | "type": "text/javascript", 1728 | "exec": [ 1729 | "" 1730 | ] 1731 | } 1732 | } 1733 | ] 1734 | } -------------------------------------------------------------------------------- /MEXC V2 spot.postman_collection.json: -------------------------------------------------------------------------------- 1 | { 2 | "info": { 3 | "_postman_id": "5126ceea-b781-4249-be91-b2367c8b6aa1", 4 | "name": "MEXC V2 spot", 5 | "schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json" 6 | }, 7 | "item": [ 8 | { 9 | "name": "BaseInfo", 10 | "item": [ 11 | { 12 | "name": "symbols", 13 | "event": [ 14 | { 15 | "listen": "prerequest", 16 | "script": { 17 | "exec": [ 18 | "" 19 | ], 20 | "type": "text/javascript" 21 | } 22 | } 23 | ], 24 | "protocolProfileBehavior": { 25 | "disableBodyPruning": true 26 | }, 27 | "request": { 28 | "method": "GET", 29 | "header": [ 30 | { 31 | "key": "Content-Type", 32 | "value": "application/json", 33 | "type": "text" 34 | }, 35 | { 36 | "key": "ApiKey", 37 | "value": "mx0ym92ZBe3t2Bk05e", 38 | "type": "text", 39 | "disabled": true 40 | }, 41 | { 42 | "key": "Request-Time", 43 | "value": "{{timestamp}}", 44 | "type": "text", 45 | "disabled": true 46 | }, 47 | { 48 | "key": "Signature", 49 | "value": "{{sign}}", 50 | "type": "text", 51 | "disabled": true 52 | }, 53 | { 54 | "key": "Recv-Window", 55 | "value": "20", 56 | "type": "text", 57 | "disabled": true 58 | } 59 | ], 60 | "body": { 61 | "mode": "raw", 62 | "raw": "" 63 | }, 64 | "url": { 65 | "raw": "{{api_url}}/open/api/v2/market/symbols?symbol=CROGE_USDT", 66 | "host": [ 67 | "{{api_url}}" 68 | ], 69 | "path": [ 70 | "open", 71 | "api", 72 | "v2", 73 | "market", 74 | "symbols" 75 | ], 76 | "query": [ 77 | { 78 | "key": "symbol", 79 | "value": "CROGE_USDT" 80 | } 81 | ] 82 | } 83 | }, 84 | "response": [] 85 | }, 86 | { 87 | "name": "servertime", 88 | "request": { 89 | "method": "GET", 90 | "header": [], 91 | "url": { 92 | "raw": "{{api_url}}/open/api/v2/common/timestamp", 93 | "host": [ 94 | "{{api_url}}" 95 | ], 96 | "path": [ 97 | "open", 98 | "api", 99 | "v2", 100 | "common", 101 | "timestamp" 102 | ] 103 | } 104 | }, 105 | "response": [] 106 | }, 107 | { 108 | "name": "ping", 109 | "request": { 110 | "method": "GET", 111 | "header": [], 112 | "url": { 113 | "raw": "{{api_url}}open/api/v2/common/ping", 114 | "host": [ 115 | "{{api_url}}open" 116 | ], 117 | "path": [ 118 | "api", 119 | "v2", 120 | "common", 121 | "ping" 122 | ] 123 | } 124 | }, 125 | "response": [] 126 | }, 127 | { 128 | "name": "api_default_symbols", 129 | "request": { 130 | "method": "GET", 131 | "header": [], 132 | "url": { 133 | "raw": "{{api_url}}/open/api/v2/market/api_default_symbols", 134 | "host": [ 135 | "{{api_url}}" 136 | ], 137 | "path": [ 138 | "open", 139 | "api", 140 | "v2", 141 | "market", 142 | "api_default_symbols" 143 | ] 144 | } 145 | }, 146 | "response": [] 147 | } 148 | ] 149 | }, 150 | { 151 | "name": "Market", 152 | "item": [ 153 | { 154 | "name": "Ticker", 155 | "request": { 156 | "method": "GET", 157 | "header": [], 158 | "url": { 159 | "raw": "{{api_url}}/open/api/v2/market/ticker", 160 | "host": [ 161 | "{{api_url}}" 162 | ], 163 | "path": [ 164 | "open", 165 | "api", 166 | "v2", 167 | "market", 168 | "ticker" 169 | ], 170 | "query": [ 171 | { 172 | "key": "symbol", 173 | "value": "BTC_USDT", 174 | "disabled": true 175 | } 176 | ] 177 | } 178 | }, 179 | "response": [] 180 | }, 181 | { 182 | "name": "Depth", 183 | "request": { 184 | "method": "GET", 185 | "header": [], 186 | "url": { 187 | "raw": "{{api_url}}/open/api/v2/market/depth?symbol=MX_USDT&depth=5", 188 | "host": [ 189 | "{{api_url}}" 190 | ], 191 | "path": [ 192 | "open", 193 | "api", 194 | "v2", 195 | "market", 196 | "depth" 197 | ], 198 | "query": [ 199 | { 200 | "key": "symbol", 201 | "value": "MX_USDT" 202 | }, 203 | { 204 | "key": "depth", 205 | "value": "5" 206 | } 207 | ] 208 | } 209 | }, 210 | "response": [] 211 | }, 212 | { 213 | "name": "Deals", 214 | "request": { 215 | "method": "GET", 216 | "header": [], 217 | "url": { 218 | "raw": "{{api_url}}/open/api/v2/market/deals?symbol=BTC_USDT&limit=100", 219 | "host": [ 220 | "{{api_url}}" 221 | ], 222 | "path": [ 223 | "open", 224 | "api", 225 | "v2", 226 | "market", 227 | "deals" 228 | ], 229 | "query": [ 230 | { 231 | "key": "symbol", 232 | "value": "BTC_USDT" 233 | }, 234 | { 235 | "key": "limit", 236 | "value": "100" 237 | } 238 | ] 239 | } 240 | }, 241 | "response": [] 242 | }, 243 | { 244 | "name": "Kline", 245 | "request": { 246 | "method": "GET", 247 | "header": [], 248 | "url": { 249 | "raw": "{{api_url}}/open/api/v2/market/kline?symbol=BTC_USDT&interval=60m&start=1648939318841&end=1649479318841", 250 | "host": [ 251 | "{{api_url}}" 252 | ], 253 | "path": [ 254 | "open", 255 | "api", 256 | "v2", 257 | "market", 258 | "kline" 259 | ], 260 | "query": [ 261 | { 262 | "key": "symbol", 263 | "value": "BTC_USDT" 264 | }, 265 | { 266 | "key": "interval", 267 | "value": "60m" 268 | }, 269 | { 270 | "key": "start", 271 | "value": "1648939318841" 272 | }, 273 | { 274 | "key": "end", 275 | "value": "1649479318841" 276 | } 277 | ] 278 | } 279 | }, 280 | "response": [] 281 | }, 282 | { 283 | "name": "CoinList", 284 | "protocolProfileBehavior": { 285 | "strictSSL": true 286 | }, 287 | "request": { 288 | "method": "GET", 289 | "header": [], 290 | "url": { 291 | "raw": "{{url}}/open/api/v2/market/coin/list", 292 | "host": [ 293 | "{{url}}" 294 | ], 295 | "path": [ 296 | "open", 297 | "api", 298 | "v2", 299 | "market", 300 | "coin", 301 | "list" 302 | ], 303 | "query": [ 304 | { 305 | "key": "currency", 306 | "value": "MX", 307 | "disabled": true 308 | } 309 | ] 310 | } 311 | }, 312 | "response": [] 313 | } 314 | ] 315 | }, 316 | { 317 | "name": "AccountInfo", 318 | "item": [ 319 | { 320 | "name": "account", 321 | "request": { 322 | "method": "GET", 323 | "header": [], 324 | "url": { 325 | "raw": "{{api_url}}/open/api/v2/account/info", 326 | "host": [ 327 | "{{api_url}}" 328 | ], 329 | "path": [ 330 | "open", 331 | "api", 332 | "v2", 333 | "account", 334 | "info" 335 | ] 336 | } 337 | }, 338 | "response": [] 339 | }, 340 | { 341 | "name": "ApiSymbols", 342 | "request": { 343 | "method": "GET", 344 | "header": [], 345 | "url": { 346 | "raw": "{{api_url}}/open/api/v2/market/api_symbols", 347 | "host": [ 348 | "{{api_url}}" 349 | ], 350 | "path": [ 351 | "open", 352 | "api", 353 | "v2", 354 | "market", 355 | "api_symbols" 356 | ] 357 | } 358 | }, 359 | "response": [] 360 | }, 361 | { 362 | "name": "accountTransfer", 363 | "request": { 364 | "method": "POST", 365 | "header": [], 366 | "body": { 367 | "mode": "raw", 368 | "raw": "{\"sub_uid\": \"84888462\",\"currency\": \"USDT\",\"amount\": \"100\",\"type\": \"OUT\"}", 369 | "options": { 370 | "raw": { 371 | "language": "json" 372 | } 373 | } 374 | }, 375 | "url": { 376 | "raw": "{{api_url}}/open/api/v2/asset/account/transfer", 377 | "host": [ 378 | "{{api_url}}" 379 | ], 380 | "path": [ 381 | "open", 382 | "api", 383 | "v2", 384 | "asset", 385 | "account", 386 | "transfer" 387 | ] 388 | } 389 | }, 390 | "response": [] 391 | }, 392 | { 393 | "name": "Subaccount", 394 | "request": { 395 | "method": "GET", 396 | "header": [], 397 | "url": { 398 | "raw": "{{api_url}}/open/api/v2/account/sub-account/list", 399 | "host": [ 400 | "{{api_url}}" 401 | ], 402 | "path": [ 403 | "open", 404 | "api", 405 | "v2", 406 | "account", 407 | "sub-account", 408 | "list" 409 | ] 410 | } 411 | }, 412 | "response": [] 413 | }, 414 | { 415 | "name": "subaccountRecord", 416 | "request": { 417 | "method": "GET", 418 | "header": [], 419 | "url": { 420 | "raw": "{{api_url}}/open/api/v2/asset/account/transfer/record", 421 | "host": [ 422 | "{{api_url}}" 423 | ], 424 | "path": [ 425 | "open", 426 | "api", 427 | "v2", 428 | "asset", 429 | "account", 430 | "transfer", 431 | "record" 432 | ], 433 | "query": [ 434 | { 435 | "key": "transact_id", 436 | "value": "96ee5219c2ff4bcda4e5fa8353d6c43f", 437 | "disabled": true 438 | } 439 | ] 440 | } 441 | }, 442 | "response": [] 443 | } 444 | ] 445 | }, 446 | { 447 | "name": "Trade", 448 | "item": [ 449 | { 450 | "name": "PlaceOrder", 451 | "event": [ 452 | { 453 | "listen": "prerequest", 454 | "script": { 455 | "exec": [ 456 | "" 457 | ], 458 | "type": "text/javascript" 459 | } 460 | }, 461 | { 462 | "listen": "test", 463 | "script": { 464 | "exec": [ 465 | "console.log(pm.request)" 466 | ], 467 | "type": "text/javascript" 468 | } 469 | } 470 | ], 471 | "protocolProfileBehavior": { 472 | "tlsDisabledProtocols": [] 473 | }, 474 | "request": { 475 | "method": "POST", 476 | "header": [], 477 | "body": { 478 | "mode": "raw", 479 | "raw": "{\"order_type\": \"LIMIT_ORDER\",\"price\": \"0.0005\",\"quantity\": \"10000\",\"symbol\": \"CHAMP_USDT\",\"trade_type\": \"BID\"}", 480 | "options": { 481 | "raw": { 482 | "language": "json" 483 | } 484 | } 485 | }, 486 | "url": { 487 | "raw": "{{api_url}}/open/api/v2/order/place", 488 | "host": [ 489 | "{{api_url}}" 490 | ], 491 | "path": [ 492 | "open", 493 | "api", 494 | "v2", 495 | "order", 496 | "place" 497 | ], 498 | "query": [ 499 | { 500 | "key": "client_order_id", 501 | "value": "", 502 | "disabled": true 503 | } 504 | ] 505 | } 506 | }, 507 | "response": [] 508 | }, 509 | { 510 | "name": "CancelOrder", 511 | "request": { 512 | "method": "DELETE", 513 | "header": [], 514 | "body": { 515 | "mode": "raw", 516 | "raw": "", 517 | "options": { 518 | "raw": { 519 | "language": "json" 520 | } 521 | } 522 | }, 523 | "url": { 524 | "raw": "{{api_url}}/open/api/v2/order/cancel?order_ids=648e97f3b1b545e69d3e81e173e6edda", 525 | "host": [ 526 | "{{api_url}}" 527 | ], 528 | "path": [ 529 | "open", 530 | "api", 531 | "v2", 532 | "order", 533 | "cancel" 534 | ], 535 | "query": [ 536 | { 537 | "key": "order_ids", 538 | "value": "648e97f3b1b545e69d3e81e173e6edda" 539 | } 540 | ] 541 | } 542 | }, 543 | "response": [] 544 | }, 545 | { 546 | "name": "MuiltPlaceOrder", 547 | "request": { 548 | "method": "POST", 549 | "header": [], 550 | "body": { 551 | "mode": "raw", 552 | "raw": "[{\"order_type\": \"LIMIT_ORDER\",\"price\": \"4000\",\"quantity\": \"0.0002\",\"symbol\": \"BTC_USDT\",\"trade_type\": \"BID\"},{\"order_type\": \"LIMIT_ORDER\",\"price\": \"4000\",\"quantity\": \"0.0002\",\"symbol\": \"BTC_USDT\",\"trade_type\": \"BID\"}]", 553 | "options": { 554 | "raw": { 555 | "language": "json" 556 | } 557 | } 558 | }, 559 | "url": { 560 | "raw": "{{api_url}}/open/api/v2/order/place_batch", 561 | "host": [ 562 | "{{api_url}}" 563 | ], 564 | "path": [ 565 | "open", 566 | "api", 567 | "v2", 568 | "order", 569 | "place_batch" 570 | ] 571 | } 572 | }, 573 | "response": [] 574 | }, 575 | { 576 | "name": "GetOpenOrder", 577 | "request": { 578 | "method": "GET", 579 | "header": [], 580 | "url": { 581 | "raw": "{{api_url}}open/api/v2/order/open_orders?symbol=GAL3S_USDT", 582 | "host": [ 583 | "{{api_url}}open" 584 | ], 585 | "path": [ 586 | "api", 587 | "v2", 588 | "order", 589 | "open_orders" 590 | ], 591 | "query": [ 592 | { 593 | "key": "symbol", 594 | "value": "GAL3S_USDT" 595 | } 596 | ] 597 | } 598 | }, 599 | "response": [] 600 | }, 601 | { 602 | "name": "GetAllOrder", 603 | "request": { 604 | "method": "GET", 605 | "header": [], 606 | "url": { 607 | "raw": "{{api_url}}/open/api/v2/order/list?states=NEW&symbol=BTC_USDT&trade_type=BID", 608 | "host": [ 609 | "{{api_url}}" 610 | ], 611 | "path": [ 612 | "open", 613 | "api", 614 | "v2", 615 | "order", 616 | "list" 617 | ], 618 | "query": [ 619 | { 620 | "key": "states", 621 | "value": "NEW" 622 | }, 623 | { 624 | "key": "symbol", 625 | "value": "BTC_USDT" 626 | }, 627 | { 628 | "key": "trade_type", 629 | "value": "BID" 630 | } 631 | ] 632 | } 633 | }, 634 | "response": [] 635 | }, 636 | { 637 | "name": "QueryOrderById", 638 | "request": { 639 | "method": "GET", 640 | "header": [], 641 | "url": { 642 | "raw": "{{api_url}}/open/api/v2/order/query?order_ids=dae8c04c55934224ac950ab5610ba05d", 643 | "host": [ 644 | "{{api_url}}" 645 | ], 646 | "path": [ 647 | "open", 648 | "api", 649 | "v2", 650 | "order", 651 | "query" 652 | ], 653 | "query": [ 654 | { 655 | "key": "order_ids", 656 | "value": "dae8c04c55934224ac950ab5610ba05d" 657 | } 658 | ] 659 | } 660 | }, 661 | "response": [] 662 | }, 663 | { 664 | "name": "GetOrderDeal", 665 | "request": { 666 | "method": "GET", 667 | "header": [], 668 | "url": { 669 | "raw": "{{api_url}}/open/api/v2/order/deals?limit=1000&start_time=1635841039001&symbol=MX_USDT", 670 | "host": [ 671 | "{{api_url}}" 672 | ], 673 | "path": [ 674 | "open", 675 | "api", 676 | "v2", 677 | "order", 678 | "deals" 679 | ], 680 | "query": [ 681 | { 682 | "key": "limit", 683 | "value": "1000" 684 | }, 685 | { 686 | "key": "start_time", 687 | "value": "1635841039001" 688 | }, 689 | { 690 | "key": "symbol", 691 | "value": "MX_USDT" 692 | } 693 | ] 694 | } 695 | }, 696 | "response": [] 697 | }, 698 | { 699 | "name": "QueryOrderDealById", 700 | "request": { 701 | "method": "GET", 702 | "header": [], 703 | "url": { 704 | "raw": "{{api_url}}/open/api/v2/order/deal_detail?order_id=a78d132ba8164d7f9d7e3de6c515c9c3", 705 | "host": [ 706 | "{{api_url}}" 707 | ], 708 | "path": [ 709 | "open", 710 | "api", 711 | "v2", 712 | "order", 713 | "deal_detail" 714 | ], 715 | "query": [ 716 | { 717 | "key": "order_id", 718 | "value": "a78d132ba8164d7f9d7e3de6c515c9c3" 719 | } 720 | ] 721 | } 722 | }, 723 | "response": [] 724 | }, 725 | { 726 | "name": "CancelBySymbol", 727 | "request": { 728 | "method": "DELETE", 729 | "header": [], 730 | "url": { 731 | "raw": "{{api_url}}/open/api/v2/order/cancel_by_symbol?symbol=CHAMP_USDT", 732 | "host": [ 733 | "{{api_url}}" 734 | ], 735 | "path": [ 736 | "open", 737 | "api", 738 | "v2", 739 | "order", 740 | "cancel_by_symbol" 741 | ], 742 | "query": [ 743 | { 744 | "key": "symbol", 745 | "value": "CHAMP_USDT" 746 | } 747 | ] 748 | } 749 | }, 750 | "response": [] 751 | } 752 | ] 753 | }, 754 | { 755 | "name": "Assets", 756 | "item": [ 757 | { 758 | "name": "GetDepositList", 759 | "event": [ 760 | { 761 | "listen": "prerequest", 762 | "script": { 763 | "exec": [ 764 | "" 765 | ], 766 | "type": "text/javascript" 767 | } 768 | } 769 | ], 770 | "request": { 771 | "method": "GET", 772 | "header": [ 773 | { 774 | "key": "Content-Type", 775 | "value": "application/json", 776 | "type": "text" 777 | } 778 | ], 779 | "url": { 780 | "raw": "{{api_url}}/open/api/v2/asset/deposit/address/list?currency=MX", 781 | "host": [ 782 | "{{api_url}}" 783 | ], 784 | "path": [ 785 | "open", 786 | "api", 787 | "v2", 788 | "asset", 789 | "deposit", 790 | "address", 791 | "list" 792 | ], 793 | "query": [ 794 | { 795 | "key": "currency", 796 | "value": "MX" 797 | } 798 | ] 799 | } 800 | }, 801 | "response": [] 802 | }, 803 | { 804 | "name": "GetDepositRecord", 805 | "request": { 806 | "method": "GET", 807 | "header": [], 808 | "url": { 809 | "raw": "{{api_url}}/open/api/v2/asset/deposit/list?currency=USDT-TRX&end_time=1643532064000&start_time=1642668064000", 810 | "host": [ 811 | "{{api_url}}" 812 | ], 813 | "path": [ 814 | "open", 815 | "api", 816 | "v2", 817 | "asset", 818 | "deposit", 819 | "list" 820 | ], 821 | "query": [ 822 | { 823 | "key": "currency", 824 | "value": "USDT-TRX" 825 | }, 826 | { 827 | "key": "end_time", 828 | "value": "1643532064000", 829 | "description": "\"2022-01-29 16:41:04\"" 830 | }, 831 | { 832 | "key": "start_time", 833 | "value": "1642668064000", 834 | "description": "\"2022-01-20 16:41:04\"" 835 | } 836 | ] 837 | } 838 | }, 839 | "response": [] 840 | }, 841 | { 842 | "name": "GetAddressList", 843 | "request": { 844 | "method": "GET", 845 | "header": [], 846 | "url": { 847 | "raw": "{{api_url}}/open/api/v2/asset/address/list?page_size=30", 848 | "host": [ 849 | "{{api_url}}" 850 | ], 851 | "path": [ 852 | "open", 853 | "api", 854 | "v2", 855 | "asset", 856 | "address", 857 | "list" 858 | ], 859 | "query": [ 860 | { 861 | "key": "page_size", 862 | "value": "30" 863 | } 864 | ] 865 | } 866 | }, 867 | "response": [] 868 | }, 869 | { 870 | "name": "GetWithdrawList", 871 | "request": { 872 | "method": "GET", 873 | "header": [], 874 | "url": { 875 | "raw": "{{url}}/open/api/v2/asset/withdraw/list?end_time=1648697930000&start_time=1648525130000", 876 | "host": [ 877 | "{{url}}" 878 | ], 879 | "path": [ 880 | "open", 881 | "api", 882 | "v2", 883 | "asset", 884 | "withdraw", 885 | "list" 886 | ], 887 | "query": [ 888 | { 889 | "key": "end_time", 890 | "value": "1648697930000", 891 | "description": "2022-03-31 11:38:50" 892 | }, 893 | { 894 | "key": "start_time", 895 | "value": "1648525130000", 896 | "description": "2022-03-29 11:38:50" 897 | }, 898 | { 899 | "key": "withdraw_id", 900 | "value": "0a2cd873ec0845fb961a47f9e23f9129", 901 | "disabled": true 902 | } 903 | ] 904 | } 905 | }, 906 | "response": [] 907 | }, 908 | { 909 | "name": "withdraw", 910 | "request": { 911 | "method": "POST", 912 | "header": [], 913 | "body": { 914 | "mode": "raw", 915 | "raw": "{\"currency\":\"LUNA\",\"chain\":\"BEP20(BSC)\",\"amount\":\"5.730203703902240469\",\"address\":\"0x8D8F1dEBB8F6c92062D4D9Ba3ea44EF4b7104424\"}", 916 | "options": { 917 | "raw": { 918 | "language": "json" 919 | } 920 | } 921 | }, 922 | "url": { 923 | "raw": "{{api_url}}/open/api/v2/asset/withdraw", 924 | "host": [ 925 | "{{api_url}}" 926 | ], 927 | "path": [ 928 | "open", 929 | "api", 930 | "v2", 931 | "asset", 932 | "withdraw" 933 | ] 934 | } 935 | }, 936 | "response": [] 937 | }, 938 | { 939 | "name": "CancelWithdraw", 940 | "request": { 941 | "method": "DELETE", 942 | "header": [], 943 | "url": { 944 | "raw": "{{api_url}}/open/api/v2/asset/withdraw?withdraw_id=", 945 | "host": [ 946 | "{{api_url}}" 947 | ], 948 | "path": [ 949 | "open", 950 | "api", 951 | "v2", 952 | "asset", 953 | "withdraw" 954 | ], 955 | "query": [ 956 | { 957 | "key": "withdraw_id", 958 | "value": "" 959 | } 960 | ] 961 | } 962 | }, 963 | "response": [] 964 | }, 965 | { 966 | "name": "transfer", 967 | "request": { 968 | "method": "POST", 969 | "header": [], 970 | "body": { 971 | "mode": "raw", 972 | "raw": "{\"currency\":\"USDT\",\"amount\":\"100\",\"from\":\"MAIN\",\"to\":\"CONTRACT\"}", 973 | "options": { 974 | "raw": { 975 | "language": "json" 976 | } 977 | } 978 | }, 979 | "url": { 980 | "raw": "{{api_url}}/open/api/v2/asset/internal/transfer", 981 | "host": [ 982 | "{{api_url}}" 983 | ], 984 | "path": [ 985 | "open", 986 | "api", 987 | "v2", 988 | "asset", 989 | "internal", 990 | "transfer" 991 | ] 992 | } 993 | }, 994 | "response": [] 995 | }, 996 | { 997 | "name": "GetTransferRecord", 998 | "request": { 999 | "method": "GET", 1000 | "header": [], 1001 | "url": { 1002 | "raw": "{{api_url}}/open/api/v2/asset/internal/transfer/record?end_time=1649433600000&start_time=1648742400000", 1003 | "host": [ 1004 | "{{api_url}}" 1005 | ], 1006 | "path": [ 1007 | "open", 1008 | "api", 1009 | "v2", 1010 | "asset", 1011 | "internal", 1012 | "transfer", 1013 | "record" 1014 | ], 1015 | "query": [ 1016 | { 1017 | "key": "end_time", 1018 | "value": "1649433600000" 1019 | }, 1020 | { 1021 | "key": "start_time", 1022 | "value": "1648742400000" 1023 | } 1024 | ] 1025 | } 1026 | }, 1027 | "response": [] 1028 | }, 1029 | { 1030 | "name": "GetAvlTransfer", 1031 | "request": { 1032 | "method": "GET", 1033 | "header": [], 1034 | "url": { 1035 | "raw": "{{api_url}}/open/api/v2/account/balance", 1036 | "host": [ 1037 | "{{api_url}}" 1038 | ], 1039 | "path": [ 1040 | "open", 1041 | "api", 1042 | "v2", 1043 | "account", 1044 | "balance" 1045 | ], 1046 | "query": [ 1047 | { 1048 | "key": "currency", 1049 | "value": "OMG", 1050 | "disabled": true 1051 | } 1052 | ] 1053 | } 1054 | }, 1055 | "response": [] 1056 | }, 1057 | { 1058 | "name": "QueryTransferRecordById", 1059 | "request": { 1060 | "method": "GET", 1061 | "header": [], 1062 | "url": { 1063 | "raw": "{{api_url}}/open/api/v2/asset/internal/transfer/info?transact_id=b4711743428342af8f282faeb7a39a4c", 1064 | "host": [ 1065 | "{{api_url}}" 1066 | ], 1067 | "path": [ 1068 | "open", 1069 | "api", 1070 | "v2", 1071 | "asset", 1072 | "internal", 1073 | "transfer", 1074 | "info" 1075 | ], 1076 | "query": [ 1077 | { 1078 | "key": "transact_id", 1079 | "value": "b4711743428342af8f282faeb7a39a4c" 1080 | } 1081 | ] 1082 | } 1083 | }, 1084 | "response": [] 1085 | } 1086 | ] 1087 | }, 1088 | { 1089 | "name": "Websocket", 1090 | "item": [] 1091 | } 1092 | ], 1093 | "event": [ 1094 | { 1095 | "listen": "prerequest", 1096 | "script": { 1097 | "type": "text/javascript", 1098 | "exec": [ 1099 | "const ApiKey = pm.environment.get(\"api_key\");;", 1100 | "const ApiSec = pm.environment.get(\"api_secret\");;", 1101 | "const stemp = new Date().getTime().toString()", 1102 | "const method = pm.request.method;", 1103 | "let objectString = ApiKey + stemp", 1104 | "let params = {}", 1105 | "if (method === 'POST') {", 1106 | " objectString += pm.request.body.raw;", 1107 | "} else {", 1108 | " params = pm.request.url.query;", 1109 | " ", 1110 | " // objectString += params.map((key) => {", 1111 | " // console.log(`key->`,!!params[key] == true );", 1112 | "", 1113 | " // return !key.disabled ? `${key}=${encodeURIComponent(params[key])}`:'';", 1114 | " // }).join('&');", 1115 | "", 1116 | " // for(var i in params){", 1117 | " // console.log( params[i].key+params[i].value);", 1118 | " // console.log(params[i].value != '');", 1119 | "", 1120 | " // }", 1121 | "", 1122 | " objectString += params;", 1123 | "}", 1124 | "", 1125 | "console.log(`objectString: ${objectString}`);", 1126 | "", 1127 | "", 1128 | "", 1129 | "const sign = CryptoJS.enc.Hex.stringify(CryptoJS.HmacSHA256(objectString, ApiSec))", 1130 | "", 1131 | "console.log(`Request-Time: ${stemp}`)", 1132 | "console.log(`ApiKey: ${ApiKey}`)", 1133 | "console.log(`Content-Type: application/json`)", 1134 | "console.log(objectString)", 1135 | "console.log(`Signature: ${sign}`)", 1136 | "pm.request.headers.add({", 1137 | " key: 'Request-Time',", 1138 | " value: stemp", 1139 | "});", 1140 | "", 1141 | "pm.request.headers.add({", 1142 | " key: 'ApiKey',", 1143 | " value: ApiKey", 1144 | "});", 1145 | "", 1146 | "pm.request.headers.add({", 1147 | " key: 'Content-Type',", 1148 | " value: 'application/json'", 1149 | "});", 1150 | "", 1151 | "pm.request.headers.add({", 1152 | " key: 'Signature',", 1153 | " value: sign", 1154 | "});", 1155 | "" 1156 | ] 1157 | } 1158 | }, 1159 | { 1160 | "listen": "test", 1161 | "script": { 1162 | "type": "text/javascript", 1163 | "exec": [ 1164 | "" 1165 | ] 1166 | } 1167 | } 1168 | ] 1169 | } -------------------------------------------------------------------------------- /MEXC V3.postman_collection.json: -------------------------------------------------------------------------------- 1 | { 2 | "info": { 3 | "_postman_id": "7d8b56bc-7c7a-4f87-aab7-f96075785505", 4 | "name": "MEXC V3", 5 | "schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json", 6 | "_exporter_id": "20747910" 7 | }, 8 | "item": [ 9 | { 10 | "name": "Market Date Endpoints", 11 | "item": [ 12 | { 13 | "name": "Test Connectivity", 14 | "request": { 15 | "method": "GET", 16 | "header": [], 17 | "url": { 18 | "raw": "{{api_url}}/api/v3/ping", 19 | "host": [ 20 | "{{api_url}}" 21 | ], 22 | "path": [ 23 | "api", 24 | "v3", 25 | "ping" 26 | ] 27 | } 28 | }, 29 | "response": [] 30 | }, 31 | { 32 | "name": "Check Server Time", 33 | "request": { 34 | "method": "GET", 35 | "header": [], 36 | "url": { 37 | "raw": "{{api_url}}/api/v3/time", 38 | "host": [ 39 | "{{api_url}}" 40 | ], 41 | "path": [ 42 | "api", 43 | "v3", 44 | "time" 45 | ] 46 | } 47 | }, 48 | "response": [] 49 | }, 50 | { 51 | "name": "Exchange Information", 52 | "request": { 53 | "method": "GET", 54 | "header": [], 55 | "url": { 56 | "raw": "{{api_url}}/api/v3/exchangeInfo", 57 | "host": [ 58 | "{{api_url}}" 59 | ], 60 | "path": [ 61 | "api", 62 | "v3", 63 | "exchangeInfo" 64 | ] 65 | } 66 | }, 67 | "response": [] 68 | }, 69 | { 70 | "name": "Order Book", 71 | "request": { 72 | "method": "GET", 73 | "header": [], 74 | "url": { 75 | "raw": "{{api_url}}/api/v3/depth?symbol=BTCUSDT", 76 | "host": [ 77 | "{{api_url}}" 78 | ], 79 | "path": [ 80 | "api", 81 | "v3", 82 | "depth" 83 | ], 84 | "query": [ 85 | { 86 | "key": "symbol", 87 | "value": "BTCUSDT", 88 | "description": "Symbol" 89 | } 90 | ] 91 | } 92 | }, 93 | "response": [] 94 | }, 95 | { 96 | "name": "Recent Trades List", 97 | "request": { 98 | "method": "GET", 99 | "header": [], 100 | "url": { 101 | "raw": "{{api_url}}/api/v3/trades?symbol=BTCUSDT", 102 | "host": [ 103 | "{{api_url}}" 104 | ], 105 | "path": [ 106 | "api", 107 | "v3", 108 | "trades" 109 | ], 110 | "query": [ 111 | { 112 | "key": "symbol", 113 | "value": "BTCUSDT", 114 | "description": "Symbol" 115 | } 116 | ] 117 | } 118 | }, 119 | "response": [] 120 | }, 121 | { 122 | "name": "Old Trade Lookup", 123 | "request": { 124 | "method": "GET", 125 | "header": [], 126 | "url": { 127 | "raw": "{{api_url}}/api/v3/historicalTrades?symbol=BTCUSDT", 128 | "host": [ 129 | "{{api_url}}" 130 | ], 131 | "path": [ 132 | "api", 133 | "v3", 134 | "historicalTrades" 135 | ], 136 | "query": [ 137 | { 138 | "key": "symbol", 139 | "value": "BTCUSDT", 140 | "description": "Symbol" 141 | } 142 | ] 143 | } 144 | }, 145 | "response": [] 146 | }, 147 | { 148 | "name": "Compressed/Aggregate Trades List", 149 | "request": { 150 | "method": "GET", 151 | "header": [], 152 | "url": { 153 | "raw": "{{api_url}}/api/v3/aggTrades?symbol=BTCUSDT", 154 | "host": [ 155 | "{{api_url}}" 156 | ], 157 | "path": [ 158 | "api", 159 | "v3", 160 | "aggTrades" 161 | ], 162 | "query": [ 163 | { 164 | "key": "symbol", 165 | "value": "BTCUSDT" 166 | } 167 | ] 168 | } 169 | }, 170 | "response": [] 171 | }, 172 | { 173 | "name": "Kline/Candlestick Data", 174 | "request": { 175 | "method": "GET", 176 | "header": [], 177 | "url": { 178 | "raw": "{{api_url}}/api/v3/klines?symbol=BTCUSDT&interval=1m", 179 | "host": [ 180 | "{{api_url}}" 181 | ], 182 | "path": [ 183 | "api", 184 | "v3", 185 | "klines" 186 | ], 187 | "query": [ 188 | { 189 | "key": "symbol", 190 | "value": "BTCUSDT", 191 | "description": "Symbol" 192 | }, 193 | { 194 | "key": "interval", 195 | "value": "1m", 196 | "description": "ENUM: Kline interval" 197 | } 198 | ] 199 | } 200 | }, 201 | "response": [] 202 | }, 203 | { 204 | "name": "Current Average Price", 205 | "request": { 206 | "method": "GET", 207 | "header": [], 208 | "url": { 209 | "raw": "{{api_url}}/api/v3/avgPrice?symbol=BTCUSDT", 210 | "host": [ 211 | "{{api_url}}" 212 | ], 213 | "path": [ 214 | "api", 215 | "v3", 216 | "avgPrice" 217 | ], 218 | "query": [ 219 | { 220 | "key": "symbol", 221 | "value": "BTCUSDT", 222 | "description": "Symbol" 223 | } 224 | ] 225 | } 226 | }, 227 | "response": [] 228 | }, 229 | { 230 | "name": "24hr Ticker Price Change Statistics", 231 | "request": { 232 | "method": "GET", 233 | "header": [], 234 | "url": { 235 | "raw": "{{api_url}}/api/v3/ticker/24hr", 236 | "host": [ 237 | "{{api_url}}" 238 | ], 239 | "path": [ 240 | "api", 241 | "v3", 242 | "ticker", 243 | "24hr" 244 | ] 245 | } 246 | }, 247 | "response": [] 248 | }, 249 | { 250 | "name": "Symbol Price Ticker", 251 | "request": { 252 | "method": "GET", 253 | "header": [], 254 | "url": { 255 | "raw": "{{api_url}}/api/v3/ticker/price", 256 | "host": [ 257 | "{{api_url}}" 258 | ], 259 | "path": [ 260 | "api", 261 | "v3", 262 | "ticker", 263 | "price" 264 | ] 265 | } 266 | }, 267 | "response": [] 268 | }, 269 | { 270 | "name": "Symbol Order Book Ticker", 271 | "request": { 272 | "method": "GET", 273 | "header": [], 274 | "url": { 275 | "raw": "{{api_url}}/api/v3/ticker/bookTicker", 276 | "host": [ 277 | "{{api_url}}" 278 | ], 279 | "path": [ 280 | "api", 281 | "v3", 282 | "ticker", 283 | "bookTicker" 284 | ] 285 | } 286 | }, 287 | "response": [] 288 | }, 289 | { 290 | "name": "Default Symbols", 291 | "request": { 292 | "method": "GET", 293 | "header": [], 294 | "url": { 295 | "raw": "{{api_url}}/api/v3/defaultSymbols", 296 | "host": [ 297 | "{{api_url}}" 298 | ], 299 | "path": [ 300 | "api", 301 | "v3", 302 | "defaultSymbols" 303 | ] 304 | } 305 | }, 306 | "response": [] 307 | } 308 | ] 309 | }, 310 | { 311 | "name": "Spot Account/Trade", 312 | "item": [ 313 | { 314 | "name": "Test New Order", 315 | "request": { 316 | "method": "POST", 317 | "header": [ 318 | { 319 | "key": "x-mexc-apikey", 320 | "value": "{{api_key}}", 321 | "type": "text" 322 | }, 323 | { 324 | "key": "Content-Type", 325 | "value": "application/x-www-form-urlencoded", 326 | "type": "text", 327 | "disabled": true 328 | } 329 | ], 330 | "url": { 331 | "raw": "{{api_url}}/api/v3/order/test?symbol=BTCUSDT&side=BUY&type=LIMIT&quantity=0.0002&price=30000×tamp={{timestamp}}&signature={{signature}}", 332 | "host": [ 333 | "{{api_url}}" 334 | ], 335 | "path": [ 336 | "api", 337 | "v3", 338 | "order", 339 | "test" 340 | ], 341 | "query": [ 342 | { 343 | "key": "symbol", 344 | "value": "BTCUSDT", 345 | "description": "Symbol" 346 | }, 347 | { 348 | "key": "side", 349 | "value": "BUY", 350 | "description": "ENUM:Order Side" 351 | }, 352 | { 353 | "key": "type", 354 | "value": "LIMIT", 355 | "description": "ENUM:Order Type" 356 | }, 357 | { 358 | "key": "quantity", 359 | "value": "0.0002", 360 | "description": "Quantity" 361 | }, 362 | { 363 | "key": "price", 364 | "value": "30000", 365 | "description": "Price" 366 | }, 367 | { 368 | "key": "timestamp", 369 | "value": "{{timestamp}}" 370 | }, 371 | { 372 | "key": "signature", 373 | "value": "{{signature}}" 374 | } 375 | ] 376 | } 377 | }, 378 | "response": [] 379 | }, 380 | { 381 | "name": "New Order", 382 | "request": { 383 | "method": "POST", 384 | "header": [ 385 | { 386 | "key": "x-mexc-apikey", 387 | "value": "{{api_key}}", 388 | "type": "text" 389 | }, 390 | { 391 | "key": "Content-Type", 392 | "value": "application/x-www-form-urlencoded", 393 | "type": "text", 394 | "disabled": true 395 | } 396 | ], 397 | "body": { 398 | "mode": "urlencoded", 399 | "urlencoded": [] 400 | }, 401 | "url": { 402 | "raw": "{{api_url}}/api/v3/order?symbol=MXUSDT&side=BUY&type=LIMIT&quantity=50&price=0.1×tamp={{timestamp}}&signature={{signature}}", 403 | "host": [ 404 | "{{api_url}}" 405 | ], 406 | "path": [ 407 | "api", 408 | "v3", 409 | "order" 410 | ], 411 | "query": [ 412 | { 413 | "key": "symbol", 414 | "value": "MXUSDT", 415 | "description": "Symbol" 416 | }, 417 | { 418 | "key": "side", 419 | "value": "BUY", 420 | "description": "ENUM:Order Side" 421 | }, 422 | { 423 | "key": "type", 424 | "value": "LIMIT", 425 | "description": "ENUM:Order Type " 426 | }, 427 | { 428 | "key": "quantity", 429 | "value": "50", 430 | "description": "Quantity" 431 | }, 432 | { 433 | "key": "quoteOrderQty", 434 | "value": "100", 435 | "description": "Quote order quantity (For type: MARKET)", 436 | "disabled": true 437 | }, 438 | { 439 | "key": "price", 440 | "value": "0.1", 441 | "description": "Price" 442 | }, 443 | { 444 | "key": "timestamp", 445 | "value": "{{timestamp}}" 446 | }, 447 | { 448 | "key": "signature", 449 | "value": "{{signature}}" 450 | } 451 | ] 452 | } 453 | }, 454 | "response": [] 455 | }, 456 | { 457 | "name": "Cancel Orde", 458 | "request": { 459 | "method": "DELETE", 460 | "header": [ 461 | { 462 | "key": "x-mexc-apikey", 463 | "value": "{{api_key}}", 464 | "type": "text" 465 | }, 466 | { 467 | "key": "Content-Type", 468 | "value": "application/x-www-form-urlencoded", 469 | "type": "text", 470 | "disabled": true 471 | } 472 | ], 473 | "url": { 474 | "raw": "{{api_url}}/api/v3/order?symbol=BTCUSDT&orderId=135598325645746176×tamp={{timestamp}}&signature={{signature}}", 475 | "host": [ 476 | "{{api_url}}" 477 | ], 478 | "path": [ 479 | "api", 480 | "v3", 481 | "order" 482 | ], 483 | "query": [ 484 | { 485 | "key": "symbol", 486 | "value": "BTCUSDT", 487 | "description": "Symbol" 488 | }, 489 | { 490 | "key": "orderId", 491 | "value": "135598325645746176", 492 | "description": "Order id" 493 | }, 494 | { 495 | "key": "timestamp", 496 | "value": "{{timestamp}}" 497 | }, 498 | { 499 | "key": "signature", 500 | "value": "{{signature}}" 501 | } 502 | ] 503 | } 504 | }, 505 | "response": [] 506 | }, 507 | { 508 | "name": "Cancel all Open Orders on a Symbol", 509 | "request": { 510 | "method": "DELETE", 511 | "header": [ 512 | { 513 | "key": "x-mexc-apikey", 514 | "value": "{{api_key}}", 515 | "type": "text" 516 | }, 517 | { 518 | "key": "Content-Type", 519 | "value": "application/x-www-form-urlencoded", 520 | "type": "text", 521 | "disabled": true 522 | } 523 | ], 524 | "url": { 525 | "raw": "{{api_url}}/api/v3/openOrders?symbol=BTCUSDT×tamp={{timestamp}}&signature={{signature}}", 526 | "host": [ 527 | "{{api_url}}" 528 | ], 529 | "path": [ 530 | "api", 531 | "v3", 532 | "openOrders" 533 | ], 534 | "query": [ 535 | { 536 | "key": "symbol", 537 | "value": "BTCUSDT", 538 | "description": "Symbol" 539 | }, 540 | { 541 | "key": "timestamp", 542 | "value": "{{timestamp}}" 543 | }, 544 | { 545 | "key": "signature", 546 | "value": "{{signature}}" 547 | } 548 | ] 549 | } 550 | }, 551 | "response": [] 552 | }, 553 | { 554 | "name": "Query Order", 555 | "request": { 556 | "method": "GET", 557 | "header": [ 558 | { 559 | "key": "x-mexc-apikey", 560 | "value": "{{api_key}}", 561 | "type": "text" 562 | }, 563 | { 564 | "key": "Content-Type", 565 | "value": "application/x-www-form-urlencoded", 566 | "type": "text", 567 | "disabled": true 568 | } 569 | ], 570 | "url": { 571 | "raw": "{{api_url}}/api/v3/order?symbol=BTCUSDT&orderId=129402018493145088×tamp={{timestamp}}&signature={{signature}}", 572 | "host": [ 573 | "{{api_url}}" 574 | ], 575 | "path": [ 576 | "api", 577 | "v3", 578 | "order" 579 | ], 580 | "query": [ 581 | { 582 | "key": "symbol", 583 | "value": "BTCUSDT", 584 | "description": "Symbol" 585 | }, 586 | { 587 | "key": "orderId", 588 | "value": "129402018493145088", 589 | "description": "Order id" 590 | }, 591 | { 592 | "key": "timestamp", 593 | "value": "{{timestamp}}" 594 | }, 595 | { 596 | "key": "signature", 597 | "value": "{{signature}}" 598 | } 599 | ] 600 | } 601 | }, 602 | "response": [] 603 | }, 604 | { 605 | "name": "Current Open Orders", 606 | "request": { 607 | "method": "GET", 608 | "header": [ 609 | { 610 | "key": "x-mexc-apikey", 611 | "value": "{{api_key}}", 612 | "type": "text" 613 | }, 614 | { 615 | "key": "Content-Type", 616 | "value": "application/x-www-form-urlencoded", 617 | "type": "text", 618 | "disabled": true 619 | } 620 | ], 621 | "url": { 622 | "raw": "{{api_url}}/api/v3/openOrders?symbol=BTCUSDT×tamp={{timestamp}}&signature={{signature}}", 623 | "host": [ 624 | "{{api_url}}" 625 | ], 626 | "path": [ 627 | "api", 628 | "v3", 629 | "openOrders" 630 | ], 631 | "query": [ 632 | { 633 | "key": "symbol", 634 | "value": "BTCUSDT", 635 | "description": "Symbol" 636 | }, 637 | { 638 | "key": "timestamp", 639 | "value": "{{timestamp}}" 640 | }, 641 | { 642 | "key": "signature", 643 | "value": "{{signature}}" 644 | } 645 | ] 646 | } 647 | }, 648 | "response": [] 649 | }, 650 | { 651 | "name": "All Orders", 652 | "request": { 653 | "method": "GET", 654 | "header": [ 655 | { 656 | "key": "x-mexc-apikey", 657 | "value": "{{api_key}}", 658 | "type": "text" 659 | }, 660 | { 661 | "key": "Content-Type", 662 | "value": "application/x-www-form-urlencoded", 663 | "type": "text", 664 | "disabled": true 665 | } 666 | ], 667 | "url": { 668 | "raw": "{{api_url}}/api/v3/allOrders?symbol=BTCUSDT×tamp={{timestamp}}&signature={{signature}}", 669 | "host": [ 670 | "{{api_url}}" 671 | ], 672 | "path": [ 673 | "api", 674 | "v3", 675 | "allOrders" 676 | ], 677 | "query": [ 678 | { 679 | "key": "symbol", 680 | "value": "BTCUSDT", 681 | "description": "Symbol" 682 | }, 683 | { 684 | "key": "timestamp", 685 | "value": "{{timestamp}}" 686 | }, 687 | { 688 | "key": "signature", 689 | "value": "{{signature}}" 690 | } 691 | ] 692 | } 693 | }, 694 | "response": [] 695 | }, 696 | { 697 | "name": "Account Information", 698 | "request": { 699 | "method": "GET", 700 | "header": [ 701 | { 702 | "key": "x-mexc-apikey", 703 | "value": "{{api_key}}", 704 | "type": "text" 705 | }, 706 | { 707 | "key": "Content-Type", 708 | "value": "application/x-www-form-urlencoded", 709 | "type": "text", 710 | "disabled": true 711 | } 712 | ], 713 | "url": { 714 | "raw": "{{api_url}}/api/v3/account?timestamp={{timestamp}}&signature={{signature}}", 715 | "host": [ 716 | "{{api_url}}" 717 | ], 718 | "path": [ 719 | "api", 720 | "v3", 721 | "account" 722 | ], 723 | "query": [ 724 | { 725 | "key": "timestamp", 726 | "value": "{{timestamp}}" 727 | }, 728 | { 729 | "key": "signature", 730 | "value": "{{signature}}" 731 | } 732 | ] 733 | } 734 | }, 735 | "response": [] 736 | }, 737 | { 738 | "name": "Account Trade List", 739 | "request": { 740 | "method": "GET", 741 | "header": [ 742 | { 743 | "key": "x-mexc-apikey", 744 | "value": "{{api_key}}", 745 | "type": "text" 746 | }, 747 | { 748 | "key": "Content-Type", 749 | "value": "application/x-www-form-urlencoded", 750 | "type": "text", 751 | "disabled": true 752 | } 753 | ], 754 | "url": { 755 | "raw": "{{api_url}}/api/v3/myTrades?symbol=MXUSDT×tamp={{timestamp}}&signature={{signature}}&recvWindow=60000", 756 | "host": [ 757 | "{{api_url}}" 758 | ], 759 | "path": [ 760 | "api", 761 | "v3", 762 | "myTrades" 763 | ], 764 | "query": [ 765 | { 766 | "key": "symbol", 767 | "value": "MXUSDT", 768 | "description": "Symbol" 769 | }, 770 | { 771 | "key": "timestamp", 772 | "value": "{{timestamp}}" 773 | }, 774 | { 775 | "key": "signature", 776 | "value": "{{signature}}" 777 | }, 778 | { 779 | "key": "recvWindow", 780 | "value": "60000" 781 | } 782 | ] 783 | } 784 | }, 785 | "response": [] 786 | }, 787 | { 788 | "name": "Query Self Symbols", 789 | "request": { 790 | "method": "GET", 791 | "header": [ 792 | { 793 | "key": "x-mexc-apikey", 794 | "value": "{{api_key}}", 795 | "type": "text" 796 | }, 797 | { 798 | "key": "Content-Type", 799 | "value": "application/x-www-form-urlencoded", 800 | "type": "text", 801 | "disabled": true 802 | } 803 | ], 804 | "url": { 805 | "raw": "{{api_url}}/api/v3/selfSymbols?timestamp={{timestamp}}&signature={{signature}}", 806 | "host": [ 807 | "{{api_url}}" 808 | ], 809 | "path": [ 810 | "api", 811 | "v3", 812 | "selfSymbols" 813 | ], 814 | "query": [ 815 | { 816 | "key": "timestamp", 817 | "value": "{{timestamp}}" 818 | }, 819 | { 820 | "key": "signature", 821 | "value": "{{signature}}" 822 | } 823 | ] 824 | } 825 | }, 826 | "response": [] 827 | }, 828 | { 829 | "name": "MxDeduct enable", 830 | "request": { 831 | "method": "POST", 832 | "header": [ 833 | { 834 | "key": "x-mexc-apikey", 835 | "value": "{{api_key}}", 836 | "type": "text" 837 | }, 838 | { 839 | "key": "Content-Type", 840 | "value": "application/x-www-form-urlencoded", 841 | "type": "text", 842 | "disabled": true 843 | } 844 | ], 845 | "body": { 846 | "mode": "urlencoded", 847 | "urlencoded": [] 848 | }, 849 | "url": { 850 | "raw": "{{api_url}}/api/v3/mxDeduct/enable?mxDeductEnable=TRUE×tamp={{timestamp}}&signature={{signature}}", 851 | "host": [ 852 | "{{api_url}}" 853 | ], 854 | "path": [ 855 | "api", 856 | "v3", 857 | "mxDeduct", 858 | "enable" 859 | ], 860 | "query": [ 861 | { 862 | "key": "mxDeductEnable", 863 | "value": "TRUE" 864 | }, 865 | { 866 | "key": "timestamp", 867 | "value": "{{timestamp}}" 868 | }, 869 | { 870 | "key": "signature", 871 | "value": "{{signature}}" 872 | } 873 | ] 874 | } 875 | }, 876 | "response": [] 877 | }, 878 | { 879 | "name": "Query MxDeduct", 880 | "request": { 881 | "method": "GET", 882 | "header": [ 883 | { 884 | "key": "x-mexc-apikey", 885 | "value": "{{api_key}}", 886 | "type": "text" 887 | }, 888 | { 889 | "key": "Content-Type", 890 | "value": "application/x-www-form-urlencoded", 891 | "type": "text", 892 | "disabled": true 893 | } 894 | ], 895 | "url": { 896 | "raw": "{{api_url}}/api/v3/mxDeduct/enable?timestamp={{timestamp}}&signature={{signature}}", 897 | "host": [ 898 | "{{api_url}}" 899 | ], 900 | "path": [ 901 | "api", 902 | "v3", 903 | "mxDeduct", 904 | "enable" 905 | ], 906 | "query": [ 907 | { 908 | "key": "timestamp", 909 | "value": "{{timestamp}}" 910 | }, 911 | { 912 | "key": "signature", 913 | "value": "{{signature}}" 914 | } 915 | ] 916 | } 917 | }, 918 | "response": [] 919 | } 920 | ] 921 | }, 922 | { 923 | "name": "EFT", 924 | "item": [ 925 | { 926 | "name": "ETF info", 927 | "request": { 928 | "method": "GET", 929 | "header": [], 930 | "url": { 931 | "raw": "{{api_url}}/api/v3/etf/info", 932 | "host": [ 933 | "{{api_url}}" 934 | ], 935 | "path": [ 936 | "api", 937 | "v3", 938 | "etf", 939 | "info" 940 | ] 941 | } 942 | }, 943 | "response": [] 944 | } 945 | ] 946 | }, 947 | { 948 | "name": "Wallet", 949 | "item": [ 950 | { 951 | "name": "Withdraw Apply", 952 | "request": { 953 | "method": "POST", 954 | "header": [ 955 | { 956 | "key": "x-mexc-apikey", 957 | "value": "{{api_key}}", 958 | "type": "text" 959 | } 960 | ], 961 | "url": { 962 | "raw": "{{api_url}}/api/v3/capital/withdraw/apply?coin=GPT&network=ERC20&address=0x822330d165d511a855d474010a629a08b6fe1e8c&amount=200&signature={{signature}}×tamp={{timestamp}}", 963 | "host": [ 964 | "{{api_url}}" 965 | ], 966 | "path": [ 967 | "api", 968 | "v3", 969 | "capital", 970 | "withdraw", 971 | "apply" 972 | ], 973 | "query": [ 974 | { 975 | "key": "recvWindow", 976 | "value": "60000", 977 | "disabled": true 978 | }, 979 | { 980 | "key": "coin", 981 | "value": "GPT" 982 | }, 983 | { 984 | "key": "withdrawOrderId", 985 | "value": "", 986 | "disabled": true 987 | }, 988 | { 989 | "key": "network", 990 | "value": "ERC20" 991 | }, 992 | { 993 | "key": "address", 994 | "value": "0x822330d165d511a855d474010a629a08b6fe1e8c" 995 | }, 996 | { 997 | "key": "amount", 998 | "value": "200" 999 | }, 1000 | { 1001 | "key": "remark", 1002 | "value": "xx,111", 1003 | "disabled": true 1004 | }, 1005 | { 1006 | "key": "signature", 1007 | "value": "{{signature}}" 1008 | }, 1009 | { 1010 | "key": "timestamp", 1011 | "value": "{{timestamp}}" 1012 | } 1013 | ] 1014 | } 1015 | }, 1016 | "response": [] 1017 | }, 1018 | { 1019 | "name": "Query Deposit Hisrec", 1020 | "request": { 1021 | "method": "GET", 1022 | "header": [ 1023 | { 1024 | "key": "x-mexc-apikey", 1025 | "value": "{{api_key}}", 1026 | "type": "text" 1027 | } 1028 | ], 1029 | "url": { 1030 | "raw": "{{api_url}}/api/v3/capital/deposit/hisrec?coin=USDT&signature={{signature}}×tamp={{timestamp}}", 1031 | "host": [ 1032 | "{{api_url}}" 1033 | ], 1034 | "path": [ 1035 | "api", 1036 | "v3", 1037 | "capital", 1038 | "deposit", 1039 | "hisrec" 1040 | ], 1041 | "query": [ 1042 | { 1043 | "key": "coin", 1044 | "value": "USDT" 1045 | }, 1046 | { 1047 | "key": "signature", 1048 | "value": "{{signature}}" 1049 | }, 1050 | { 1051 | "key": "timestamp", 1052 | "value": "{{timestamp}}" 1053 | } 1054 | ] 1055 | } 1056 | }, 1057 | "response": [] 1058 | }, 1059 | { 1060 | "name": "Query All Coins", 1061 | "request": { 1062 | "method": "GET", 1063 | "header": [ 1064 | { 1065 | "key": "x-mexc-apikey", 1066 | "value": "{{api_key}}", 1067 | "type": "text" 1068 | } 1069 | ], 1070 | "url": { 1071 | "raw": "{{api_url}}/api/v3/capital/config/getall?signature={{signature}}×tamp={{timestamp}}", 1072 | "host": [ 1073 | "{{api_url}}" 1074 | ], 1075 | "path": [ 1076 | "api", 1077 | "v3", 1078 | "capital", 1079 | "config", 1080 | "getall" 1081 | ], 1082 | "query": [ 1083 | { 1084 | "key": "signature", 1085 | "value": "{{signature}}" 1086 | }, 1087 | { 1088 | "key": "timestamp", 1089 | "value": "{{timestamp}}" 1090 | } 1091 | ] 1092 | } 1093 | }, 1094 | "response": [] 1095 | }, 1096 | { 1097 | "name": "Get Listen Key", 1098 | "request": { 1099 | "method": "POST", 1100 | "header": [ 1101 | { 1102 | "key": "x-mexc-apikey", 1103 | "value": "{{api_key}}", 1104 | "type": "text" 1105 | } 1106 | ], 1107 | "body": { 1108 | "mode": "raw", 1109 | "raw": "{\n \"subAccount\":\"subAccount1123\",\n \"note\":\"note1111\",\n \"permissions\":\"SPOT_ACCOUNT\"\n}", 1110 | "options": { 1111 | "raw": { 1112 | "language": "json" 1113 | } 1114 | } 1115 | }, 1116 | "url": { 1117 | "raw": "{{api_url}}/api/v3/broker/sub-account/apiKey?signature={{signature}}×tamp={{timestamp}}", 1118 | "host": [ 1119 | "{{api_url}}" 1120 | ], 1121 | "path": [ 1122 | "api", 1123 | "v3", 1124 | "broker", 1125 | "sub-account", 1126 | "apiKey" 1127 | ], 1128 | "query": [ 1129 | { 1130 | "key": "signature", 1131 | "value": "{{signature}}" 1132 | }, 1133 | { 1134 | "key": "timestamp", 1135 | "value": "{{timestamp}}" 1136 | } 1137 | ] 1138 | } 1139 | }, 1140 | "response": [] 1141 | }, 1142 | { 1143 | "name": "Transfer", 1144 | "request": { 1145 | "method": "POST", 1146 | "header": [ 1147 | { 1148 | "key": "x-mexc-apikey", 1149 | "value": "{{api_key}}", 1150 | "type": "text" 1151 | } 1152 | ], 1153 | "url": { 1154 | "raw": "{{api_url}}/api/v3/capital/transfer?fromAccountType=SPOT&toAccountType=FUTURE&amount=5&asset=USDT&signature={{signature}}×tamp={{timestamp}}", 1155 | "host": [ 1156 | "{{api_url}}" 1157 | ], 1158 | "path": [ 1159 | "api", 1160 | "v3", 1161 | "capital", 1162 | "transfer" 1163 | ], 1164 | "query": [ 1165 | { 1166 | "key": "fromAccountType", 1167 | "value": "SPOT" 1168 | }, 1169 | { 1170 | "key": "toAccountType", 1171 | "value": "FUTURE" 1172 | }, 1173 | { 1174 | "key": "amount", 1175 | "value": "5" 1176 | }, 1177 | { 1178 | "key": "symbol", 1179 | "value": "MXUSDT", 1180 | "disabled": true 1181 | }, 1182 | { 1183 | "key": "asset", 1184 | "value": "USDT" 1185 | }, 1186 | { 1187 | "key": "signature", 1188 | "value": "{{signature}}" 1189 | }, 1190 | { 1191 | "key": "timestamp", 1192 | "value": "{{timestamp}}" 1193 | } 1194 | ] 1195 | } 1196 | }, 1197 | "response": [] 1198 | }, 1199 | { 1200 | "name": "Transfer Record", 1201 | "request": { 1202 | "method": "GET", 1203 | "header": [ 1204 | { 1205 | "key": "x-mexc-apikey", 1206 | "value": "{{api_key}}", 1207 | "type": "text" 1208 | } 1209 | ], 1210 | "url": { 1211 | "raw": "{{api_url}}/api/v3/capital/transfer?fromAccountType=SPOT&toAccountType=SPOT&signature={{signature}}×tamp={{timestamp}}", 1212 | "host": [ 1213 | "{{api_url}}" 1214 | ], 1215 | "path": [ 1216 | "api", 1217 | "v3", 1218 | "capital", 1219 | "transfer" 1220 | ], 1221 | "query": [ 1222 | { 1223 | "key": "fromAccountType", 1224 | "value": "SPOT" 1225 | }, 1226 | { 1227 | "key": "toAccountType", 1228 | "value": "SPOT" 1229 | }, 1230 | { 1231 | "key": "symbol", 1232 | "value": "USDT", 1233 | "disabled": true 1234 | }, 1235 | { 1236 | "key": "signature", 1237 | "value": "{{signature}}" 1238 | }, 1239 | { 1240 | "key": "timestamp", 1241 | "value": "{{timestamp}}" 1242 | }, 1243 | { 1244 | "key": "startTime", 1245 | "value": "1657423701000", 1246 | "disabled": true 1247 | }, 1248 | { 1249 | "key": "endTime", 1250 | "value": "1660102101000\n", 1251 | "disabled": true 1252 | } 1253 | ] 1254 | } 1255 | }, 1256 | "response": [] 1257 | }, 1258 | { 1259 | "name": "Withdraw History", 1260 | "request": { 1261 | "method": "GET", 1262 | "header": [ 1263 | { 1264 | "key": "x-mexc-apikey", 1265 | "value": "{{api_key}}", 1266 | "type": "text" 1267 | } 1268 | ], 1269 | "url": { 1270 | "raw": "{{api_url}}/api/v3/capital/withdraw/history?coin=USDT&signature={{signature}}×tamp={{timestamp}}", 1271 | "host": [ 1272 | "{{api_url}}" 1273 | ], 1274 | "path": [ 1275 | "api", 1276 | "v3", 1277 | "capital", 1278 | "withdraw", 1279 | "history" 1280 | ], 1281 | "query": [ 1282 | { 1283 | "key": "coin", 1284 | "value": "USDT" 1285 | }, 1286 | { 1287 | "key": "signature", 1288 | "value": "{{signature}}" 1289 | }, 1290 | { 1291 | "key": "timestamp", 1292 | "value": "{{timestamp}}" 1293 | } 1294 | ] 1295 | } 1296 | }, 1297 | "response": [] 1298 | }, 1299 | { 1300 | "name": "Query Transfer By TranId", 1301 | "request": { 1302 | "method": "GET", 1303 | "header": [ 1304 | { 1305 | "key": "x-mexc-apikey", 1306 | "value": "{{api_key}}", 1307 | "type": "text" 1308 | } 1309 | ], 1310 | "url": { 1311 | "raw": "{{api_url}}/api/v3/capital/transfer/tranId?tranId=cb28c88cd20c42819e4d5148d5fb5742&signature={{signature}}×tamp={{timestamp}}", 1312 | "host": [ 1313 | "{{api_url}}" 1314 | ], 1315 | "path": [ 1316 | "api", 1317 | "v3", 1318 | "capital", 1319 | "transfer", 1320 | "tranId" 1321 | ], 1322 | "query": [ 1323 | { 1324 | "key": "tranId", 1325 | "value": "cb28c88cd20c42819e4d5148d5fb5742" 1326 | }, 1327 | { 1328 | "key": "signature", 1329 | "value": "{{signature}}" 1330 | }, 1331 | { 1332 | "key": "timestamp", 1333 | "value": "{{timestamp}}" 1334 | } 1335 | ] 1336 | } 1337 | }, 1338 | "response": [] 1339 | }, 1340 | { 1341 | "name": "Generate Deposit Address", 1342 | "request": { 1343 | "method": "POST", 1344 | "header": [ 1345 | { 1346 | "key": "x-mexc-apikey", 1347 | "value": "{{api_key}}", 1348 | "type": "text" 1349 | } 1350 | ], 1351 | "url": { 1352 | "raw": "{{api_url}}/api/v3/capital/deposit/address?coin=MX&network=ERC20&signature={{signature}}×tamp={{timestamp}}", 1353 | "host": [ 1354 | "{{api_url}}" 1355 | ], 1356 | "path": [ 1357 | "api", 1358 | "v3", 1359 | "capital", 1360 | "deposit", 1361 | "address" 1362 | ], 1363 | "query": [ 1364 | { 1365 | "key": "coin", 1366 | "value": "MX" 1367 | }, 1368 | { 1369 | "key": "network", 1370 | "value": "ERC20" 1371 | }, 1372 | { 1373 | "key": "remark", 1374 | "value": "xx,111", 1375 | "disabled": true 1376 | }, 1377 | { 1378 | "key": "signature", 1379 | "value": "{{signature}}" 1380 | }, 1381 | { 1382 | "key": "timestamp", 1383 | "value": "{{timestamp}}" 1384 | } 1385 | ] 1386 | } 1387 | }, 1388 | "response": [] 1389 | }, 1390 | { 1391 | "name": "Query Deposit Address", 1392 | "request": { 1393 | "method": "GET", 1394 | "header": [ 1395 | { 1396 | "key": "x-mexc-apikey", 1397 | "value": "{{api_key}}", 1398 | "type": "text" 1399 | } 1400 | ], 1401 | "url": { 1402 | "raw": "{{api_url}}/api/v3/capital/deposit/address?coin=MX&amount=200&signature={{signature}}×tamp={{timestamp}}", 1403 | "host": [ 1404 | "{{api_url}}" 1405 | ], 1406 | "path": [ 1407 | "api", 1408 | "v3", 1409 | "capital", 1410 | "deposit", 1411 | "address" 1412 | ], 1413 | "query": [ 1414 | { 1415 | "key": "coin", 1416 | "value": "MX" 1417 | }, 1418 | { 1419 | "key": "amount", 1420 | "value": "200" 1421 | }, 1422 | { 1423 | "key": "remark", 1424 | "value": "xx,111", 1425 | "disabled": true 1426 | }, 1427 | { 1428 | "key": "signature", 1429 | "value": "{{signature}}" 1430 | }, 1431 | { 1432 | "key": "timestamp", 1433 | "value": "{{timestamp}}" 1434 | } 1435 | ] 1436 | } 1437 | }, 1438 | "response": [] 1439 | }, 1440 | { 1441 | "name": "Get Assets That Can Be Converted Into MX", 1442 | "request": { 1443 | "method": "GET", 1444 | "header": [ 1445 | { 1446 | "key": "x-mexc-apikey", 1447 | "value": "{{api_key}}", 1448 | "type": "text" 1449 | } 1450 | ], 1451 | "url": { 1452 | "raw": "{{api_url}}/api/v3/capital/convert/list?signature={{signature}}×tamp={{timestamp}}", 1453 | "host": [ 1454 | "{{api_url}}" 1455 | ], 1456 | "path": [ 1457 | "api", 1458 | "v3", 1459 | "capital", 1460 | "convert", 1461 | "list" 1462 | ], 1463 | "query": [ 1464 | { 1465 | "key": "signature", 1466 | "value": "{{signature}}" 1467 | }, 1468 | { 1469 | "key": "timestamp", 1470 | "value": "{{timestamp}}" 1471 | } 1472 | ] 1473 | } 1474 | }, 1475 | "response": [] 1476 | }, 1477 | { 1478 | "name": "Dust Transfer", 1479 | "request": { 1480 | "method": "POST", 1481 | "header": [ 1482 | { 1483 | "key": "x-mexc-apikey", 1484 | "value": "{{api_key}}", 1485 | "type": "text" 1486 | } 1487 | ], 1488 | "url": { 1489 | "raw": "{{api_url}}/api/v3/capital/convert?asset=ARB×tamp={{timestamp}}&signature={{signature}}", 1490 | "host": [ 1491 | "{{api_url}}" 1492 | ], 1493 | "path": [ 1494 | "api", 1495 | "v3", 1496 | "capital", 1497 | "convert" 1498 | ], 1499 | "query": [ 1500 | { 1501 | "key": "asset", 1502 | "value": "ARB" 1503 | }, 1504 | { 1505 | "key": "timestamp", 1506 | "value": "{{timestamp}}" 1507 | }, 1508 | { 1509 | "key": "signature", 1510 | "value": "{{signature}}" 1511 | } 1512 | ] 1513 | } 1514 | }, 1515 | "response": [] 1516 | }, 1517 | { 1518 | "name": "DustLog", 1519 | "request": { 1520 | "method": "GET", 1521 | "header": [ 1522 | { 1523 | "key": "x-mexc-apikey", 1524 | "value": "{{api_key}}", 1525 | "type": "text" 1526 | } 1527 | ], 1528 | "url": { 1529 | "raw": "{{api_url}}/api/v3/capital/convert?signature={{signature}}×tamp={{timestamp}}", 1530 | "host": [ 1531 | "{{api_url}}" 1532 | ], 1533 | "path": [ 1534 | "api", 1535 | "v3", 1536 | "capital", 1537 | "convert" 1538 | ], 1539 | "query": [ 1540 | { 1541 | "key": "signature", 1542 | "value": "{{signature}}" 1543 | }, 1544 | { 1545 | "key": "timestamp", 1546 | "value": "{{timestamp}}" 1547 | } 1548 | ] 1549 | } 1550 | }, 1551 | "response": [] 1552 | } 1553 | ] 1554 | }, 1555 | { 1556 | "name": "Margin", 1557 | "item": [ 1558 | { 1559 | "name": "Change Trade Mode", 1560 | "request": { 1561 | "method": "POST", 1562 | "header": [ 1563 | { 1564 | "key": "x-mexc-apikey", 1565 | "value": "{{api_key}}", 1566 | "type": "text" 1567 | } 1568 | ], 1569 | "url": { 1570 | "raw": "{{api_url}}/api/v3/margin/tradeMode?symbol=BTCUSDT&tradeMode=0&recvWindow=60000×tamp={{timestamp}}&signature={{signature}}", 1571 | "host": [ 1572 | "{{api_url}}" 1573 | ], 1574 | "path": [ 1575 | "api", 1576 | "v3", 1577 | "margin", 1578 | "tradeMode" 1579 | ], 1580 | "query": [ 1581 | { 1582 | "key": "symbol", 1583 | "value": "BTCUSDT" 1584 | }, 1585 | { 1586 | "key": "tradeMode", 1587 | "value": "0" 1588 | }, 1589 | { 1590 | "key": "recvWindow", 1591 | "value": "60000" 1592 | }, 1593 | { 1594 | "key": "timestamp", 1595 | "value": "{{timestamp}}" 1596 | }, 1597 | { 1598 | "key": "signature", 1599 | "value": "{{signature}}" 1600 | } 1601 | ] 1602 | } 1603 | }, 1604 | "response": [] 1605 | }, 1606 | { 1607 | "name": "Margin Account New Order", 1608 | "request": { 1609 | "method": "POST", 1610 | "header": [ 1611 | { 1612 | "key": "x-mexc-apikey", 1613 | "value": "{{api_key}}", 1614 | "type": "text" 1615 | } 1616 | ], 1617 | "url": { 1618 | "raw": "{{api_url}}/api/v3/margin/order?symbol=MXUSDT&side=BUY&type=FILL_OR_KILL&quantity=50&price=0.12483583475634&recvWindow=60000×tamp={{timestamp}}&signature={{signature}}", 1619 | "host": [ 1620 | "{{api_url}}" 1621 | ], 1622 | "path": [ 1623 | "api", 1624 | "v3", 1625 | "margin", 1626 | "order" 1627 | ], 1628 | "query": [ 1629 | { 1630 | "key": "symbol", 1631 | "value": "MXUSDT" 1632 | }, 1633 | { 1634 | "key": "side", 1635 | "value": "BUY" 1636 | }, 1637 | { 1638 | "key": "type", 1639 | "value": "FILL_OR_KILL" 1640 | }, 1641 | { 1642 | "key": "quantity", 1643 | "value": "50" 1644 | }, 1645 | { 1646 | "key": "price", 1647 | "value": "0.12483583475634" 1648 | }, 1649 | { 1650 | "key": "recvWindow", 1651 | "value": "60000" 1652 | }, 1653 | { 1654 | "key": "timestamp", 1655 | "value": "{{timestamp}}" 1656 | }, 1657 | { 1658 | "key": "signature", 1659 | "value": "{{signature}}" 1660 | } 1661 | ] 1662 | } 1663 | }, 1664 | "response": [] 1665 | }, 1666 | { 1667 | "name": "Margin Account Borrow", 1668 | "request": { 1669 | "method": "POST", 1670 | "header": [ 1671 | { 1672 | "key": "x-mexc-apikey", 1673 | "value": "{{api_key}}", 1674 | "type": "text" 1675 | } 1676 | ], 1677 | "url": { 1678 | "raw": "{{api_url}}/api/v3/margin/loan?asset=MX&isIsolated=TRUE&symbol=MXUSDT&amount=100.835834534856348×tamp={{timestamp}}&signature={{signature}}", 1679 | "host": [ 1680 | "{{api_url}}" 1681 | ], 1682 | "path": [ 1683 | "api", 1684 | "v3", 1685 | "margin", 1686 | "loan" 1687 | ], 1688 | "query": [ 1689 | { 1690 | "key": "asset", 1691 | "value": "MX" 1692 | }, 1693 | { 1694 | "key": "isIsolated", 1695 | "value": "TRUE" 1696 | }, 1697 | { 1698 | "key": "symbol", 1699 | "value": "MXUSDT" 1700 | }, 1701 | { 1702 | "key": "amount", 1703 | "value": "100.835834534856348" 1704 | }, 1705 | { 1706 | "key": "timestamp", 1707 | "value": "{{timestamp}}" 1708 | }, 1709 | { 1710 | "key": "signature", 1711 | "value": "{{signature}}" 1712 | } 1713 | ] 1714 | } 1715 | }, 1716 | "response": [] 1717 | }, 1718 | { 1719 | "name": "Margin Account Repay", 1720 | "request": { 1721 | "method": "POST", 1722 | "header": [ 1723 | { 1724 | "key": "x-mexc-apikey", 1725 | "value": "{{api_key}}", 1726 | "type": "text" 1727 | } 1728 | ], 1729 | "url": { 1730 | "raw": "{{api_url}}/api/v3/margin/repay?asset=MX&symbol=MXUSDT&amount=10&borrowId=706703220612927488&recvWindow=60000×tamp={{timestamp}}&signature={{signature}}", 1731 | "host": [ 1732 | "{{api_url}}" 1733 | ], 1734 | "path": [ 1735 | "api", 1736 | "v3", 1737 | "margin", 1738 | "repay" 1739 | ], 1740 | "query": [ 1741 | { 1742 | "key": "asset", 1743 | "value": "MX" 1744 | }, 1745 | { 1746 | "key": "symbol", 1747 | "value": "MXUSDT" 1748 | }, 1749 | { 1750 | "key": "amount", 1751 | "value": "10" 1752 | }, 1753 | { 1754 | "key": "borrowId", 1755 | "value": "706703220612927488" 1756 | }, 1757 | { 1758 | "key": "recvWindow", 1759 | "value": "60000" 1760 | }, 1761 | { 1762 | "key": "timestamp", 1763 | "value": "{{timestamp}}" 1764 | }, 1765 | { 1766 | "key": "signature", 1767 | "value": "{{signature}}" 1768 | } 1769 | ] 1770 | } 1771 | }, 1772 | "response": [] 1773 | }, 1774 | { 1775 | "name": "Margin Account Cancel all Open Orders on a Symbol", 1776 | "request": { 1777 | "method": "DELETE", 1778 | "header": [ 1779 | { 1780 | "key": "x-mexc-apikey", 1781 | "value": "{{api_key}}", 1782 | "type": "text" 1783 | } 1784 | ], 1785 | "url": { 1786 | "raw": "{{api_url}}/api/v3/margin/openOrders?symbol=MXUSDT×tamp={{timestamp}}&signature={{signature}}", 1787 | "host": [ 1788 | "{{api_url}}" 1789 | ], 1790 | "path": [ 1791 | "api", 1792 | "v3", 1793 | "margin", 1794 | "openOrders" 1795 | ], 1796 | "query": [ 1797 | { 1798 | "key": "symbol", 1799 | "value": "MXUSDT" 1800 | }, 1801 | { 1802 | "key": "timestamp", 1803 | "value": "{{timestamp}}" 1804 | }, 1805 | { 1806 | "key": "signature", 1807 | "value": "{{signature}}" 1808 | } 1809 | ] 1810 | } 1811 | }, 1812 | "response": [] 1813 | }, 1814 | { 1815 | "name": "Margin Account Cancel Order", 1816 | "request": { 1817 | "method": "DELETE", 1818 | "header": [ 1819 | { 1820 | "key": "x-mexc-apikey", 1821 | "value": "{{api_key}}", 1822 | "type": "text" 1823 | } 1824 | ], 1825 | "url": { 1826 | "raw": "{{api_url}}/api/v3/margin/order?symbol=MXUSDT&orderId=706702415281393664&recvWindow=60000×tamp={{timestamp}}&signature={{signature}}", 1827 | "host": [ 1828 | "{{api_url}}" 1829 | ], 1830 | "path": [ 1831 | "api", 1832 | "v3", 1833 | "margin", 1834 | "order" 1835 | ], 1836 | "query": [ 1837 | { 1838 | "key": "symbol", 1839 | "value": "MXUSDT" 1840 | }, 1841 | { 1842 | "key": "orderId", 1843 | "value": "706702415281393664" 1844 | }, 1845 | { 1846 | "key": "recvWindow", 1847 | "value": "60000" 1848 | }, 1849 | { 1850 | "key": "timestamp", 1851 | "value": "{{timestamp}}" 1852 | }, 1853 | { 1854 | "key": "signature", 1855 | "value": "{{signature}}" 1856 | } 1857 | ] 1858 | } 1859 | }, 1860 | "response": [] 1861 | }, 1862 | { 1863 | "name": "Query Loan Record", 1864 | "request": { 1865 | "method": "GET", 1866 | "header": [ 1867 | { 1868 | "key": "x-mexc-apikey", 1869 | "value": "{{api_key}}", 1870 | "type": "text" 1871 | } 1872 | ], 1873 | "url": { 1874 | "raw": "{{api_url}}/api/v3/margin/loan?asset=BTC&symbol=BTCUSDT×tamp={{timestamp}}&signature={{signature}}", 1875 | "host": [ 1876 | "{{api_url}}" 1877 | ], 1878 | "path": [ 1879 | "api", 1880 | "v3", 1881 | "margin", 1882 | "loan" 1883 | ], 1884 | "query": [ 1885 | { 1886 | "key": "asset", 1887 | "value": "BTC" 1888 | }, 1889 | { 1890 | "key": "symbol", 1891 | "value": "BTCUSDT" 1892 | }, 1893 | { 1894 | "key": "recvWindow", 1895 | "value": "60000", 1896 | "disabled": true 1897 | }, 1898 | { 1899 | "key": "timestamp", 1900 | "value": "{{timestamp}}" 1901 | }, 1902 | { 1903 | "key": "signature", 1904 | "value": "{{signature}}" 1905 | } 1906 | ] 1907 | } 1908 | }, 1909 | "response": [] 1910 | }, 1911 | { 1912 | "name": "Query Margin Account's All Order", 1913 | "request": { 1914 | "method": "GET", 1915 | "header": [ 1916 | { 1917 | "key": "x-mexc-apikey", 1918 | "value": "{{api_key}}", 1919 | "type": "text" 1920 | } 1921 | ], 1922 | "url": { 1923 | "raw": "{{api_url}}/api/v3/margin/allOrders?symbol=MXUSDT&recvWindow=60000×tamp={{timestamp}}&signature={{signature}}", 1924 | "host": [ 1925 | "{{api_url}}" 1926 | ], 1927 | "path": [ 1928 | "api", 1929 | "v3", 1930 | "margin", 1931 | "allOrders" 1932 | ], 1933 | "query": [ 1934 | { 1935 | "key": "symbol", 1936 | "value": "MXUSDT" 1937 | }, 1938 | { 1939 | "key": "recvWindow", 1940 | "value": "60000" 1941 | }, 1942 | { 1943 | "key": "timestamp", 1944 | "value": "{{timestamp}}" 1945 | }, 1946 | { 1947 | "key": "signature", 1948 | "value": "{{signature}}" 1949 | } 1950 | ] 1951 | } 1952 | }, 1953 | "response": [] 1954 | }, 1955 | { 1956 | "name": "Query Margin Account's Trade List", 1957 | "request": { 1958 | "method": "GET", 1959 | "header": [ 1960 | { 1961 | "key": "x-mexc-apikey", 1962 | "value": "{{api_key}}", 1963 | "type": "text" 1964 | } 1965 | ], 1966 | "url": { 1967 | "raw": "{{api_url}}/api/v3/margin/myTrades?symbol=BTCUSDT&recvWindow=60000×tamp={{timestamp}}&signature={{signature}}", 1968 | "host": [ 1969 | "{{api_url}}" 1970 | ], 1971 | "path": [ 1972 | "api", 1973 | "v3", 1974 | "margin", 1975 | "myTrades" 1976 | ], 1977 | "query": [ 1978 | { 1979 | "key": "symbol", 1980 | "value": "BTCUSDT" 1981 | }, 1982 | { 1983 | "key": "recvWindow", 1984 | "value": "60000" 1985 | }, 1986 | { 1987 | "key": "timestamp", 1988 | "value": "{{timestamp}}" 1989 | }, 1990 | { 1991 | "key": "signature", 1992 | "value": "{{signature}}" 1993 | } 1994 | ] 1995 | } 1996 | }, 1997 | "response": [] 1998 | }, 1999 | { 2000 | "name": "Query Margin Account's Open Order", 2001 | "request": { 2002 | "method": "GET", 2003 | "header": [ 2004 | { 2005 | "key": "x-mexc-apikey", 2006 | "value": "{{api_key}}", 2007 | "type": "text" 2008 | } 2009 | ], 2010 | "url": { 2011 | "raw": "{{api_url}}/api/v3/margin/openOrders?symbol=BTCUSDT&recvWindow=60000×tamp={{timestamp}}&signature={{signature}}", 2012 | "host": [ 2013 | "{{api_url}}" 2014 | ], 2015 | "path": [ 2016 | "api", 2017 | "v3", 2018 | "margin", 2019 | "openOrders" 2020 | ], 2021 | "query": [ 2022 | { 2023 | "key": "symbol", 2024 | "value": "BTCUSDT" 2025 | }, 2026 | { 2027 | "key": "recvWindow", 2028 | "value": "60000" 2029 | }, 2030 | { 2031 | "key": "timestamp", 2032 | "value": "{{timestamp}}" 2033 | }, 2034 | { 2035 | "key": "signature", 2036 | "value": "{{signature}}" 2037 | } 2038 | ] 2039 | } 2040 | }, 2041 | "response": [] 2042 | }, 2043 | { 2044 | "name": "Query Margin Account's maxTransferable", 2045 | "request": { 2046 | "method": "GET", 2047 | "header": [ 2048 | { 2049 | "key": "x-mexc-apikey", 2050 | "value": "{{api_key}}", 2051 | "type": "text" 2052 | } 2053 | ], 2054 | "url": { 2055 | "raw": "{{api_url}}/api/v3/margin/maxTransferable?symbol=MX_USDT&asset=MX×tamp={{timestamp}}&signature={{signature}}", 2056 | "host": [ 2057 | "{{api_url}}" 2058 | ], 2059 | "path": [ 2060 | "api", 2061 | "v3", 2062 | "margin", 2063 | "maxTransferable" 2064 | ], 2065 | "query": [ 2066 | { 2067 | "key": "symbol", 2068 | "value": "MX_USDT" 2069 | }, 2070 | { 2071 | "key": "asset", 2072 | "value": "MX" 2073 | }, 2074 | { 2075 | "key": "timestamp", 2076 | "value": "{{timestamp}}" 2077 | }, 2078 | { 2079 | "key": "signature", 2080 | "value": "{{signature}}" 2081 | } 2082 | ] 2083 | } 2084 | }, 2085 | "response": [] 2086 | }, 2087 | { 2088 | "name": "Query Margin Account's priceIndex", 2089 | "request": { 2090 | "method": "GET", 2091 | "header": [ 2092 | { 2093 | "key": "x-mexc-apikey", 2094 | "value": "{{api_key}}", 2095 | "type": "text" 2096 | } 2097 | ], 2098 | "url": { 2099 | "raw": "{{api_url}}/api/v3/margin/priceIndex?symbol=MXUSDT×tamp={{timestamp}}&signature={{signature}}", 2100 | "host": [ 2101 | "{{api_url}}" 2102 | ], 2103 | "path": [ 2104 | "api", 2105 | "v3", 2106 | "margin", 2107 | "priceIndex" 2108 | ], 2109 | "query": [ 2110 | { 2111 | "key": "symbol", 2112 | "value": "MXUSDT" 2113 | }, 2114 | { 2115 | "key": "timestamp", 2116 | "value": "{{timestamp}}" 2117 | }, 2118 | { 2119 | "key": "signature", 2120 | "value": "{{signature}}" 2121 | } 2122 | ] 2123 | } 2124 | }, 2125 | "response": [] 2126 | }, 2127 | { 2128 | "name": "Query Margin Account's order", 2129 | "request": { 2130 | "method": "GET", 2131 | "header": [ 2132 | { 2133 | "key": "x-mexc-apikey", 2134 | "value": "{{api_key}}", 2135 | "type": "text" 2136 | } 2137 | ], 2138 | "url": { 2139 | "raw": "{{api_url}}/api/v3/margin/order?orderId=746784754145300480&symbol=MXUSDT&recvWindow=60000×tamp={{timestamp}}&signature={{signature}}", 2140 | "host": [ 2141 | "{{api_url}}" 2142 | ], 2143 | "path": [ 2144 | "api", 2145 | "v3", 2146 | "margin", 2147 | "order" 2148 | ], 2149 | "query": [ 2150 | { 2151 | "key": "orderId", 2152 | "value": "746784754145300480" 2153 | }, 2154 | { 2155 | "key": "symbol", 2156 | "value": "MXUSDT" 2157 | }, 2158 | { 2159 | "key": "recvWindow", 2160 | "value": "60000" 2161 | }, 2162 | { 2163 | "key": "timestamp", 2164 | "value": "{{timestamp}}" 2165 | }, 2166 | { 2167 | "key": "signature", 2168 | "value": "{{signature}}" 2169 | } 2170 | ] 2171 | } 2172 | }, 2173 | "response": [] 2174 | }, 2175 | { 2176 | "name": "Query Isolated Margin Account Info", 2177 | "request": { 2178 | "method": "GET", 2179 | "header": [ 2180 | { 2181 | "key": "x-mexc-apikey", 2182 | "value": "{{api_key}}", 2183 | "type": "text" 2184 | } 2185 | ], 2186 | "url": { 2187 | "raw": "{{api_url}}/api/v3/margin/isolated/account?symbols=BTCUSDT&recvWindow=60000×tamp={{timestamp}}&signature={{signature}}", 2188 | "host": [ 2189 | "{{api_url}}" 2190 | ], 2191 | "path": [ 2192 | "api", 2193 | "v3", 2194 | "margin", 2195 | "isolated", 2196 | "account" 2197 | ], 2198 | "query": [ 2199 | { 2200 | "key": "symbols", 2201 | "value": "BTCUSDT" 2202 | }, 2203 | { 2204 | "key": "recvWindow", 2205 | "value": "60000" 2206 | }, 2207 | { 2208 | "key": "timestamp", 2209 | "value": "{{timestamp}}" 2210 | }, 2211 | { 2212 | "key": "signature", 2213 | "value": "{{signature}}" 2214 | } 2215 | ] 2216 | } 2217 | }, 2218 | "response": [] 2219 | }, 2220 | { 2221 | "name": "Query Margin Account's trigerOrder", 2222 | "request": { 2223 | "method": "GET", 2224 | "header": [ 2225 | { 2226 | "key": "x-mexc-apikey", 2227 | "value": "{{api_key}}", 2228 | "type": "text" 2229 | } 2230 | ], 2231 | "url": { 2232 | "raw": "{{api_url}}/api/v3/margin/trigerOrder?timestamp={{timestamp}}&signature={{signature}}", 2233 | "host": [ 2234 | "{{api_url}}" 2235 | ], 2236 | "path": [ 2237 | "api", 2238 | "v3", 2239 | "margin", 2240 | "trigerOrder" 2241 | ], 2242 | "query": [ 2243 | { 2244 | "key": "timestamp", 2245 | "value": "{{timestamp}}" 2246 | }, 2247 | { 2248 | "key": "signature", 2249 | "value": "{{signature}}" 2250 | } 2251 | ] 2252 | } 2253 | }, 2254 | "response": [] 2255 | }, 2256 | { 2257 | "name": "Query Margin Account's maxBorrowable", 2258 | "request": { 2259 | "method": "GET", 2260 | "header": [ 2261 | { 2262 | "key": "x-mexc-apikey", 2263 | "value": "{{api_key}}", 2264 | "type": "text" 2265 | } 2266 | ], 2267 | "url": { 2268 | "raw": "{{api_url}}/api/v3/margin/maxBorrowable?symbol=BTCUSDT&asset=USDT×tamp={{timestamp}}&signature={{signature}}", 2269 | "host": [ 2270 | "{{api_url}}" 2271 | ], 2272 | "path": [ 2273 | "api", 2274 | "v3", 2275 | "margin", 2276 | "maxBorrowable" 2277 | ], 2278 | "query": [ 2279 | { 2280 | "key": "symbol", 2281 | "value": "BTCUSDT" 2282 | }, 2283 | { 2284 | "key": "asset", 2285 | "value": "USDT" 2286 | }, 2287 | { 2288 | "key": "timestamp", 2289 | "value": "{{timestamp}}" 2290 | }, 2291 | { 2292 | "key": "signature", 2293 | "value": "{{signature}}" 2294 | } 2295 | ] 2296 | } 2297 | }, 2298 | "response": [] 2299 | }, 2300 | { 2301 | "name": "Query Repay Record", 2302 | "request": { 2303 | "method": "GET", 2304 | "header": [ 2305 | { 2306 | "key": "x-mexc-apikey", 2307 | "value": "{{api_key}}", 2308 | "type": "text" 2309 | } 2310 | ], 2311 | "url": { 2312 | "raw": "{{api_url}}/api/v3/margin/repay?symbol=MXUSDT&asset=MX&recvWindow=60000×tamp={{timestamp}}&signature={{signature}}", 2313 | "host": [ 2314 | "{{api_url}}" 2315 | ], 2316 | "path": [ 2317 | "api", 2318 | "v3", 2319 | "margin", 2320 | "repay" 2321 | ], 2322 | "query": [ 2323 | { 2324 | "key": "symbol", 2325 | "value": "MXUSDT" 2326 | }, 2327 | { 2328 | "key": "asset", 2329 | "value": "MX" 2330 | }, 2331 | { 2332 | "key": "recvWindow", 2333 | "value": "60000" 2334 | }, 2335 | { 2336 | "key": "timestamp", 2337 | "value": "{{timestamp}}" 2338 | }, 2339 | { 2340 | "key": "signature", 2341 | "value": "{{signature}}" 2342 | } 2343 | ] 2344 | } 2345 | }, 2346 | "response": [] 2347 | }, 2348 | { 2349 | "name": "Query Solated Pair", 2350 | "request": { 2351 | "method": "GET", 2352 | "header": [ 2353 | { 2354 | "key": "x-mexc-apikey", 2355 | "value": "{{api_key}}", 2356 | "type": "text" 2357 | } 2358 | ], 2359 | "url": { 2360 | "raw": "{{api_url}}/api/v3/margin/isolated/pair?symbol=BTCUSDT×tamp={{timestamp}}&signature={{signature}}", 2361 | "host": [ 2362 | "{{api_url}}" 2363 | ], 2364 | "path": [ 2365 | "api", 2366 | "v3", 2367 | "margin", 2368 | "isolated", 2369 | "pair" 2370 | ], 2371 | "query": [ 2372 | { 2373 | "key": "symbol", 2374 | "value": "BTCUSDT" 2375 | }, 2376 | { 2377 | "key": "timestamp", 2378 | "value": "{{timestamp}}" 2379 | }, 2380 | { 2381 | "key": "signature", 2382 | "value": "{{signature}}" 2383 | } 2384 | ] 2385 | } 2386 | }, 2387 | "response": [] 2388 | }, 2389 | { 2390 | "name": "Query forceLiquidationRec", 2391 | "request": { 2392 | "method": "GET", 2393 | "header": [ 2394 | { 2395 | "key": "x-mexc-apikey", 2396 | "value": "{{api_key}}", 2397 | "type": "text" 2398 | } 2399 | ], 2400 | "url": { 2401 | "raw": "{{api_url}}/api/v3/margin/forceLiquidationRec?symbol=MXUSDT×tamp={{timestamp}}&signature={{signature}}", 2402 | "host": [ 2403 | "{{api_url}}" 2404 | ], 2405 | "path": [ 2406 | "api", 2407 | "v3", 2408 | "margin", 2409 | "forceLiquidationRec" 2410 | ], 2411 | "query": [ 2412 | { 2413 | "key": "symbol", 2414 | "value": "MXUSDT" 2415 | }, 2416 | { 2417 | "key": "timestamp", 2418 | "value": "{{timestamp}}" 2419 | }, 2420 | { 2421 | "key": "signature", 2422 | "value": "{{signature}}" 2423 | } 2424 | ] 2425 | } 2426 | }, 2427 | "response": [] 2428 | } 2429 | ] 2430 | }, 2431 | { 2432 | "name": "Parent child account", 2433 | "item": [ 2434 | { 2435 | "name": "new virtualSubAccount", 2436 | "request": { 2437 | "method": "POST", 2438 | "header": [ 2439 | { 2440 | "key": "x-mexc-apikey", 2441 | "value": "{{api_key}}", 2442 | "type": "text" 2443 | } 2444 | ], 2445 | "url": { 2446 | "raw": "{{api_url}}/api/v3/sub-account/virtualSubAccount?subAccount=test07261234567803¬e=testing ×tamp={{timestamp}}&signature={{signature}}", 2447 | "host": [ 2448 | "{{api_url}}" 2449 | ], 2450 | "path": [ 2451 | "api", 2452 | "v3", 2453 | "sub-account", 2454 | "virtualSubAccount" 2455 | ], 2456 | "query": [ 2457 | { 2458 | "key": "subAccount", 2459 | "value": "test07261234567803", 2460 | "description": "subAccount" 2461 | }, 2462 | { 2463 | "key": "note", 2464 | "value": "testing ", 2465 | "description": "remarks" 2466 | }, 2467 | { 2468 | "key": "recvWindow", 2469 | "value": "", 2470 | "disabled": true 2471 | }, 2472 | { 2473 | "key": "timestamp", 2474 | "value": "{{timestamp}}" 2475 | }, 2476 | { 2477 | "key": "signature", 2478 | "value": "{{signature}}" 2479 | } 2480 | ] 2481 | } 2482 | }, 2483 | "response": [] 2484 | }, 2485 | { 2486 | "name": "Query sub-account list", 2487 | "request": { 2488 | "method": "GET", 2489 | "header": [ 2490 | { 2491 | "key": "x-mexc-apikey", 2492 | "value": "{{api_key}}", 2493 | "type": "text" 2494 | } 2495 | ], 2496 | "url": { 2497 | "raw": "{{api_url}}/api/v3/sub-account/list?timestamp={{timestamp}}&signature={{signature}}&recvWindow=60000", 2498 | "host": [ 2499 | "{{api_url}}" 2500 | ], 2501 | "path": [ 2502 | "api", 2503 | "v3", 2504 | "sub-account", 2505 | "list" 2506 | ], 2507 | "query": [ 2508 | { 2509 | "key": "subAccount", 2510 | "value": "", 2511 | "description": "subAccount", 2512 | "disabled": true 2513 | }, 2514 | { 2515 | "key": "isFreeze", 2516 | "value": "", 2517 | "description": "true or false", 2518 | "disabled": true 2519 | }, 2520 | { 2521 | "key": "page", 2522 | "value": "", 2523 | "disabled": true 2524 | }, 2525 | { 2526 | "key": "limit", 2527 | "value": "", 2528 | "disabled": true 2529 | }, 2530 | { 2531 | "key": "timestamp", 2532 | "value": "{{timestamp}}" 2533 | }, 2534 | { 2535 | "key": "signature", 2536 | "value": "{{signature}}" 2537 | }, 2538 | { 2539 | "key": "recvWindow", 2540 | "value": "60000" 2541 | } 2542 | ] 2543 | } 2544 | }, 2545 | "response": [] 2546 | }, 2547 | { 2548 | "name": "new sub-account apiKey", 2549 | "request": { 2550 | "method": "POST", 2551 | "header": [ 2552 | { 2553 | "key": "x-mexc-apikey", 2554 | "value": "{{api_key}}", 2555 | "type": "text" 2556 | } 2557 | ], 2558 | "url": { 2559 | "raw": "{{api_url}}/api/v3/sub-account/apiKey?subAccount=1152058321@qq.com¬e=test&permissions=SPOT_DEAL_READ,SPOT_ACCOUNT_WRITE×tamp={{timestamp}}&signature={{signature}}", 2560 | "host": [ 2561 | "{{api_url}}" 2562 | ], 2563 | "path": [ 2564 | "api", 2565 | "v3", 2566 | "sub-account", 2567 | "apiKey" 2568 | ], 2569 | "query": [ 2570 | { 2571 | "key": "subAccount", 2572 | "value": "1152058321@qq.com" 2573 | }, 2574 | { 2575 | "key": "note", 2576 | "value": "test" 2577 | }, 2578 | { 2579 | "key": "permissions", 2580 | "value": "SPOT_DEAL_READ,SPOT_ACCOUNT_WRITE" 2581 | }, 2582 | { 2583 | "key": "timestamp", 2584 | "value": "{{timestamp}}" 2585 | }, 2586 | { 2587 | "key": "signature", 2588 | "value": "{{signature}}" 2589 | }, 2590 | { 2591 | "key": "ip", 2592 | "value": "", 2593 | "disabled": true 2594 | }, 2595 | { 2596 | "key": "recvWindow", 2597 | "value": "", 2598 | "disabled": true 2599 | } 2600 | ] 2601 | } 2602 | }, 2603 | "response": [] 2604 | }, 2605 | { 2606 | "name": "Query sub-account apiKey", 2607 | "request": { 2608 | "method": "GET", 2609 | "header": [ 2610 | { 2611 | "key": "x-mexc-apikey", 2612 | "value": "{{api_key}}", 2613 | "type": "text" 2614 | } 2615 | ], 2616 | "url": { 2617 | "raw": "{{api_url}}/api/v3/sub-account/apiKey?subAccount=test0505×tamp={{timestamp}}&signature={{signature}}", 2618 | "host": [ 2619 | "{{api_url}}" 2620 | ], 2621 | "path": [ 2622 | "api", 2623 | "v3", 2624 | "sub-account", 2625 | "apiKey" 2626 | ], 2627 | "query": [ 2628 | { 2629 | "key": "subAccount", 2630 | "value": "test0505" 2631 | }, 2632 | { 2633 | "key": "recvWindow", 2634 | "value": "", 2635 | "disabled": true 2636 | }, 2637 | { 2638 | "key": "timestamp", 2639 | "value": "{{timestamp}}" 2640 | }, 2641 | { 2642 | "key": "signature", 2643 | "value": "{{signature}}" 2644 | } 2645 | ] 2646 | } 2647 | }, 2648 | "response": [] 2649 | }, 2650 | { 2651 | "name": "Delete sub-account apiKey", 2652 | "request": { 2653 | "method": "DELETE", 2654 | "header": [ 2655 | { 2656 | "key": "x-mexc-apikey", 2657 | "value": "{{api_key}}", 2658 | "type": "text" 2659 | } 2660 | ], 2661 | "body": { 2662 | "mode": "raw", 2663 | "raw": "" 2664 | }, 2665 | "url": { 2666 | "raw": "{{api_url}}/api/v3/sub-account/apiKey?subAccount=1152058321@qq.com&apiKey=mx0M7w5LZh7bPK4PLA&signature={{signature}}×tamp={{timestamp}}", 2667 | "host": [ 2668 | "{{api_url}}" 2669 | ], 2670 | "path": [ 2671 | "api", 2672 | "v3", 2673 | "sub-account", 2674 | "apiKey" 2675 | ], 2676 | "query": [ 2677 | { 2678 | "key": "recvWindow", 2679 | "value": "", 2680 | "disabled": true 2681 | }, 2682 | { 2683 | "key": "subAccount", 2684 | "value": "1152058321@qq.com" 2685 | }, 2686 | { 2687 | "key": "apiKey", 2688 | "value": "mx0M7w5LZh7bPK4PLA" 2689 | }, 2690 | { 2691 | "key": "signature", 2692 | "value": "{{signature}}" 2693 | }, 2694 | { 2695 | "key": "timestamp", 2696 | "value": "{{timestamp}}" 2697 | } 2698 | ] 2699 | } 2700 | }, 2701 | "response": [] 2702 | }, 2703 | { 2704 | "name": "Sub-account UniversalTransfer", 2705 | "request": { 2706 | "method": "POST", 2707 | "header": [ 2708 | { 2709 | "key": "x-mexc-apikey", 2710 | "value": "{{api_key}}", 2711 | "type": "text" 2712 | } 2713 | ], 2714 | "url": { 2715 | "raw": "{{api_url}}/api/v3/capital/sub-account/universalTransfer?asset=USDT&amount=0.1&fromAccountType=SPOT&fromAccount=1152058321@qq.com&toAccountType=SPOT&toAccount=test0622&clientTranId=1111test×tamp={{timestamp}}&signature={{signature}}", 2716 | "host": [ 2717 | "{{api_url}}" 2718 | ], 2719 | "path": [ 2720 | "api", 2721 | "v3", 2722 | "capital", 2723 | "sub-account", 2724 | "universalTransfer" 2725 | ], 2726 | "query": [ 2727 | { 2728 | "key": "asset", 2729 | "value": "USDT" 2730 | }, 2731 | { 2732 | "key": "amount", 2733 | "value": "0.1" 2734 | }, 2735 | { 2736 | "key": "fromAccountType", 2737 | "value": "SPOT" 2738 | }, 2739 | { 2740 | "key": "fromAccount", 2741 | "value": "1152058321@qq.com" 2742 | }, 2743 | { 2744 | "key": "toAccountType", 2745 | "value": "SPOT" 2746 | }, 2747 | { 2748 | "key": "toAccount", 2749 | "value": "test0622" 2750 | }, 2751 | { 2752 | "key": "symbol", 2753 | "value": "MXUSDT", 2754 | "disabled": true 2755 | }, 2756 | { 2757 | "key": "startTime", 2758 | "value": "1656603881000", 2759 | "disabled": true 2760 | }, 2761 | { 2762 | "key": "clientTranId", 2763 | "value": "1111test" 2764 | }, 2765 | { 2766 | "key": "endTime", 2767 | "value": "1656603895000", 2768 | "disabled": true 2769 | }, 2770 | { 2771 | "key": "timestamp", 2772 | "value": "{{timestamp}}" 2773 | }, 2774 | { 2775 | "key": "signature", 2776 | "value": "{{signature}}" 2777 | } 2778 | ] 2779 | } 2780 | }, 2781 | "response": [] 2782 | }, 2783 | { 2784 | "name": "Query Sub-account UniversalTransfer Record", 2785 | "request": { 2786 | "method": "GET", 2787 | "header": [ 2788 | { 2789 | "key": "x-mexc-apikey", 2790 | "value": "{{api_key}}", 2791 | "type": "text" 2792 | } 2793 | ], 2794 | "url": { 2795 | "raw": "{{api_url}}/api/v3/capital/sub-account/universalTransfer?asset=USDT&fromAccountType=SPOT&toAccountType=SPOT&toAccount=test0622×tamp={{timestamp}}&signature={{signature}}", 2796 | "host": [ 2797 | "{{api_url}}" 2798 | ], 2799 | "path": [ 2800 | "api", 2801 | "v3", 2802 | "capital", 2803 | "sub-account", 2804 | "universalTransfer" 2805 | ], 2806 | "query": [ 2807 | { 2808 | "key": "asset", 2809 | "value": "USDT" 2810 | }, 2811 | { 2812 | "key": "amount", 2813 | "value": "2000.1111111111111111111", 2814 | "disabled": true 2815 | }, 2816 | { 2817 | "key": "fromAccountType", 2818 | "value": "SPOT" 2819 | }, 2820 | { 2821 | "key": "fromAccount", 2822 | "value": "792487830@qq.com", 2823 | "disabled": true 2824 | }, 2825 | { 2826 | "key": "toAccountType", 2827 | "value": "SPOT" 2828 | }, 2829 | { 2830 | "key": "toAccount", 2831 | "value": "test0622" 2832 | }, 2833 | { 2834 | "key": "symbol", 2835 | "value": "MXUSDT", 2836 | "disabled": true 2837 | }, 2838 | { 2839 | "key": "startTime", 2840 | "value": "1656603881000", 2841 | "disabled": true 2842 | }, 2843 | { 2844 | "key": "recvWindow", 2845 | "value": "60000", 2846 | "disabled": true 2847 | }, 2848 | { 2849 | "key": "timestamp", 2850 | "value": "{{timestamp}}" 2851 | }, 2852 | { 2853 | "key": "signature", 2854 | "value": "{{signature}}" 2855 | } 2856 | ] 2857 | } 2858 | }, 2859 | "response": [] 2860 | }, 2861 | { 2862 | "name": "Enable Futures For Sub-account", 2863 | "request": { 2864 | "method": "POST", 2865 | "header": [ 2866 | { 2867 | "key": "x-mexc-apikey", 2868 | "value": "{{api_key}}", 2869 | "type": "text" 2870 | } 2871 | ], 2872 | "url": { 2873 | "raw": "{{api_url}}/api/v3/sub-account/futures?subAccount=test0726×tamp={{timestamp}}&signature={{signature}}", 2874 | "host": [ 2875 | "{{api_url}}" 2876 | ], 2877 | "path": [ 2878 | "api", 2879 | "v3", 2880 | "sub-account", 2881 | "futures" 2882 | ], 2883 | "query": [ 2884 | { 2885 | "key": "subAccount", 2886 | "value": "test0726" 2887 | }, 2888 | { 2889 | "key": "timestamp", 2890 | "value": "{{timestamp}}" 2891 | }, 2892 | { 2893 | "key": "signature", 2894 | "value": "{{signature}}" 2895 | } 2896 | ] 2897 | } 2898 | }, 2899 | "response": [] 2900 | }, 2901 | { 2902 | "name": "Enable Margin For Sub-account", 2903 | "request": { 2904 | "method": "POST", 2905 | "header": [ 2906 | { 2907 | "key": "x-mexc-apikey", 2908 | "value": "{{api_key}}", 2909 | "type": "text" 2910 | } 2911 | ], 2912 | "url": { 2913 | "raw": "{{api_url}}/api/v3/sub-account/margin?subAccount=1152058321@qq.com×tamp={{timestamp}}&signature={{signature}}", 2914 | "host": [ 2915 | "{{api_url}}" 2916 | ], 2917 | "path": [ 2918 | "api", 2919 | "v3", 2920 | "sub-account", 2921 | "margin" 2922 | ], 2923 | "query": [ 2924 | { 2925 | "key": "subAccount", 2926 | "value": "1152058321@qq.com" 2927 | }, 2928 | { 2929 | "key": "timestamp", 2930 | "value": "{{timestamp}}" 2931 | }, 2932 | { 2933 | "key": "signature", 2934 | "value": "{{signature}}" 2935 | } 2936 | ] 2937 | } 2938 | }, 2939 | "response": [] 2940 | } 2941 | ] 2942 | }, 2943 | { 2944 | "name": "Rebate", 2945 | "item": [ 2946 | { 2947 | "name": "Get Rebate History Records", 2948 | "request": { 2949 | "method": "GET", 2950 | "header": [ 2951 | { 2952 | "key": "x-mexc-apikey", 2953 | "value": "{{api_key}}", 2954 | "type": "text" 2955 | } 2956 | ], 2957 | "url": { 2958 | "raw": "{{api_url}}/api/v3/rebate/taxQuery?recvWindow=60000×tamp={{timestamp}}&signature={{signature}}", 2959 | "host": [ 2960 | "{{api_url}}" 2961 | ], 2962 | "path": [ 2963 | "api", 2964 | "v3", 2965 | "rebate", 2966 | "taxQuery" 2967 | ], 2968 | "query": [ 2969 | { 2970 | "key": "recvWindow", 2971 | "value": "60000" 2972 | }, 2973 | { 2974 | "key": "timestamp", 2975 | "value": "{{timestamp}}" 2976 | }, 2977 | { 2978 | "key": "signature", 2979 | "value": "{{signature}}" 2980 | } 2981 | ] 2982 | } 2983 | }, 2984 | "response": [] 2985 | }, 2986 | { 2987 | "name": "Get Rebate Records Detail", 2988 | "request": { 2989 | "method": "GET", 2990 | "header": [ 2991 | { 2992 | "key": "x-mexc-apikey", 2993 | "value": "{{api_key}}", 2994 | "type": "text" 2995 | } 2996 | ], 2997 | "url": { 2998 | "raw": "{{api_url}}/api/v3/rebate/detail?recvWindow=60000×tamp={{timestamp}}&signature={{signature}}", 2999 | "host": [ 3000 | "{{api_url}}" 3001 | ], 3002 | "path": [ 3003 | "api", 3004 | "v3", 3005 | "rebate", 3006 | "detail" 3007 | ], 3008 | "query": [ 3009 | { 3010 | "key": "recvWindow", 3011 | "value": "60000" 3012 | }, 3013 | { 3014 | "key": "timestamp", 3015 | "value": "{{timestamp}}" 3016 | }, 3017 | { 3018 | "key": "signature", 3019 | "value": "{{signature}}" 3020 | } 3021 | ] 3022 | } 3023 | }, 3024 | "response": [] 3025 | }, 3026 | { 3027 | "name": "Get Self Rebate Records Detail", 3028 | "request": { 3029 | "method": "GET", 3030 | "header": [ 3031 | { 3032 | "key": "x-mexc-apikey", 3033 | "value": "{{api_key}}", 3034 | "type": "text" 3035 | } 3036 | ], 3037 | "url": { 3038 | "raw": "{{api_url}}/api/v3/rebate/detail/kickback?recvWindow=60000×tamp={{timestamp}}&signature={{signature}}", 3039 | "host": [ 3040 | "{{api_url}}" 3041 | ], 3042 | "path": [ 3043 | "api", 3044 | "v3", 3045 | "rebate", 3046 | "detail", 3047 | "kickback" 3048 | ], 3049 | "query": [ 3050 | { 3051 | "key": "recvWindow", 3052 | "value": "60000" 3053 | }, 3054 | { 3055 | "key": "timestamp", 3056 | "value": "{{timestamp}}" 3057 | }, 3058 | { 3059 | "key": "signature", 3060 | "value": "{{signature}}" 3061 | } 3062 | ] 3063 | } 3064 | }, 3065 | "response": [] 3066 | }, 3067 | { 3068 | "name": "Query ReferCode", 3069 | "request": { 3070 | "method": "GET", 3071 | "header": [ 3072 | { 3073 | "key": "x-mexc-apikey", 3074 | "value": "{{api_key}}", 3075 | "type": "text" 3076 | } 3077 | ], 3078 | "url": { 3079 | "raw": "{{api_url}}/api/v3/rebate/referCode?recvWindow=60000×tamp={{timestamp}}&signature={{signature}}", 3080 | "host": [ 3081 | "{{api_url}}" 3082 | ], 3083 | "path": [ 3084 | "api", 3085 | "v3", 3086 | "rebate", 3087 | "referCode" 3088 | ], 3089 | "query": [ 3090 | { 3091 | "key": "recvWindow", 3092 | "value": "60000" 3093 | }, 3094 | { 3095 | "key": "timestamp", 3096 | "value": "{{timestamp}}" 3097 | }, 3098 | { 3099 | "key": "signature", 3100 | "value": "{{signature}}" 3101 | } 3102 | ] 3103 | } 3104 | }, 3105 | "response": [] 3106 | } 3107 | ] 3108 | } 3109 | ], 3110 | "event": [ 3111 | { 3112 | "listen": "prerequest", 3113 | "script": { 3114 | "type": "text/javascript", 3115 | "exec": [ 3116 | "const ts = Date.now();", 3117 | "pm.environment.set(\"timestamp\", ts);", 3118 | "console.log('timestamp',ts);", 3119 | "", 3120 | "let paramsObject = {};", 3121 | "", 3122 | "const api_secret = pm.environment.get(\"api_secret\");", 3123 | "const api_key = pm.environment.get(\"api_key\");", 3124 | "console.log('api_secret',api_secret);", 3125 | "console.log('x-mexc-apikey',api_key);", 3126 | "", 3127 | "const parameters = pm.request.url.query;", 3128 | "console.log('parameters', parameters);", 3129 | "parameters.map((param) => {", 3130 | " if (param.key != 'signature' &&", 3131 | " param.key != 'timestamp' &&", 3132 | " !is_empty(param.value) &&", 3133 | " !is_disabled(param.disabled)) {", 3134 | " paramsObject[param.key] = param.value;", 3135 | " }", 3136 | "})", 3137 | "", 3138 | "Object.assign(paramsObject, { 'timestamp': ts });", 3139 | "", 3140 | "if (api_secret) {", 3141 | " let queryString = Object.keys(paramsObject).map((key) => {", 3142 | " return `${key}=${paramsObject[key]}`;", 3143 | " }).join('&');", 3144 | " console.log('queryString',queryString);", 3145 | "", 3146 | " const signature = CryptoJS.HmacSHA256(queryString, api_secret).toString();", 3147 | " console.log('signature',signature)", 3148 | " pm.environment.set(\"signature\", signature);", 3149 | "}", 3150 | "", 3151 | "", 3152 | "", 3153 | "function is_disabled(str) {", 3154 | " return str == true;", 3155 | "}", 3156 | "", 3157 | "function is_empty(str) {", 3158 | " if (typeof str == 'undefined' ||", 3159 | " !str ||", 3160 | " str.length === 0 ||", 3161 | " str === \"\" ||", 3162 | " !/[^\\s]/.test(str) ||", 3163 | " /^\\s*$/.test(str) ||", 3164 | " str.replace(/\\s/g, \"\") === \"\") {", 3165 | " return true;", 3166 | " }", 3167 | " else {", 3168 | " return false;", 3169 | " }", 3170 | "}" 3171 | ] 3172 | } 3173 | }, 3174 | { 3175 | "listen": "test", 3176 | "script": { 3177 | "type": "text/javascript", 3178 | "exec": [ 3179 | "" 3180 | ] 3181 | } 3182 | } 3183 | ] 3184 | } -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | [![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT) 2 | 3 | # MEXC API Postman 4 | [Postman](https://getpostman.com) is an API Collaboration Platform. 5 | 6 | MEXC now offers several Postman Collections and Environments (JSON files) for a quicker and easier usage of our RESTful APIs.
7 | You only need to import and set up with your own API and secret keys to begin. 8 | 9 | ## How to import and configure 10 | - Download the `mexc-api-postman` repository. 11 | 12 | - Click the `Import` button. On Postman for Mac, for example, the button is at the top left: 13 |

Screenshot of Postman for Mac, with 'Import' button pointed out at top left.

14 | 15 | - On the `Import` pop-up page, select the `Folder` tab. Click the `Choose folder from your computer` button and choose the root folder of the downloaded repository. 16 |

Screenshot of of Postman for Mac, showing the Import screen.

17 | 18 | - Select which collections and environments you would like to import and click the `Import` button. 19 |

Screenshot of of Postman for Mac, showing the Import screen after selecting the folder.

20 | 21 | - Select the `Environments` tab on the left, choose an environment, and set your Api Key and Secret Key by changing the `Current Value` column (see screenshot); 22 | (The `Timestamp`, `Signature`, `Initial Value` fields can be left empty as they’ll be automatically filled by Postman when sending a request.) 23 |

Screenshot of Postman for Mac, showing where the user should fill in their API and secret keys.

24 | 25 | - Select your newly-added environment from the environment dropdown menu. On Mac, this is at top right, to the left of the eye icon. 26 |

Screenshot of Postman for Mac, showing how imported environments can be selected from a dropdown .

27 | 28 | 29 | 30 | ## Postman safety practices 31 | The following practices are advised to secure your account's safety: 32 | 33 | - Don't use Collections obtained from an unknown source. 34 | - Review the environment JSON file before its usage. 35 | - Don't use any code that you don't understand. 36 | - Make sure that the withdrawal permission **is not enabled** for your API keys. 37 | - When you finish trying out the API, delete your API keys. 38 | 39 | 40 | ## FAQ 41 | **Q:** Why I can't get any response? 42 | 43 | You haven't imported the environment file or you've imported it but haven't selected it from the dropdown menu (mentioned in [[How to import and configure]]) 44 | 45 | **Q:** How can I debug a request or find the used URL? 46 | 47 | - Open the Postman's console to find requests' parameters and URL. 48 | - Debugging can be done by editing the `Pre-request Script` tab. 49 | 50 | **Q:** Error `API-key format invalid.` 51 | 52 | Likely causes: 53 | - API key is not set. 54 | - API key is not correct. 55 | - `x-mexc-apikey` is not selected in your Postman `Headers` tab. 56 | 57 | **Q:** Error `Signature for this request is not valid.` 58 | 59 | Likely causes: 60 | - Secret key is not set. 61 | - Request was made with at least one empty parameter. 62 | - `signature` is not the last parameter in the parameters list. 63 | 64 | **Q:** Error `Mandatory parameter 'xxxx' was not sent, was empty/null, or malformed.` 65 | 66 | Please refer to the API documentation to double check all the mandatory parameters. 67 | 68 | 69 | ## My question isn't here 70 | If you don't find your answer here, please consult https://t.me/MEXCAPIsupport for similar questions from the API support telegram group or open an issue [here](https://github.com/mxcdevelop/mexc-api-postman/issues). 71 | -------------------------------------------------------------------------------- /README_CN.md: -------------------------------------------------------------------------------- 1 | [![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT) 2 | 3 | # MEXC API Postman 4 | [Postman](https://getpostman.com) 是一个API合作平台。 5 | 6 | 为了便于用户快速方便的使用RESTful APIs,MEXC提供几个 Postman Collections 和 Environments 文件(JSON文件)。
7 | 只需要导入并设置自己的API密钥就能即可开始。 8 | 9 | 10 | ## 如何导入和配置 11 | - 下载 `mexc-api-postman` 存储库到本地。 12 | 13 | - 单击 `Import` 按钮。 例如,在 Mac 版 Postman 上,按钮位于左上角: 14 |

Mac 版 Postman 的屏幕截图,左上角指出了 'Import' 按钮。

15 | 16 | - 在 `Import` 弹出页面上,选择 `Folder` 选项卡。单击 `Choose folder from your computer` 按钮,然后选择下载存储库的根文件夹。 17 |

Mac 版 Postman 的屏幕截图,显示了导入屏幕。

18 | 19 | - 选择要导入的 collections 和 environments,然后单击`Import`按钮。 20 |

Mac 版 Postman 的屏幕截图,显示选择文件夹后的导入屏幕。

21 | 22 | - 选择左侧的 `Environments` 选项卡,选择一个 environment,在 `Current Value`的列上设置您的 Api Key 和 Api Secret Key(参见截图); 23 | (`Timestamp`、`Signature` 、`Initial Value`字段可以留空,它们会在请求时由 Postman 自动填写。) 24 |

Mac 版 Postman 的屏幕截图,显示用户在哪里填写API密钥。

25 | 26 | - 从环境下拉列表中选择新添加的 environment。在 Mac 上,它位于右上角,眼睛图标的左侧。 27 |

Mac 版 Postman 的屏幕截图,显示如何在下拉列表中选择导入的 environment。

28 | 29 | 30 | 31 | ## Postman 安全实践 32 | 为了确保账户安全,建议采取以下最佳安全实践: 33 | 34 | - 不要使用从未知来源获得的 Postman Collections。 35 | - 在使用前要检查好 Environment JSON 文件。 36 | - 不要使用任何你不理解的代码。 37 | - 确保 API 密钥的提款权限**未启用**。 38 | - 使用完 API 端点后,删除所有的 API 密钥。 39 | 40 | 41 | ## 常见问题 42 | **Q:** 为什么我得不到任何回应? 43 | 44 | 检查是否已导入 environment 设置并从列表中选择对应的environment。请按照上面的步骤设置好你的 environment。 45 | 46 | **Q:** 如何debug或者怎么查看请求的URL? 47 | 48 | - 在Postman的控制台内能看到每一个请求打印出的参数和URL。 49 | - 可以通过编辑`Pre-request Script`选项卡做调试。 50 | 51 | **Q:** 错误 `API-key format invalid.` 52 | 53 | 有几种可能性: 54 | - 未设置 `API key`。 55 | - `API key`不正确。 56 | - 在Postman`Headers`选项卡中未选择`x-mexc-apikey`。 57 | 58 | **Q:** 错误 `Signature for this request is not valid.` 59 | 60 | 有几种可能性: 61 | - 未设置 `Secret key`。 62 | - 选中的参数其中内至少一个参数没有赋值。 63 | - `signature`参数不在参数列表的最后。 64 | 65 | **Q:** 错误 `Mandatory parameter 'xxxx' was not sent, was empty/null, or malformed.` 66 | 67 | 请参阅 API 文档以仔细检查所有必需参数。 68 | 69 | 70 | ## 有疑问 71 | 可以加入API support电报群:https://t.me/MEXCAPIsupport 咨询类似的问题,或者在此存储库提供 [`issue`](https://github.com/mxcdevelop/mexc-api-postman/issues). 72 | -------------------------------------------------------------------------------- /V1 MEXC GLOBAL contract.postman_environment.json: -------------------------------------------------------------------------------- 1 | { 2 | "id": "5a570caa-1d8f-4b55-acda-803c4bf581ba", 3 | "name": "V1 MEXC GLOBAL contract", 4 | "values": [ 5 | { 6 | "key": "api_key", 7 | "value": "", 8 | "type": "default", 9 | "enabled": true 10 | }, 11 | { 12 | "key": "api_secret", 13 | "value": "", 14 | "type": "default", 15 | "enabled": true 16 | }, 17 | { 18 | "key": "api_url", 19 | "value": "", 20 | "type": "default", 21 | "enabled": true 22 | }, 23 | { 24 | "key": "timestamp", 25 | "value": "", 26 | "type": "any", 27 | "enabled": true 28 | }, 29 | { 30 | "key": "signature", 31 | "value": "", 32 | "type": "any", 33 | "enabled": true 34 | } 35 | ], 36 | "_postman_variable_scope": "environment", 37 | "_postman_exported_at": "2022-05-17T07:43:52.377Z", 38 | "_postman_exported_using": "Postman/9.18.1" 39 | } -------------------------------------------------------------------------------- /V2 MEXC GLOBAL spot.postman_environment.json: -------------------------------------------------------------------------------- 1 | { 2 | "id": "161f52a2-1e60-4502-919f-1287484d1816", 3 | "name": "V2 MEXC GLOBAL spot", 4 | "values": [ 5 | { 6 | "key": "api_key", 7 | "value": "", 8 | "type": "default", 9 | "enabled": true 10 | }, 11 | { 12 | "key": "api_secret", 13 | "value": "", 14 | "type": "default", 15 | "enabled": true 16 | }, 17 | { 18 | "key": "api_url", 19 | "value": "", 20 | "type": "default", 21 | "enabled": true 22 | }, 23 | { 24 | "key": "timestamp", 25 | "value": "", 26 | "type": "any", 27 | "enabled": true 28 | }, 29 | { 30 | "key": "signature", 31 | "value": "", 32 | "type": "any", 33 | "enabled": true 34 | } 35 | ], 36 | "_postman_variable_scope": "environment", 37 | "_postman_exported_at": "2022-05-17T07:44:00.477Z", 38 | "_postman_exported_using": "Postman/9.18.1" 39 | } -------------------------------------------------------------------------------- /V3 MEXC GLOBAL.postman_environment.json: -------------------------------------------------------------------------------- 1 | { 2 | "id": "0cc68ed2-80fb-438f-97c1-dc997b9acf72", 3 | "name": "New MEXC GLOBAL", 4 | "values": [ 5 | { 6 | "key": "api_key", 7 | "value": "xxx", 8 | "type": "default", 9 | "enabled": true 10 | }, 11 | { 12 | "key": "api_secret", 13 | "value": "xxx", 14 | "type": "default", 15 | "enabled": true 16 | }, 17 | { 18 | "key": "api_url", 19 | "value": "https://api.mexc.com", 20 | "type": "default", 21 | "enabled": true 22 | }, 23 | { 24 | "key": "timestamp", 25 | "value": "", 26 | "type": "any", 27 | "enabled": true 28 | }, 29 | { 30 | "key": "signature", 31 | "value": "", 32 | "type": "any", 33 | "enabled": true 34 | } 35 | ], 36 | "_postman_variable_scope": "environment", 37 | "_postman_exported_at": "2022-03-24T08:53:44.930Z", 38 | "_postman_exported_using": "Postman/9.15.0" 39 | } -------------------------------------------------------------------------------- /assets/1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mexcdevelop/mexc-api-postman/613f401e0f64b98b5f7f84c68be0d99ce3cd4747/assets/1.png -------------------------------------------------------------------------------- /assets/2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mexcdevelop/mexc-api-postman/613f401e0f64b98b5f7f84c68be0d99ce3cd4747/assets/2.png -------------------------------------------------------------------------------- /assets/3.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mexcdevelop/mexc-api-postman/613f401e0f64b98b5f7f84c68be0d99ce3cd4747/assets/3.png -------------------------------------------------------------------------------- /assets/4.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mexcdevelop/mexc-api-postman/613f401e0f64b98b5f7f84c68be0d99ce3cd4747/assets/4.png -------------------------------------------------------------------------------- /assets/5.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mexcdevelop/mexc-api-postman/613f401e0f64b98b5f7f84c68be0d99ce3cd4747/assets/5.png --------------------------------------------------------------------------------