bybit-rust-api 0.3.0

Complete Rust SDK for Bybit API V5 with all endpoints, comprehensive type safety and full test coverage
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
1042
1043
1044
1045
1046
1047
1048
1049
1050
1051
1052
1053
1054
1055
1056
1057
1058
1059
1060
1061
1062
1063
1064
1065
1066
1067
1068
1069
1070
1071
1072
1073
1074
1075
1076
1077
1078
1079
1080
1081
1082
1083
1084
1085
1086
1087
1088
1089
1090
1091
1092
1093
1094
1095
1096
1097
1098
1099
1100
1101
1102
1103
1104
1105
1106
1107
1108
1109
1110
1111
1112
1113
1114
1115
1116
1117
1118
1119
1120
1121
1122
1123
1124
1125
1126
1127
1128
1129
1130
1131
1132
1133
1134
1135
1136
1137
1138
1139
1140
1141
1142
1143
1144
1145
1146
1147
1148
1149
1150
1151
1152
1153
1154
1155
1156
1157
1158
1159
1160
1161
1162
1163
1164
1165
1166
1167
1168
1169
1170
1171
1172
1173
1174
1175
1176
1177
1178
1179
1180
1181
1182
1183
1184
1185
1186
1187
1188
1189
1190
1191
1192
1193
1194
1195
1196
1197
1198
1199
1200
1201
1202
1203
1204
1205
1206
1207
1208
1209
1210
1211
1212
1213
1214
1215
1216
1217
1218
1219
1220
1221
1222
1223
1224
1225
1226
1227
1228
1229
1230
1231
1232
1233
1234
1235
1236
1237
1238
1239
1240
1241
1242
1243
1244
1245
1246
1247
1248
1249
1250
1251
1252
1253
1254
1255
1256
1257
1258
1259
1260
1261
1262
1263
1264
1265
1266
1267
1268
1269
1270
1271
1272
1273
1274
1275
1276
1277
1278
1279
1280
1281
1282
1283
1284
1285
1286
1287
1288
1289
1290
1291
1292
1293
1294
1295
1296
1297
1298
1299
1300
1301
1302
1303
1304
1305
1306
1307
1308
1309
1310
1311
1312
1313
1314
1315
1316
1317
1318
1319
1320
1321
1322
1323
1324
1325
1326
1327
1328
1329
1330
1331
1332
1333
1334
1335
1336
1337
1338
1339
1340
1341
1342
1343
1344
1345
1346
1347
1348
1349
1350
1351
1352
1353
1354
1355
1356
1357
1358
1359
1360
1361
1362
1363
1364
1365
1366
1367
1368
1369
1370
1371
1372
1373
1374
1375
1376
1377
1378
1379
1380
1381
1382
1383
1384
1385
1386
1387
1388
1389
1390
1391
1392
1393
1394
1395
1396
1397
1398
1399
1400
1401
1402
1403
1404
1405
1406
1407
1408
1409
1410
1411
1412
1413
1414
1415
1416
1417
1418
1419
1420
1421
1422
1423
1424
1425
1426
1427
1428
1429
1430
1431
1432
1433
1434
1435
1436
1437
1438
1439
1440
1441
1442
1443
1444
1445
1446
1447
1448
1449
1450
1451
1452
1453
1454
1455
1456
1457
1458
1459
1460
1461
1462
1463
1464
1465
1466
1467
1468
1469
1470
1471
1472
1473
1474
1475
1476
1477
1478
1479
1480
1481
1482
1483
1484
1485
1486
1487
1488
1489
1490
1491
1492
1493
1494
1495
1496
1497
1498
1499
1500
1501
1502
1503
1504
1505
1506
1507
1508
1509
1510
1511
1512
1513
1514
1515
1516
1517
1518
1519
1520
1521
1522
1523
1524
1525
1526
1527
1528
1529
1530
1531
1532
1533
1534
1535
1536
1537
1538
1539
1540
1541
1542
1543
1544
1545
1546
1547
1548
1549
1550
1551
1552
1553
1554
1555
1556
1557
1558
1559
1560
1561
1562
1563
1564
1565
1566
1567
1568
1569
1570
1571
1572
1573
1574
1575
1576
1577
1578
1579
1580
1581
1582
1583
1584
1585
1586
1587
1588
1589
1590
1591
1592
1593
1594
1595
1596
1597
1598
1599
1600
1601
1602
1603
1604
1605
1606
1607
1608
1609
1610
1611
1612
1613
1614
1615
1616
1617
1618
1619
1620
1621
1622
1623
1624
1625
1626
1627
1628
1629
1630
1631
1632
1633
1634
1635
1636
1637
1638
1639
1640
1641
1642
1643
1644
1645
1646
1647
1648
1649
1650
1651
1652
1653
1654
1655
1656
1657
1658
1659
1660
1661
1662
1663
1664
1665
1666
1667
1668
1669
1670
1671
1672
1673
1674
1675
1676
1677
1678
1679
1680
1681
1682
1683
1684
1685
1686
1687
1688
1689
1690
1691
1692
1693
1694
1695
1696
1697
1698
1699
1700
1701
1702
1703
1704
1705
1706
1707
1708
1709
1710
1711
1712
1713
1714
1715
1716
1717
1718
1719
1720
1721
1722
1723
1724
1725
1726
1727
1728
1729
1730
1731
1732
1733
1734
1735
1736
1737
1738
1739
1740
1741
1742
1743
1744
1745
1746
1747
1748
1749
1750
1751
1752
1753
1754
1755
1756
1757
1758
1759
1760
1761
1762
1763
1764
1765
1766
1767
1768
1769
1770
1771
1772
1773
1774
1775
1776
1777
1778
1779
1780
1781
1782
1783
1784
1785
1786
1787
1788
1789
1790
1791
1792
1793
1794
1795
1796
1797
1798
1799
1800
1801
1802
1803
1804
1805
1806
1807
1808
1809
1810
1811
1812
1813
1814
1815
1816
1817
1818
1819
1820
1821
1822
1823
1824
1825
1826
1827
1828
1829
1830
1831
1832
1833
1834
1835
1836
1837
1838
1839
1840
1841
1842
1843
1844
1845
1846
1847
1848
1849
1850
1851
1852
1853
1854
1855
1856
1857
1858
1859
1860
1861
1862
1863
1864
1865
1866
1867
1868
1869
1870
1871
1872
1873
1874
1875
1876
1877
1878
1879
1880
1881
1882
1883
1884
1885
1886
1887
1888
1889
1890
1891
1892
1893
1894
1895
1896
1897
1898
1899
1900
1901
1902
1903
1904
1905
1906
1907
1908
1909
1910
1911
1912
1913
1914
1915
1916
1917
1918
1919
1920
1921
1922
1923
1924
1925
1926
1927
1928
1929
1930
1931
1932
1933
1934
1935
1936
1937
1938
1939
1940
1941
1942
1943
1944
1945
1946
1947
1948
1949
1950
1951
1952
1953
1954
1955
1956
1957
1958
1959
1960
1961
1962
1963
1964
1965
1966
1967
1968
1969
1970
1971
1972
1973
1974
1975
1976
1977
1978
1979
1980
1981
1982
1983
1984
1985
1986
1987
1988
1989
1990
1991
1992
[
  {
    "code": "400",
    "description": "Bad request. Need to send the request with GET / POST (must be capitalized)",
    "type": "http"
  },
  {
    "code": "401",
    "description": "Invalid request. 1. Need to use the correct key to access; 2. Need to put authentication params in the request header",
    "type": "http"
  },
  {
    "code": "403",
    "description": "Forbidden request. Possible causes: 1. IP rate limit breached; 2. You send GET request with an empty json body; 3. You are using U.S IP",
    "type": "http"
  },
  {
    "code": "404",
    "description": "Cannot find path. Possible causes: 1. Wrong path; 2. Category value does not match account mode",
    "type": "http"
  },
  {
    "code": "429",
    "description": "System level frequency protection. Please retry when encounter this",
    "type": "http"
  },
  {
    "code": "0",
    "description": "Ok",
    "type": "uta_classic"
  },
  {
    "code": "10000",
    "description": "Server Timeout",
    "type": "uta_classic"
  },
  {
    "code": "10001",
    "description": "Request parameter error",
    "type": "uta_classic"
  },
  {
    "code": "10002",
    "description": "The request time exceeds the time window range.",
    "type": "uta_classic"
  },
  {
    "code": "10003",
    "description": "API key is invalid. Check whether the key and domain are matched, there are 4 env: mainnet, testnet, mainnet-demo, testnet-demo",
    "type": "uta_classic"
  },
  {
    "code": "33004",
    "description": "Your api key has expired",
    "type": "uta_classic"
  },
  {
    "code": "10004",
    "description": "Error sign, please check your signature generation algorithm.",
    "type": "uta_classic"
  },
  {
    "code": "10005",
    "description": "Permission denied, please check your API key permissions.",
    "type": "uta_classic"
  },
  {
    "code": "10006",
    "description": "Too many visits. Exceeded the API Rate Limit.",
    "type": "uta_classic"
  },
  {
    "code": "10007",
    "description": "User authentication failed.",
    "type": "uta_classic"
  },
  {
    "code": "10008",
    "description": "Common banned, please check your account mode",
    "type": "uta_classic"
  },
  {
    "code": "10009",
    "description": "IP has been banned.",
    "type": "uta_classic"
  },
  {
    "code": "10010",
    "description": "Unmatched IP, please check your API key's bound IP addresses.",
    "type": "uta_classic"
  },
  {
    "code": "10014",
    "description": "Invalid duplicate request.",
    "type": "uta_classic"
  },
  {
    "code": "10016",
    "description": "Server error.",
    "type": "uta_classic"
  },
  {
    "code": "10017",
    "description": "Route not found.",
    "type": "uta_classic"
  },
  {
    "code": "10018",
    "description": "Exceeded the IP Rate Limit.",
    "type": "uta_classic"
  },
  {
    "code": "10024",
    "description": "Compliance rules triggered",
    "type": "uta_classic"
  },
  {
    "code": "10027",
    "description": "Transactions are banned.",
    "type": "uta_classic"
  },
  {
    "code": "10029",
    "description": "The requested symbol is invalid, please check symbol whitelist",
    "type": "uta_classic"
  },
  {
    "code": "10028",
    "description": "The API can only be accessed by unified account users.",
    "type": "uta_classic"
  },
  {
    "code": "30133",
    "description": "OTC loan: The symbol you select for USDT Perpetual is not allowed by Institutional Lending",
    "type": "uta_classic"
  },
  {
    "code": "30134",
    "description": "OTC loan: The symbol you select for USDC Contract is not allowed by Institutional Lending",
    "type": "uta_classic"
  },
  {
    "code": "30135",
    "description": "The leverage you select for USDT Perpetual trading cannot exceed the maximum leverage allowed by Institutional Lending.",
    "type": "uta_classic"
  },
  {
    "code": "30136",
    "description": "The leverage you select for USDC Perpetual or Futures trading cannot exceed the maximum leverage allowed by Institutional Lending.",
    "type": "uta_classic"
  },
  {
    "code": "40004",
    "description": "the order is modified during the process of replacing , please check the order status again",
    "type": "uta_classic"
  },
  {
    "code": "100028",
    "description": "The API cannot be accessed by unified account users.",
    "type": "uta_classic"
  },
  {
    "code": "110001",
    "description": "Order does not exist",
    "type": "uta_classic"
  },
  {
    "code": "110003",
    "description": "Order price exceeds the allowable range.",
    "type": "uta_classic"
  },
  {
    "code": "110004",
    "description": "Wallet balance is insufficient",
    "type": "uta_classic"
  },
  {
    "code": "110005",
    "description": "position status",
    "type": "uta_classic"
  },
  {
    "code": "110006",
    "description": "The assets are estimated to be unable to cover the position margin",
    "type": "uta_classic"
  },
  {
    "code": "110007",
    "description": "Available balance is insufficient",
    "type": "uta_classic"
  },
  {
    "code": "110008",
    "description": "The order has been completed or cancelled.",
    "type": "uta_classic"
  },
  {
    "code": "110009",
    "description": "The number of stop orders exceeds the maximum allowable limit. You can find references in our API doc.",
    "type": "uta_classic"
  },
  {
    "code": "110010",
    "description": "The order has been cancelled",
    "type": "uta_classic"
  },
  {
    "code": "110011",
    "description": "Liquidation will be triggered immediately by this adjustment",
    "type": "uta_classic"
  },
  {
    "code": "110012",
    "description": "Insufficient available balance.",
    "type": "uta_classic"
  },
  {
    "code": "110013",
    "description": "Cannot set leverage due to risk limit level.",
    "type": "uta_classic"
  },
  {
    "code": "110014",
    "description": "Insufficient available balance to add additional margin.",
    "type": "uta_classic"
  },
  {
    "code": "110015",
    "description": "The position is in cross margin mode.",
    "type": "uta_classic"
  },
  {
    "code": "110016",
    "description": "The quantity of contracts requested exceeds the risk limit, please adjust your risk limit level before trying again",
    "type": "uta_classic"
  },
  {
    "code": "110017",
    "description": "Reduce-only rule not satisfied",
    "type": "uta_classic"
  },
  {
    "code": "110018",
    "description": "User ID is illegal.",
    "type": "uta_classic"
  },
  {
    "code": "110019",
    "description": "Order ID is illegal.",
    "type": "uta_classic"
  },
  {
    "code": "110020",
    "description": "Not allowed to have more than 500 active orders.",
    "type": "uta_classic"
  },
  {
    "code": "110021",
    "description": "Not allowed to exceeded position limits due to Open Interest.",
    "type": "uta_classic"
  },
  {
    "code": "110022",
    "description": "Quantity has been restricted and orders cannot be modified to increase the quantity.",
    "type": "uta_classic"
  },
  {
    "code": "110023",
    "description": "Currently you can only reduce your position on this contract. please check our announcement or contact customer service for details.",
    "type": "uta_classic"
  },
  {
    "code": "110024",
    "description": "You have an existing position, so the position mode cannot be switched.",
    "type": "uta_classic"
  },
  {
    "code": "110025",
    "description": "Position mode has not been modified.",
    "type": "uta_classic"
  },
  {
    "code": "110026",
    "description": "Cross/isolated margin mode has not been modified.",
    "type": "uta_classic"
  },
  {
    "code": "110027",
    "description": "Margin has not been modified.",
    "type": "uta_classic"
  },
  {
    "code": "110028",
    "description": "You have existing open orders, so the position mode cannot be switched.",
    "type": "uta_classic"
  },
  {
    "code": "110029",
    "description": "Hedge mode is not supported for this symbol.",
    "type": "uta_classic"
  },
  {
    "code": "110030",
    "description": "Duplicate orderId",
    "type": "uta_classic"
  },
  {
    "code": "110031",
    "description": "Non-existing risk limit info, please check the risk limit rules.",
    "type": "uta_classic"
  },
  {
    "code": "110032",
    "description": "Order is illegal",
    "type": "uta_classic"
  },
  {
    "code": "110033",
    "description": "You can't set margin without an open position",
    "type": "uta_classic"
  },
  {
    "code": "110034",
    "description": "There is no net position",
    "type": "uta_classic"
  },
  {
    "code": "110035",
    "description": "Cancellation of orders was not completed before liquidation",
    "type": "uta_classic"
  },
  {
    "code": "110036",
    "description": "You are not allowed to change leverage due to cross margin mode.",
    "type": "uta_classic"
  },
  {
    "code": "110037",
    "description": "User setting list does not have this symbol",
    "type": "uta_classic"
  },
  {
    "code": "110038",
    "description": "You are not allowed to change leverage due to portfolio margin mode.",
    "type": "uta_classic"
  },
  {
    "code": "110039",
    "description": "Maintenance margin rate is too high. This may trigger liquidation.",
    "type": "uta_classic"
  },
  {
    "code": "110040",
    "description": "The order will trigger a forced liquidation, please re-submit the order.",
    "type": "uta_classic"
  },
  {
    "code": "110041",
    "description": "Skip liquidation is not allowed when a position or maker order exists",
    "type": "uta_classic"
  },
  {
    "code": "110042",
    "description": "Currently,due to pre-delivery status, you can only reduce your position on this contract.",
    "type": "uta_classic"
  },
  {
    "code": "110043",
    "description": "Set leverage has not been modified.",
    "type": "uta_classic"
  },
  {
    "code": "110044",
    "description": "Available margin is insufficient.",
    "type": "uta_classic"
  },
  {
    "code": "110045",
    "description": "Wallet balance is insufficient.",
    "type": "uta_classic"
  },
  {
    "code": "110046",
    "description": "Liquidation will be triggered immediately by this adjustment.",
    "type": "uta_classic"
  },
  {
    "code": "110047",
    "description": "Risk limit cannot be adjusted due to insufficient available margin.",
    "type": "uta_classic"
  },
  {
    "code": "110048",
    "description": "Risk limit cannot be adjusted as the current/expected position value exceeds the revised risk limit.",
    "type": "uta_classic"
  },
  {
    "code": "110049",
    "description": "Tick notes can only be numbers",
    "type": "uta_classic"
  },
  {
    "code": "110050",
    "description": "Invalid coin",
    "type": "uta_classic"
  },
  {
    "code": "110051",
    "description": "The user's available balance cannot cover the lowest price of the current market",
    "type": "uta_classic"
  },
  {
    "code": "110052",
    "description": "Your available balance is insufficient to set the price",
    "type": "uta_classic"
  },
  {
    "code": "110053",
    "description": "The user's available balance cannot cover the current market price and upper limit price",
    "type": "uta_classic"
  },
  {
    "code": "110054",
    "description": "This position has at least one take profit link order, so the take profit and stop loss mode cannot be switched",
    "type": "uta_classic"
  },
  {
    "code": "110055",
    "description": "This position has at least one stop loss link order, so the take profit and stop loss mode cannot be switched",
    "type": "uta_classic"
  },
  {
    "code": "110056",
    "description": "This position has at least one trailing stop link order, so the take profit and stop loss mode cannot be switched",
    "type": "uta_classic"
  },
  {
    "code": "110057",
    "description": "Conditional order or limit order contains TP/SL related params",
    "type": "uta_classic"
  },
  {
    "code": "110058",
    "description": "You can't set take profit and stop loss due to insufficient size of remaining position size.",
    "type": "uta_classic"
  },
  {
    "code": "110059",
    "description": "Not allowed to modify the TP/SL of a partially filled open order",
    "type": "uta_classic"
  },
  {
    "code": "110060",
    "description": "Under full TP/SL mode, it is not allowed to modify TP/SL",
    "type": "uta_classic"
  },
  {
    "code": "110061",
    "description": "Not allowed to have more than 20 TP/SLs under Partial tpSlMode",
    "type": "uta_classic"
  },
  {
    "code": "110062",
    "description": "There is no MMP information of the institution found.",
    "type": "uta_classic"
  },
  {
    "code": "110063",
    "description": "Settlement in progress! {{key0}} not available for trading.",
    "type": "uta_classic"
  },
  {
    "code": "110064",
    "description": "The modified contract quantity cannot be less than or equal to the filled quantity.",
    "type": "uta_classic"
  },
  {
    "code": "110065",
    "description": "MMP hasn't yet been enabled for your account. Please contact your BD manager.",
    "type": "uta_classic"
  },
  {
    "code": "110066",
    "description": "Trading is currently not allowed.",
    "type": "uta_classic"
  },
  {
    "code": "110067",
    "description": "Unified account is not supported.",
    "type": "uta_classic"
  },
  {
    "code": "110068",
    "description": "Leveraged trading is not allowed.",
    "type": "uta_classic"
  },
  {
    "code": "110069",
    "description": "Ins lending customer is not allowed to trade.",
    "type": "uta_classic"
  },
  {
    "code": "110070",
    "description": "ETP symbols cannot be traded.",
    "type": "uta_classic"
  },
  {
    "code": "110071",
    "description": "Sorry, we're revamping the Unified Margin Account! Currently, new upgrades are not supported. If you have any questions, please contact our 24/7 customer support.",
    "type": "uta_classic"
  },
  {
    "code": "110072",
    "description": "OrderLinkedID is duplicate",
    "type": "uta_classic"
  },
  {
    "code": "110073",
    "description": "Set margin mode failed",
    "type": "uta_classic"
  },
  {
    "code": "110075",
    "description": "RiskId not modified",
    "type": "uta_classic"
  },
  {
    "code": "182021",
    "description": "Cannot enable spot margin while in isolated margin mode. Please switch to cross margin mode or portfolio margin mode to trade spot with margin.",
    "type": "uta_classic"
  },
  {
    "code": "110076",
    "description": "Only isolated mode can set auto-add-margin",
    "type": "uta_classic"
  },
  {
    "code": "110077",
    "description": "Pm mode cannot support",
    "type": "uta_classic"
  },
  {
    "code": "110078",
    "description": "Added margin more than max can reduce margin",
    "type": "uta_classic"
  },
  {
    "code": "110079",
    "description": "The order is processing and can not be operated, please try again later",
    "type": "uta_classic"
  },
  {
    "code": "110080",
    "description": "Operations Restriction: The current LTV ratio of your Institutional Lending has hit the liquidation threshold. Assets in your account are being liquidated (trade/risk limit/leverage)",
    "type": "uta_classic"
  },
  {
    "code": "110082",
    "description": "You cannot lift Reduce-Only restrictions, as no Reduce-Only restrictions are applied to your position",
    "type": "uta_classic"
  },
  {
    "code": "110083",
    "description": "Reduce-Only restrictions must be lifted for both Long and Short positions at the same time",
    "type": "uta_classic"
  },
  {
    "code": "110085",
    "description": "The risk limit and margin ratio for this contract has been updated, please select a supported risk limit and place your order again",
    "type": "uta_classic"
  },
  {
    "code": "110086",
    "description": "Current order leverage exceeds the maximum available for your current Risk Limit tier. Please lower leverage before placing an order",
    "type": "uta_classic"
  },
  {
    "code": "110087",
    "description": "Leverage for Perpetual or Futures contracts cannot exceed the maximum allowed for your Institutional loan",
    "type": "uta_classic"
  },
  {
    "code": "110088",
    "description": "Please Upgrade to UTA to trade",
    "type": "uta_classic"
  },
  {
    "code": "110089",
    "description": "Exceeds the maximum risk limit level",
    "type": "uta_classic"
  },
  {
    "code": "110090",
    "description": "Exceeds the maximum leverage limit of the current risk limit level.",
    "type": "uta_classic"
  },
  {
    "code": "110092",
    "description": "expect Rising, but trigger_price[XXXXX] <= current[XXXXX]??laste",
    "type": "uta_classic"
  },
  {
    "code": "110093",
    "description": "expect Falling, but trigger_price[XXXXX] >= current[XXXXX]??last",
    "type": "uta_classic"
  },
  {
    "code": "110094",
    "description": "Order notional value below the lower limit",
    "type": "uta_classic"
  },
  {
    "code": "181017",
    "description": "OrderStatus must be final status",
    "type": "uta_classic"
  },
  {
    "code": "182100",
    "description": "Compulsory closing of positions, no repayment allowed",
    "type": "uta_classic"
  },
  {
    "code": "182101",
    "description": "Failed repayment, insufficient collateral balance",
    "type": "uta_classic"
  },
  {
    "code": "182102",
    "description": "Failed repayment, there are no liabilities in the current currency",
    "type": "uta_classic"
  },
  {
    "code": "182103",
    "description": "Institutional lending users are not supported",
    "type": "uta_classic"
  },
  {
    "code": "182108",
    "description": "Switching failed, margin verification failed, please re-adjust the currency status",
    "type": "uta_classic"
  },
  {
    "code": "182110",
    "description": "Failed to switch",
    "type": "uta_classic"
  },
  {
    "code": "182111",
    "description": "The requested currency has a non guaranteed gold currency or does not support switching status currencies",
    "type": "uta_classic"
  },
  {
    "code": "182112",
    "description": "Duplicate currency, please re-adjust",
    "type": "uta_classic"
  },
  {
    "code": "3100181",
    "description": "UID can not be null",
    "type": "uta_classic"
  },
  {
    "code": "3100197",
    "description": "Temporary banned due to the upgrade to UTA",
    "type": "uta_classic"
  },
  {
    "code": "3200316",
    "description": "USDC Options Trading Restriction: The current LTV ratio for your Institutional Lending has reached the maximum allowable amount for USDC Options trading.",
    "type": "uta_classic"
  },
  {
    "code": "3200317",
    "description": "USDC Options Open Position Restriction: The current LTV ratio for your Institutional Lending has reached the maximum allowable amount for opening USDC Options positions.",
    "type": "uta_classic"
  },
  {
    "code": "3100326",
    "description": "BaseCoin is required",
    "type": "uta_classic"
  },
  {
    "code": "3200403",
    "description": "isolated margin can not create order",
    "type": "uta_classic"
  },
  {
    "code": "3200320",
    "description": "Operations Restriction: The current LTV ratio of your Institutional Lending has hit the liquidation threshold. Assets in your account are being liquidated. (margin mode or spot leverage)",
    "type": "uta_classic"
  },
  {
    "code": "3400208",
    "description": "You have unclosed hedge mode or isolated mode USDT perpetual positions",
    "type": "uta_classic"
  },
  {
    "code": "3400209",
    "description": "You have USDT perpetual positions, so upgrading is prohibited for 10 minutes before and after the hour every hour",
    "type": "uta_classic"
  },
  {
    "code": "3400210",
    "description": "The risk rate of your Derivatives account is too high",
    "type": "uta_classic"
  },
  {
    "code": "3400211",
    "description": "Once upgraded, the estimated risk rate will be too high",
    "type": "uta_classic"
  },
  {
    "code": "3400212",
    "description": "You have USDC perpetual positions or Options positions, so upgrading is prohibited for 10 minutes before and after the hour every hour",
    "type": "uta_classic"
  },
  {
    "code": "3400213",
    "description": "The risk rate of your USDC Derivatives account is too high",
    "type": "uta_classic"
  },
  {
    "code": "3400052",
    "description": "You have uncancelled USDC perpetual orders",
    "type": "uta_classic"
  },
  {
    "code": "3400053",
    "description": "You have uncancelled Options orders",
    "type": "uta_classic"
  },
  {
    "code": "3400054",
    "description": "You have uncancelled USDT perpetual orders",
    "type": "uta_classic"
  },
  {
    "code": "3400214",
    "description": "Server error, please try again later",
    "type": "uta_classic"
  },
  {
    "code": "3400071",
    "description": "The net asset is not satisfied",
    "type": "uta_classic"
  },
  {
    "code": "3401010",
    "description": "Cannot switch to PM mode (for copy trading master trader)",
    "type": "uta_classic"
  },
  {
    "code": "3400139",
    "description": "The total value of your positions and orders has exceeded the risk limit for a Perpetual or Futures contract",
    "type": "uta_classic"
  },
  {
    "code": "500010",
    "description": "The sub-account specified does not belong to the parent account",
    "type": "uta_classic"
  },
  {
    "code": "500011",
    "description": "The Uid %s provided is not associated with a Unified Trading Account",
    "type": "uta_classic"
  },
  {
    "code": "170001",
    "description": "Internal error.",
    "type": "spot"
  },
  {
    "code": "170005",
    "description": "Too many new orders; current limit is %s orders per %s.",
    "type": "spot"
  },
  {
    "code": "170007",
    "description": "Timeout waiting for response from backend server.",
    "type": "spot"
  },
  {
    "code": "170010",
    "description": "Purchase failed: Exceed the maximum position limit of leveraged tokens, the current available limit is %s USDT",
    "type": "spot"
  },
  {
    "code": "170011",
    "description": "Purchase failed: Exceed the maximum position limit of innovation tokens, the current available limit is ''{{.replaceKey0}}'' USDT",
    "type": "spot"
  },
  {
    "code": "170019",
    "description": "The feature has been suspended",
    "type": "spot"
  },
  {
    "code": "170032",
    "description": "Network error. Please try again later",
    "type": "spot"
  },
  {
    "code": "170033",
    "description": "margin Insufficient account balance",
    "type": "spot"
  },
  {
    "code": "170034",
    "description": "Liability over flow in spot leverage trade!",
    "type": "spot"
  },
  {
    "code": "170035",
    "description": "Submitted to the system for processing!",
    "type": "spot"
  },
  {
    "code": "170036",
    "description": "You haven't enabled Cross Margin Trading yet. To do so, please head to the PC trading site or the Bybit app",
    "type": "spot"
  },
  {
    "code": "170037",
    "description": "Cross Margin Trading not yet supported by the selected coin",
    "type": "spot"
  },
  {
    "code": "170105",
    "description": "Parameter '%s' was empty.",
    "type": "spot"
  },
  {
    "code": "170115",
    "description": "Invalid timeInForce.",
    "type": "spot"
  },
  {
    "code": "170116",
    "description": "Invalid orderType.",
    "type": "spot"
  },
  {
    "code": "170117",
    "description": "Invalid side.",
    "type": "spot"
  },
  {
    "code": "170121",
    "description": "Invalid symbol.",
    "type": "spot"
  },
  {
    "code": "170124",
    "description": "Order amount too large.",
    "type": "spot"
  },
  {
    "code": "170130",
    "description": "Data sent for paramter '%s' is not valid.",
    "type": "spot"
  },
  {
    "code": "170131",
    "description": "Balance insufficient",
    "type": "spot"
  },
  {
    "code": "170132",
    "description": "Order price too high.",
    "type": "spot"
  },
  {
    "code": "170133",
    "description": "Order price lower than the minimum.",
    "type": "spot"
  },
  {
    "code": "170134",
    "description": "Order price decimal too long.",
    "type": "spot"
  },
  {
    "code": "170135",
    "description": "Order quantity too large.",
    "type": "spot"
  },
  {
    "code": "170136",
    "description": "Order quantity lower than the minimum.",
    "type": "spot"
  },
  {
    "code": "170137",
    "description": "Order volume decimal too long",
    "type": "spot"
  },
  {
    "code": "170139",
    "description": "Order has been filled.",
    "type": "spot"
  },
  {
    "code": "170140",
    "description": "Transaction amount lower than the minimum.",
    "type": "spot"
  },
  {
    "code": "170141",
    "description": "Duplicate clientOrderId",
    "type": "spot"
  },
  {
    "code": "170142",
    "description": "Order has been canceled",
    "type": "spot"
  },
  {
    "code": "170143",
    "description": "Cannot be found on order book",
    "type": "spot"
  },
  {
    "code": "170144",
    "description": "Order has been locked",
    "type": "spot"
  },
  {
    "code": "170145",
    "description": "This order type does not support cancellation",
    "type": "spot"
  },
  {
    "code": "170146",
    "description": "Order creation timeout",
    "type": "spot"
  },
  {
    "code": "170147",
    "description": "Order cancellation timeout",
    "type": "spot"
  },
  {
    "code": "170148",
    "description": "Market order amount decimal too long",
    "type": "spot"
  },
  {
    "code": "170149",
    "description": "Create order failed",
    "type": "spot"
  },
  {
    "code": "170150",
    "description": "Cancel order failed",
    "type": "spot"
  },
  {
    "code": "170151",
    "description": "The trading pair is not open yet",
    "type": "spot"
  },
  {
    "code": "170157",
    "description": "The trading pair is not available for api trading",
    "type": "spot"
  },
  {
    "code": "170159",
    "description": "Market Order is not supported within the first %s minutes of newly launched pairs due to risk control.",
    "type": "spot"
  },
  {
    "code": "170190",
    "description": "Cancel order has been finished",
    "type": "spot"
  },
  {
    "code": "170191",
    "description": "Can not cancel order, please try again later",
    "type": "spot"
  },
  {
    "code": "170192",
    "description": "Order price cannot be higher than %s .",
    "type": "spot"
  },
  {
    "code": "170193",
    "description": "Buy order price cannot be higher than %s.",
    "type": "spot"
  },
  {
    "code": "170194",
    "description": "Sell order price cannot be lower than %s.",
    "type": "spot"
  },
  {
    "code": "170195",
    "description": "Please note that your order may not be filled. ETP buy order price deviates from risk control",
    "type": "spot"
  },
  {
    "code": "170196",
    "description": "Please note that your order may not be filled. ETP sell order price deviates from risk control",
    "type": "spot"
  },
  {
    "code": "170197",
    "description": "Your order quantity to buy is too large. The filled price may deviate significantly from the market price. Please try again",
    "type": "spot"
  },
  {
    "code": "170198",
    "description": "Your order quantity to sell is too large. The filled price may deviate significantly from the market price. Please try again",
    "type": "spot"
  },
  {
    "code": "170199",
    "description": "Your order quantity to buy is too large. The filled price may deviate significantly from the nav. Please try again.",
    "type": "spot"
  },
  {
    "code": "170200",
    "description": "Your order quantity to sell is too large. The filled price may deviate significantly from the nav. Please try again.",
    "type": "spot"
  },
  {
    "code": "170201",
    "description": "Invalid orderFilter parameter",
    "type": "spot"
  },
  {
    "code": "170202",
    "description": "Please enter the TP/SL price.",
    "type": "spot"
  },
  {
    "code": "170203",
    "description": "trigger price cannot be higher than 110% price.",
    "type": "spot"
  },
  {
    "code": "170204",
    "description": "trigger price cannot be lower than 90% of qty.",
    "type": "spot"
  },
  {
    "code": "170206",
    "description": "Stop_limit Order is not supported within the first 5 minutes of newly launched pairs",
    "type": "spot"
  },
  {
    "code": "170207",
    "description": "The loan amount of the platform is not enough.",
    "type": "spot"
  },
  {
    "code": "170210",
    "description": "New order rejected.",
    "type": "spot"
  },
  {
    "code": "170212",
    "description": "Cancel order request processing",
    "type": "spot"
  },
  {
    "code": "170213",
    "description": "Order does not exist.",
    "type": "spot"
  },
  {
    "code": "170215",
    "description": "Spot Trading (Buy) Restriction: The current LTV ratio of your institutional lending has reached the maximum allowable amount for buy orders",
    "type": "spot"
  },
  {
    "code": "170216",
    "description": "The leverage you select for Spot Trading cannot exceed the maximum leverage allowed by Institutional Lending",
    "type": "spot"
  },
  {
    "code": "170217",
    "description": "Only LIMIT-MAKER order is supported for the current pair.",
    "type": "spot"
  },
  {
    "code": "170218",
    "description": "The LIMIT-MAKER order is rejected due to invalid price.",
    "type": "spot"
  },
  {
    "code": "170219",
    "description": "UID {{xxx}} is not available to this feature",
    "type": "spot"
  },
  {
    "code": "170220",
    "description": "Spot Trading Restriction: The current LTV ratio of your institutional lending has reached the maximum allowable amount for Spot trading",
    "type": "spot"
  },
  {
    "code": "170221",
    "description": "This coin does not exist.",
    "type": "spot"
  },
  {
    "code": "170222",
    "description": "Too many requests in this time frame.",
    "type": "spot"
  },
  {
    "code": "170223",
    "description": "Your Spot Account with Institutional Lending triggers an alert or liquidation.",
    "type": "spot"
  },
  {
    "code": "170224",
    "description": "You're not a user of the Innovation Zone.",
    "type": "spot"
  },
  {
    "code": "170226",
    "description": "Your Spot Account for Margin Trading is being liquidated.",
    "type": "spot"
  },
  {
    "code": "170227",
    "description": "This feature is not supported.",
    "type": "spot"
  },
  {
    "code": "170228",
    "description": "The purchase amount of each order exceeds the estimated maximum purchase amount.",
    "type": "spot"
  },
  {
    "code": "170229",
    "description": "The sell quantity per order exceeds the estimated maximum sell quantity.",
    "type": "spot"
  },
  {
    "code": "170230",
    "description": "Operations Restriction: Due to the deactivation of Margin Trading for institutional loan",
    "type": "spot"
  },
  {
    "code": "170234",
    "description": "System Error",
    "type": "spot"
  },
  {
    "code": "170241",
    "description": "To proceed with trading, users must read through and confirm that they fully understand the project's risk disclosure document. For App users, please update your Bybit App to version 4.16.0 to process.",
    "type": "spot"
  },
  {
    "code": "170310",
    "description": "Order modification timeout",
    "type": "spot"
  },
  {
    "code": "170311",
    "description": "Order modification failed",
    "type": "spot"
  },
  {
    "code": "170312",
    "description": "The current order does not support modification",
    "type": "spot"
  },
  {
    "code": "170313",
    "description": "The modified contract quantity cannot be less than to the filled quantity",
    "type": "spot"
  },
  {
    "code": "170341",
    "description": "Request order quantity exceeds maximum limit",
    "type": "spot"
  },
  {
    "code": "170344",
    "description": "symbol loanable limit",
    "type": "spot"
  },
  {
    "code": "170709",
    "description": "OTC loan: The select trading pair is not in the whitelist pair",
    "type": "spot"
  },
  {
    "code": "175000",
    "description": "The serialNum is already in use.",
    "type": "spot_leverage"
  },
  {
    "code": "175001",
    "description": "Daily purchase limit has been exceeded. Please try again later.",
    "type": "spot_leverage"
  },
  {
    "code": "175002",
    "description": "There's a large number of purchase orders. Please try again later.",
    "type": "spot_leverage"
  },
  {
    "code": "175003",
    "description": "Insufficient available balance. Please make a deposit and try again.",
    "type": "spot_leverage"
  },
  {
    "code": "175004",
    "description": "Daily redemption limit has been exceeded. Please try again later.",
    "type": "spot_leverage"
  },
  {
    "code": "175005",
    "description": "There's a large number of redemption orders. Please try again later.",
    "type": "spot_leverage"
  },
  {
    "code": "175006",
    "description": "Insufficient available balance. Please make a deposit and try again.",
    "type": "spot_leverage"
  },
  {
    "code": "175007",
    "description": "Order not found.",
    "type": "spot_leverage"
  },
  {
    "code": "175008",
    "description": "Purchase period hasn't started yet.",
    "type": "spot_leverage"
  },
  {
    "code": "175009",
    "description": "Purchase amount has exceeded the upper limit.",
    "type": "spot_leverage"
  },
  {
    "code": "175010",
    "description": "You haven't passed the quiz yet! To purchase and/or redeem an LT, please complete the quiz first.",
    "type": "spot_leverage"
  },
  {
    "code": "175012",
    "description": "Redemption period hasn't started yet.",
    "type": "spot_leverage"
  },
  {
    "code": "175013",
    "description": "Redemption amount has exceeded the upper limit.",
    "type": "spot_leverage"
  },
  {
    "code": "175014",
    "description": "Purchase of the LT has been temporarily suspended.",
    "type": "spot_leverage"
  },
  {
    "code": "175015",
    "description": "Redemption of the LT has been temporarily suspended.",
    "type": "spot_leverage"
  },
  {
    "code": "175016",
    "description": "Invalid format. Please check the length and numeric precision.",
    "type": "spot_leverage"
  },
  {
    "code": "175017",
    "description": "Failed to place order:Exceed the maximum position limit of leveraged tokens, the current available limit is XXXX USDT",
    "type": "spot_leverage"
  },
  {
    "code": "175027",
    "description": "Subscriptions and redemptions are temporarily unavailable while account upgrade is in progress",
    "type": "spot_leverage"
  },
  {
    "code": "176002",
    "description": "Query user account info error. Confirm that if you have completed quiz in GUI",
    "type": "spot_margin"
  },
  {
    "code": "176003",
    "description": "Query user loan history error",
    "type": "spot_margin"
  },
  {
    "code": "176004",
    "description": "Query order history start time exceeds end time",
    "type": "spot_margin"
  },
  {
    "code": "176005",
    "description": "Failed to borrow",
    "type": "spot_margin"
  },
  {
    "code": "176006",
    "description": "Repayment Failed",
    "type": "spot_margin"
  },
  {
    "code": "176007",
    "description": "User not found",
    "type": "spot_margin"
  },
  {
    "code": "176008",
    "description": "You haven't enabled Cross Margin Trading yet. To do so, please head to the PC trading site",
    "type": "spot_margin"
  },
  {
    "code": "176009",
    "description": "You haven't enabled Cross Margin Trading yet. Confirm that if you have turned on margin trade",
    "type": "spot_margin"
  },
  {
    "code": "176010",
    "description": "Failed to locate the coins to borrow",
    "type": "spot_margin"
  },
  {
    "code": "176011",
    "description": "Cross Margin Trading not yet supported by the selected coin",
    "type": "spot_margin"
  },
  {
    "code": "176012",
    "description": "Pair not available",
    "type": "spot_margin"
  },
  {
    "code": "176013",
    "description": "Cross Margin Trading not yet supported by the selected pair",
    "type": "spot_margin"
  },
  {
    "code": "176014",
    "description": "Repeated repayment requests",
    "type": "spot_margin"
  },
  {
    "code": "176015",
    "description": "Insufficient available balance",
    "type": "spot_margin"
  },
  {
    "code": "176016",
    "description": "No repayment required",
    "type": "spot_margin"
  },
  {
    "code": "176017",
    "description": "Repayment amount has exceeded the total liability",
    "type": "spot_margin"
  },
  {
    "code": "176018",
    "description": "Settlement in progress",
    "type": "spot_margin"
  },
  {
    "code": "176019",
    "description": "Liquidation in progress",
    "type": "spot_margin"
  },
  {
    "code": "176020",
    "description": "Failed to locate repayment history",
    "type": "spot_margin"
  },
  {
    "code": "176021",
    "description": "Repeated borrowing requests",
    "type": "spot_margin"
  },
  {
    "code": "176022",
    "description": "Coins to borrow not generally available yet",
    "type": "spot_margin"
  },
  {
    "code": "176023",
    "description": "Pair to borrow not generally available yet",
    "type": "spot_margin"
  },
  {
    "code": "176024",
    "description": "Invalid user status",
    "type": "spot_margin"
  },
  {
    "code": "176025",
    "description": "Amount to borrow cannot be lower than the min. amount to borrow (per transaction)",
    "type": "spot_margin"
  },
  {
    "code": "176026",
    "description": "Amount to borrow cannot be larger than the max. amount to borrow (per transaction)",
    "type": "spot_margin"
  },
  {
    "code": "176027",
    "description": "Amount to borrow cannot be higher than the max. amount to borrow per user",
    "type": "spot_margin"
  },
  {
    "code": "176028",
    "description": "Amount to borrow has exceeded Bybit's max. amount to borrow",
    "type": "spot_margin"
  },
  {
    "code": "176029",
    "description": "Amount to borrow has exceeded the user's estimated max. amount to borrow",
    "type": "spot_margin"
  },
  {
    "code": "176030",
    "description": "Query user loan info error",
    "type": "spot_margin"
  },
  {
    "code": "176031",
    "description": "Number of decimals for borrow amount has exceeded the maximum precision",
    "type": "spot_margin"
  },
  {
    "code": "176034",
    "description": "The leverage ratio is out of range",
    "type": "spot_margin"
  },
  {
    "code": "176035",
    "description": "Failed to close the leverage switch during liquidation",
    "type": "spot_margin"
  },
  {
    "code": "176036",
    "description": "Failed to adjust leverage switch during forced liquidation",
    "type": "spot_margin"
  },
  {
    "code": "176037",
    "description": "For non-unified transaction users, the operation failed",
    "type": "spot_margin"
  },
  {
    "code": "176038",
    "description": "The spot leverage is closed and the current operation is not allowed",
    "type": "spot_margin"
  },
  {
    "code": "176039",
    "description": "Borrowing, current operation is not allowed",
    "type": "spot_margin"
  },
  {
    "code": "176040",
    "description": "There is a spot leverage order, and the adjustment of the leverage switch failed!",
    "type": "spot_margin"
  },
  {
    "code": "176132",
    "description": "Number of decimals for repay amount has exceeded the maximum precision",
    "type": "spot_margin"
  },
  {
    "code": "176133",
    "description": "Liquidation may be triggered! Please adjust your transaction amount and try again",
    "type": "spot_margin"
  },
  {
    "code": "176134",
    "description": "Account has been upgraded (upgrading) to UTA",
    "type": "spot_margin"
  },
  {
    "code": "176135",
    "description": "Failed to get bond data",
    "type": "spot_margin"
  },
  {
    "code": "176136",
    "description": "Failed to get borrow data",
    "type": "spot_margin"
  },
  {
    "code": "176137",
    "description": "Failed to switch user status",
    "type": "spot_margin"
  },
  {
    "code": "176138",
    "description": "You need to repay all your debts before closing your disabling cross margin account",
    "type": "spot_margin"
  },
  {
    "code": "176139",
    "description": "Sorry, you are not eligible to enable cross margin, as you have already enabled OTC lending",
    "type": "spot_margin"
  },
  {
    "code": "176201",
    "description": "Account exception. Check if the UID is bound to an institutional loan",
    "type": "spot_margin"
  },
  {
    "code": "182104",
    "description": "This action could not be completed as your Unified Margin Account's IM/MM utilization rate has exceeded the threshold",
    "type": "spot_margin"
  },
  {
    "code": "182105",
    "description": "Adjustment failed, user is upgrading",
    "type": "spot_margin"
  },
  {
    "code": "182106",
    "description": "Adjustment failed, user forced liquidation in progress.",
    "type": "spot_margin"
  },
  {
    "code": "182107",
    "description": "Adjustment failed, Maintenance Margin Rate too high",
    "type": "spot_margin"
  },
  {
    "code": "131001",
    "description": "openapi svc error",
    "type": "asset"
  },
  {
    "code": "131002",
    "description": "Parameter error / Withdraw address chain or destination tag are not equal",
    "type": "asset"
  },
  {
    "code": "131003",
    "description": "Internal error",
    "type": "asset"
  },
  {
    "code": "131004",
    "description": "KYC needed",
    "type": "asset"
  },
  {
    "code": "131075",
    "description": "InternalAddressCannotBeYourself",
    "type": "asset"
  },
  {
    "code": "131076",
    "description": "internal transfer not support sub-accounts",
    "type": "asset"
  },
  {
    "code": "131077",
    "description": "receive user not exist",
    "type": "asset"
  },
  {
    "code": "131078",
    "description": "receive user deposit has been banned",
    "type": "asset"
  },
  {
    "code": "131079",
    "description": "receive user need kyc",
    "type": "asset"
  },
  {
    "code": "131080",
    "description": "User left retry times is zero",
    "type": "asset"
  },
  {
    "code": "131081",
    "description": "Do not input memo/tag,please.",
    "type": "asset"
  },
  {
    "code": "131082",
    "description": "Do not repeat the request",
    "type": "asset"
  },
  {
    "code": "131083",
    "description": "Withdraw only allowed from address book",
    "type": "asset"
  },
  {
    "code": "131084",
    "description": "Withdraw failed because of Uta Upgrading",
    "type": "asset"
  },
  {
    "code": "131085",
    "description": "Withdrawal amount is greater than your availale balance (the deplayed withdrawal is triggered)",
    "type": "asset"
  },
  {
    "code": "131086",
    "description": "Withdrawal amount exceeds risk limit (the risk limit of margin trade is triggered)",
    "type": "asset"
  },
  {
    "code": "131087",
    "description": "your current account spot risk level is too high, withdrawal is prohibited, please adjust and try again",
    "type": "asset"
  },
  {
    "code": "131088",
    "description": "The withdrawal amount exceeds the remaining withdrawal limit of your identity verification level. The current available amount for withdrawal : %s",
    "type": "asset"
  },
  {
    "code": "131089",
    "description": "User sensitive operation, withdrawal is prohibited within 24 hours",
    "type": "asset"
  },
  {
    "code": "131090",
    "description": "User withdraw has been banned",
    "type": "asset"
  },
  {
    "code": "131091",
    "description": "Blocked login status does not allow withdrawals",
    "type": "asset"
  },
  {
    "code": "131092",
    "description": "User status is abnormal",
    "type": "asset"
  },
  {
    "code": "131093",
    "description": "The withdrawal address is not in the whitelist",
    "type": "asset"
  },
  {
    "code": "131094",
    "description": "UserId is not in the whitelist",
    "type": "asset"
  },
  {
    "code": "131095",
    "description": "Withdrawl amount exceeds the 24 hour platform limit",
    "type": "asset"
  },
  {
    "code": "131096",
    "description": "Withdraw amount does not satify the lower limit or upper limit",
    "type": "asset"
  },
  {
    "code": "131097",
    "description": "Withdrawal of this currency has been closed",
    "type": "asset"
  },
  {
    "code": "131098",
    "description": "Withdrawal currently is not availble from new address",
    "type": "asset"
  },
  {
    "code": "90040",
    "description": "Please wait at least 10 seconds between withdrawals. You need to wait for another 10 sec when operate the same coin and chain",
    "type": "asset"
  },
  {
    "code": "131099",
    "description": "Hot wallet status can cancel the withdraw",
    "type": "asset"
  },
  {
    "code": "131200",
    "description": "Service error",
    "type": "asset"
  },
  {
    "code": "131201",
    "description": "Internal error",
    "type": "asset"
  },
  {
    "code": "131202",
    "description": "Invalid memberId",
    "type": "asset"
  },
  {
    "code": "131203",
    "description": "Request parameter error",
    "type": "asset"
  },
  {
    "code": "131204",
    "description": "Account info error",
    "type": "asset"
  },
  {
    "code": "131205",
    "description": "Query transfer error",
    "type": "asset"
  },
  {
    "code": "131206",
    "description": "cannot be transfer",
    "type": "asset"
  },
  {
    "code": "131207",
    "description": "Account not exist",
    "type": "asset"
  },
  {
    "code": "131208",
    "description": "Forbid transfer",
    "type": "asset"
  },
  {
    "code": "131209",
    "description": "Get subMember relation error",
    "type": "asset"
  },
  {
    "code": "131210",
    "description": "Amount accuracy error",
    "type": "asset"
  },
  {
    "code": "131211",
    "description": "fromAccountType can't be the same as toAccountType",
    "type": "asset"
  },
  {
    "code": "131212",
    "description": "Insufficient balance",
    "type": "asset"
  },
  {
    "code": "131213",
    "description": "TransferLTV check error",
    "type": "asset"
  },
  {
    "code": "131214",
    "description": "TransferId exist",
    "type": "asset"
  },
  {
    "code": "131215",
    "description": "Amount error",
    "type": "asset"
  },
  {
    "code": "131216",
    "description": "Query balance error",
    "type": "asset"
  },
  {
    "code": "131217",
    "description": "Risk check error",
    "type": "asset"
  },
  {
    "code": "131227",
    "description": "Sub-account do not have universal transfer permission",
    "type": "asset"
  },
  {
    "code": "131228",
    "description": "your balance is not enough. Please check transfer safe amount",
    "type": "asset"
  },
  {
    "code": "131229",
    "description": "Due to compliance requirements, the current currency is not allowed to transfer",
    "type": "asset"
  },
  {
    "code": "131230",
    "description": "The system is busy, please try again later",
    "type": "asset"
  },
  {
    "code": "131231",
    "description": "Transfers into this account are not supported",
    "type": "asset"
  },
  {
    "code": "131232",
    "description": "Transfers out this account are not supported",
    "type": "asset"
  },
  {
    "code": "140001",
    "description": "Switching the PM spot hedging switch is not allowed in non PM mode",
    "type": "asset"
  },
  {
    "code": "140002",
    "description": "Institutional lending users do not support PM spot hedging",
    "type": "asset"
  },
  {
    "code": "140003",
    "description": "You have position(s) being liquidated, please try again later.",
    "type": "asset"
  },
  {
    "code": "140004",
    "description": "Operations Restriction: The current LTV ratio of your Institutional Loan has hit the liquidation threshold. Assets in your account are being liquidated.",
    "type": "asset"
  },
  {
    "code": "140005",
    "description": "Risk level after switching modes exceeds threshold",
    "type": "asset"
  },
  {
    "code": "141004",
    "description": "sub member is not normal",
    "type": "asset"
  },
  {
    "code": "141025",
    "description": "This sub-account has assets and cannot be deleted",
    "type": "asset"
  },
  {
    "code": "181000",
    "description": "category is null",
    "type": "asset"
  },
  {
    "code": "181001",
    "description": "category only support linear or option or spot.",
    "type": "asset"
  },
  {
    "code": "181002",
    "description": "symbol is null.",
    "type": "asset"
  },
  {
    "code": "181003",
    "description": "side is null.",
    "type": "asset"
  },
  {
    "code": "181004",
    "description": "side only support Buy or Sell.",
    "type": "asset"
  },
  {
    "code": "181005",
    "description": "orderStatus is wrong",
    "type": "asset"
  },
  {
    "code": "181006",
    "description": "startTime is not number",
    "type": "asset"
  },
  {
    "code": "181007",
    "description": "endTime is not number",
    "type": "asset"
  },
  {
    "code": "181008",
    "description": "Parameter startTime and endTime are both needed",
    "type": "asset"
  },
  {
    "code": "181009",
    "description": "Parameter startTime needs to be smaller than endTime",
    "type": "asset"
  },
  {
    "code": "181010",
    "description": "The time range between startTime and endTime cannot exceed 7 days",
    "type": "asset"
  },
  {
    "code": "181011",
    "description": "limit is not a number",
    "type": "asset"
  },
  {
    "code": "181012",
    "description": "symbol not exist",
    "type": "asset"
  },
  {
    "code": "181013",
    "description": "Only support settleCoin: usdc",
    "type": "asset"
  },
  {
    "code": "181014",
    "description": "Classic account is not supported",
    "type": "asset"
  },
  {
    "code": "181018",
    "description": "Invalid expDate.",
    "type": "asset"
  },
  {
    "code": "181019",
    "description": "Parameter expDate can't be earlier than 2 years",
    "type": "asset"
  },
  {
    "code": "182000",
    "description": "symbol related quote price is null",
    "type": "asset"
  },
  {
    "code": "3777002",
    "description": "UID cannot be bound repeatedly.",
    "type": "institutional_loan"
  },
  {
    "code": "3777003",
    "description": "UID cannot be unbound because the UID has not been bound to a risk unit.",
    "type": "institutional_loan"
  },
  {
    "code": "3777004",
    "description": "The main UID of the risk unit cannot be unbound.",
    "type": "institutional_loan"
  },
  {
    "code": "3777006",
    "description": "UID cannot be bound, please try again with a different UID.",
    "type": "institutional_loan"
  },
  {
    "code": "3777007",
    "description": "UID cannot be bound, please upgrade to UTA Pro.",
    "type": "institutional_loan"
  },
  {
    "code": "3777027",
    "description": "UID cannot be bound, leveraged trading closure failed.",
    "type": "institutional_loan"
  },
  {
    "code": "3777029",
    "description": "You currently have orders for pre-market trading that can’t be bind UIDs",
    "type": "institutional_loan"
  },
  {
    "code": "3500402",
    "description": "Parameter verification failed for 'limit'.",
    "type": "broker"
  },
  {
    "code": "3500403",
    "description": "Only available to exchange broker main-account",
    "type": "broker"
  },
  {
    "code": "3500404",
    "description": "Invalid Cursor",
    "type": "broker"
  },
  {
    "code": "3500405",
    "description": "Parameter \"startTime\" and \"endTime\" need to be input in pairs.",
    "type": "broker"
  },
  {
    "code": "3500406",
    "description": "Out of query time range.",
    "type": "broker"
  },
  {
    "code": "3500407",
    "description": "Parameter begin and end need to be input in pairs.",
    "type": "broker"
  }
]