pmxtjs 2.25.1 → 2.25.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/esm/generated/src/apis/DefaultApi.d.ts +58 -0
- package/dist/esm/generated/src/apis/DefaultApi.js +87 -29
- package/dist/esm/index.d.ts +6 -2
- package/dist/esm/index.js +6 -2
- package/dist/esm/pmxt/client.d.ts +62 -0
- package/dist/esm/pmxt/client.js +76 -0
- package/dist/esm/pmxt/models.d.ts +12 -0
- package/dist/generated/src/apis/DefaultApi.d.ts +58 -0
- package/dist/generated/src/apis/DefaultApi.js +87 -29
- package/dist/index.d.ts +6 -2
- package/dist/index.js +9 -1
- package/dist/pmxt/client.d.ts +62 -0
- package/dist/pmxt/client.js +81 -1
- package/dist/pmxt/models.d.ts +12 -0
- package/generated/docs/DefaultApi.md +58 -58
- package/generated/package.json +1 -1
- package/generated/src/apis/DefaultApi.ts +87 -29
- package/index.ts +6 -2
- package/package.json +2 -2
- package/pmxt/client.ts +80 -0
- package/pmxt/models.ts +18 -0
|
@@ -910,13 +910,15 @@ export class DefaultApi extends runtime.BaseAPI {
|
|
|
910
910
|
export const BuildOrderOperationExchangeEnum = {
|
|
911
911
|
Polymarket: 'polymarket',
|
|
912
912
|
Kalshi: 'kalshi',
|
|
913
|
+
KalshiDemo: 'kalshi-demo',
|
|
913
914
|
Limitless: 'limitless',
|
|
914
915
|
Probable: 'probable',
|
|
915
916
|
Baozi: 'baozi',
|
|
916
917
|
Myriad: 'myriad',
|
|
917
918
|
Opinion: 'opinion',
|
|
918
919
|
Metaculus: 'metaculus',
|
|
919
|
-
Smarkets: 'smarkets'
|
|
920
|
+
Smarkets: 'smarkets',
|
|
921
|
+
PolymarketUs: 'polymarket_us'
|
|
920
922
|
};
|
|
921
923
|
/**
|
|
922
924
|
* @export
|
|
@@ -924,13 +926,15 @@ export const BuildOrderOperationExchangeEnum = {
|
|
|
924
926
|
export const CancelOrderOperationExchangeEnum = {
|
|
925
927
|
Polymarket: 'polymarket',
|
|
926
928
|
Kalshi: 'kalshi',
|
|
929
|
+
KalshiDemo: 'kalshi-demo',
|
|
927
930
|
Limitless: 'limitless',
|
|
928
931
|
Probable: 'probable',
|
|
929
932
|
Baozi: 'baozi',
|
|
930
933
|
Myriad: 'myriad',
|
|
931
934
|
Opinion: 'opinion',
|
|
932
935
|
Metaculus: 'metaculus',
|
|
933
|
-
Smarkets: 'smarkets'
|
|
936
|
+
Smarkets: 'smarkets',
|
|
937
|
+
PolymarketUs: 'polymarket_us'
|
|
934
938
|
};
|
|
935
939
|
/**
|
|
936
940
|
* @export
|
|
@@ -938,13 +942,15 @@ export const CancelOrderOperationExchangeEnum = {
|
|
|
938
942
|
export const CloseOperationExchangeEnum = {
|
|
939
943
|
Polymarket: 'polymarket',
|
|
940
944
|
Kalshi: 'kalshi',
|
|
945
|
+
KalshiDemo: 'kalshi-demo',
|
|
941
946
|
Limitless: 'limitless',
|
|
942
947
|
Probable: 'probable',
|
|
943
948
|
Baozi: 'baozi',
|
|
944
949
|
Myriad: 'myriad',
|
|
945
950
|
Opinion: 'opinion',
|
|
946
951
|
Metaculus: 'metaculus',
|
|
947
|
-
Smarkets: 'smarkets'
|
|
952
|
+
Smarkets: 'smarkets',
|
|
953
|
+
PolymarketUs: 'polymarket_us'
|
|
948
954
|
};
|
|
949
955
|
/**
|
|
950
956
|
* @export
|
|
@@ -952,13 +958,15 @@ export const CloseOperationExchangeEnum = {
|
|
|
952
958
|
export const CreateOrderOperationExchangeEnum = {
|
|
953
959
|
Polymarket: 'polymarket',
|
|
954
960
|
Kalshi: 'kalshi',
|
|
961
|
+
KalshiDemo: 'kalshi-demo',
|
|
955
962
|
Limitless: 'limitless',
|
|
956
963
|
Probable: 'probable',
|
|
957
964
|
Baozi: 'baozi',
|
|
958
965
|
Myriad: 'myriad',
|
|
959
966
|
Opinion: 'opinion',
|
|
960
967
|
Metaculus: 'metaculus',
|
|
961
|
-
Smarkets: 'smarkets'
|
|
968
|
+
Smarkets: 'smarkets',
|
|
969
|
+
PolymarketUs: 'polymarket_us'
|
|
962
970
|
};
|
|
963
971
|
/**
|
|
964
972
|
* @export
|
|
@@ -966,13 +974,15 @@ export const CreateOrderOperationExchangeEnum = {
|
|
|
966
974
|
export const FetchAllOrdersOperationExchangeEnum = {
|
|
967
975
|
Polymarket: 'polymarket',
|
|
968
976
|
Kalshi: 'kalshi',
|
|
977
|
+
KalshiDemo: 'kalshi-demo',
|
|
969
978
|
Limitless: 'limitless',
|
|
970
979
|
Probable: 'probable',
|
|
971
980
|
Baozi: 'baozi',
|
|
972
981
|
Myriad: 'myriad',
|
|
973
982
|
Opinion: 'opinion',
|
|
974
983
|
Metaculus: 'metaculus',
|
|
975
|
-
Smarkets: 'smarkets'
|
|
984
|
+
Smarkets: 'smarkets',
|
|
985
|
+
PolymarketUs: 'polymarket_us'
|
|
976
986
|
};
|
|
977
987
|
/**
|
|
978
988
|
* @export
|
|
@@ -980,13 +990,15 @@ export const FetchAllOrdersOperationExchangeEnum = {
|
|
|
980
990
|
export const FetchBalanceOperationExchangeEnum = {
|
|
981
991
|
Polymarket: 'polymarket',
|
|
982
992
|
Kalshi: 'kalshi',
|
|
993
|
+
KalshiDemo: 'kalshi-demo',
|
|
983
994
|
Limitless: 'limitless',
|
|
984
995
|
Probable: 'probable',
|
|
985
996
|
Baozi: 'baozi',
|
|
986
997
|
Myriad: 'myriad',
|
|
987
998
|
Opinion: 'opinion',
|
|
988
999
|
Metaculus: 'metaculus',
|
|
989
|
-
Smarkets: 'smarkets'
|
|
1000
|
+
Smarkets: 'smarkets',
|
|
1001
|
+
PolymarketUs: 'polymarket_us'
|
|
990
1002
|
};
|
|
991
1003
|
/**
|
|
992
1004
|
* @export
|
|
@@ -994,13 +1006,15 @@ export const FetchBalanceOperationExchangeEnum = {
|
|
|
994
1006
|
export const FetchClosedOrdersOperationExchangeEnum = {
|
|
995
1007
|
Polymarket: 'polymarket',
|
|
996
1008
|
Kalshi: 'kalshi',
|
|
1009
|
+
KalshiDemo: 'kalshi-demo',
|
|
997
1010
|
Limitless: 'limitless',
|
|
998
1011
|
Probable: 'probable',
|
|
999
1012
|
Baozi: 'baozi',
|
|
1000
1013
|
Myriad: 'myriad',
|
|
1001
1014
|
Opinion: 'opinion',
|
|
1002
1015
|
Metaculus: 'metaculus',
|
|
1003
|
-
Smarkets: 'smarkets'
|
|
1016
|
+
Smarkets: 'smarkets',
|
|
1017
|
+
PolymarketUs: 'polymarket_us'
|
|
1004
1018
|
};
|
|
1005
1019
|
/**
|
|
1006
1020
|
* @export
|
|
@@ -1008,13 +1022,15 @@ export const FetchClosedOrdersOperationExchangeEnum = {
|
|
|
1008
1022
|
export const FetchEventOperationExchangeEnum = {
|
|
1009
1023
|
Polymarket: 'polymarket',
|
|
1010
1024
|
Kalshi: 'kalshi',
|
|
1025
|
+
KalshiDemo: 'kalshi-demo',
|
|
1011
1026
|
Limitless: 'limitless',
|
|
1012
1027
|
Probable: 'probable',
|
|
1013
1028
|
Baozi: 'baozi',
|
|
1014
1029
|
Myriad: 'myriad',
|
|
1015
1030
|
Opinion: 'opinion',
|
|
1016
1031
|
Metaculus: 'metaculus',
|
|
1017
|
-
Smarkets: 'smarkets'
|
|
1032
|
+
Smarkets: 'smarkets',
|
|
1033
|
+
PolymarketUs: 'polymarket_us'
|
|
1018
1034
|
};
|
|
1019
1035
|
/**
|
|
1020
1036
|
* @export
|
|
@@ -1022,13 +1038,15 @@ export const FetchEventOperationExchangeEnum = {
|
|
|
1022
1038
|
export const FetchEventsOperationExchangeEnum = {
|
|
1023
1039
|
Polymarket: 'polymarket',
|
|
1024
1040
|
Kalshi: 'kalshi',
|
|
1041
|
+
KalshiDemo: 'kalshi-demo',
|
|
1025
1042
|
Limitless: 'limitless',
|
|
1026
1043
|
Probable: 'probable',
|
|
1027
1044
|
Baozi: 'baozi',
|
|
1028
1045
|
Myriad: 'myriad',
|
|
1029
1046
|
Opinion: 'opinion',
|
|
1030
1047
|
Metaculus: 'metaculus',
|
|
1031
|
-
Smarkets: 'smarkets'
|
|
1048
|
+
Smarkets: 'smarkets',
|
|
1049
|
+
PolymarketUs: 'polymarket_us'
|
|
1032
1050
|
};
|
|
1033
1051
|
/**
|
|
1034
1052
|
* @export
|
|
@@ -1036,13 +1054,15 @@ export const FetchEventsOperationExchangeEnum = {
|
|
|
1036
1054
|
export const FetchMarketOperationExchangeEnum = {
|
|
1037
1055
|
Polymarket: 'polymarket',
|
|
1038
1056
|
Kalshi: 'kalshi',
|
|
1057
|
+
KalshiDemo: 'kalshi-demo',
|
|
1039
1058
|
Limitless: 'limitless',
|
|
1040
1059
|
Probable: 'probable',
|
|
1041
1060
|
Baozi: 'baozi',
|
|
1042
1061
|
Myriad: 'myriad',
|
|
1043
1062
|
Opinion: 'opinion',
|
|
1044
1063
|
Metaculus: 'metaculus',
|
|
1045
|
-
Smarkets: 'smarkets'
|
|
1064
|
+
Smarkets: 'smarkets',
|
|
1065
|
+
PolymarketUs: 'polymarket_us'
|
|
1046
1066
|
};
|
|
1047
1067
|
/**
|
|
1048
1068
|
* @export
|
|
@@ -1050,13 +1070,15 @@ export const FetchMarketOperationExchangeEnum = {
|
|
|
1050
1070
|
export const FetchMarketsOperationExchangeEnum = {
|
|
1051
1071
|
Polymarket: 'polymarket',
|
|
1052
1072
|
Kalshi: 'kalshi',
|
|
1073
|
+
KalshiDemo: 'kalshi-demo',
|
|
1053
1074
|
Limitless: 'limitless',
|
|
1054
1075
|
Probable: 'probable',
|
|
1055
1076
|
Baozi: 'baozi',
|
|
1056
1077
|
Myriad: 'myriad',
|
|
1057
1078
|
Opinion: 'opinion',
|
|
1058
1079
|
Metaculus: 'metaculus',
|
|
1059
|
-
Smarkets: 'smarkets'
|
|
1080
|
+
Smarkets: 'smarkets',
|
|
1081
|
+
PolymarketUs: 'polymarket_us'
|
|
1060
1082
|
};
|
|
1061
1083
|
/**
|
|
1062
1084
|
* @export
|
|
@@ -1064,13 +1086,15 @@ export const FetchMarketsOperationExchangeEnum = {
|
|
|
1064
1086
|
export const FetchMarketsPaginatedOperationExchangeEnum = {
|
|
1065
1087
|
Polymarket: 'polymarket',
|
|
1066
1088
|
Kalshi: 'kalshi',
|
|
1089
|
+
KalshiDemo: 'kalshi-demo',
|
|
1067
1090
|
Limitless: 'limitless',
|
|
1068
1091
|
Probable: 'probable',
|
|
1069
1092
|
Baozi: 'baozi',
|
|
1070
1093
|
Myriad: 'myriad',
|
|
1071
1094
|
Opinion: 'opinion',
|
|
1072
1095
|
Metaculus: 'metaculus',
|
|
1073
|
-
Smarkets: 'smarkets'
|
|
1096
|
+
Smarkets: 'smarkets',
|
|
1097
|
+
PolymarketUs: 'polymarket_us'
|
|
1074
1098
|
};
|
|
1075
1099
|
/**
|
|
1076
1100
|
* @export
|
|
@@ -1078,13 +1102,15 @@ export const FetchMarketsPaginatedOperationExchangeEnum = {
|
|
|
1078
1102
|
export const FetchMyTradesOperationExchangeEnum = {
|
|
1079
1103
|
Polymarket: 'polymarket',
|
|
1080
1104
|
Kalshi: 'kalshi',
|
|
1105
|
+
KalshiDemo: 'kalshi-demo',
|
|
1081
1106
|
Limitless: 'limitless',
|
|
1082
1107
|
Probable: 'probable',
|
|
1083
1108
|
Baozi: 'baozi',
|
|
1084
1109
|
Myriad: 'myriad',
|
|
1085
1110
|
Opinion: 'opinion',
|
|
1086
1111
|
Metaculus: 'metaculus',
|
|
1087
|
-
Smarkets: 'smarkets'
|
|
1112
|
+
Smarkets: 'smarkets',
|
|
1113
|
+
PolymarketUs: 'polymarket_us'
|
|
1088
1114
|
};
|
|
1089
1115
|
/**
|
|
1090
1116
|
* @export
|
|
@@ -1092,13 +1118,15 @@ export const FetchMyTradesOperationExchangeEnum = {
|
|
|
1092
1118
|
export const FetchOHLCVOperationExchangeEnum = {
|
|
1093
1119
|
Polymarket: 'polymarket',
|
|
1094
1120
|
Kalshi: 'kalshi',
|
|
1121
|
+
KalshiDemo: 'kalshi-demo',
|
|
1095
1122
|
Limitless: 'limitless',
|
|
1096
1123
|
Probable: 'probable',
|
|
1097
1124
|
Baozi: 'baozi',
|
|
1098
1125
|
Myriad: 'myriad',
|
|
1099
1126
|
Opinion: 'opinion',
|
|
1100
1127
|
Metaculus: 'metaculus',
|
|
1101
|
-
Smarkets: 'smarkets'
|
|
1128
|
+
Smarkets: 'smarkets',
|
|
1129
|
+
PolymarketUs: 'polymarket_us'
|
|
1102
1130
|
};
|
|
1103
1131
|
/**
|
|
1104
1132
|
* @export
|
|
@@ -1106,13 +1134,15 @@ export const FetchOHLCVOperationExchangeEnum = {
|
|
|
1106
1134
|
export const FetchOpenOrdersOperationExchangeEnum = {
|
|
1107
1135
|
Polymarket: 'polymarket',
|
|
1108
1136
|
Kalshi: 'kalshi',
|
|
1137
|
+
KalshiDemo: 'kalshi-demo',
|
|
1109
1138
|
Limitless: 'limitless',
|
|
1110
1139
|
Probable: 'probable',
|
|
1111
1140
|
Baozi: 'baozi',
|
|
1112
1141
|
Myriad: 'myriad',
|
|
1113
1142
|
Opinion: 'opinion',
|
|
1114
1143
|
Metaculus: 'metaculus',
|
|
1115
|
-
Smarkets: 'smarkets'
|
|
1144
|
+
Smarkets: 'smarkets',
|
|
1145
|
+
PolymarketUs: 'polymarket_us'
|
|
1116
1146
|
};
|
|
1117
1147
|
/**
|
|
1118
1148
|
* @export
|
|
@@ -1120,13 +1150,15 @@ export const FetchOpenOrdersOperationExchangeEnum = {
|
|
|
1120
1150
|
export const FetchOrderOperationExchangeEnum = {
|
|
1121
1151
|
Polymarket: 'polymarket',
|
|
1122
1152
|
Kalshi: 'kalshi',
|
|
1153
|
+
KalshiDemo: 'kalshi-demo',
|
|
1123
1154
|
Limitless: 'limitless',
|
|
1124
1155
|
Probable: 'probable',
|
|
1125
1156
|
Baozi: 'baozi',
|
|
1126
1157
|
Myriad: 'myriad',
|
|
1127
1158
|
Opinion: 'opinion',
|
|
1128
1159
|
Metaculus: 'metaculus',
|
|
1129
|
-
Smarkets: 'smarkets'
|
|
1160
|
+
Smarkets: 'smarkets',
|
|
1161
|
+
PolymarketUs: 'polymarket_us'
|
|
1130
1162
|
};
|
|
1131
1163
|
/**
|
|
1132
1164
|
* @export
|
|
@@ -1134,13 +1166,15 @@ export const FetchOrderOperationExchangeEnum = {
|
|
|
1134
1166
|
export const FetchOrderBookOperationExchangeEnum = {
|
|
1135
1167
|
Polymarket: 'polymarket',
|
|
1136
1168
|
Kalshi: 'kalshi',
|
|
1169
|
+
KalshiDemo: 'kalshi-demo',
|
|
1137
1170
|
Limitless: 'limitless',
|
|
1138
1171
|
Probable: 'probable',
|
|
1139
1172
|
Baozi: 'baozi',
|
|
1140
1173
|
Myriad: 'myriad',
|
|
1141
1174
|
Opinion: 'opinion',
|
|
1142
1175
|
Metaculus: 'metaculus',
|
|
1143
|
-
Smarkets: 'smarkets'
|
|
1176
|
+
Smarkets: 'smarkets',
|
|
1177
|
+
PolymarketUs: 'polymarket_us'
|
|
1144
1178
|
};
|
|
1145
1179
|
/**
|
|
1146
1180
|
* @export
|
|
@@ -1148,13 +1182,15 @@ export const FetchOrderBookOperationExchangeEnum = {
|
|
|
1148
1182
|
export const FetchPositionsOperationExchangeEnum = {
|
|
1149
1183
|
Polymarket: 'polymarket',
|
|
1150
1184
|
Kalshi: 'kalshi',
|
|
1185
|
+
KalshiDemo: 'kalshi-demo',
|
|
1151
1186
|
Limitless: 'limitless',
|
|
1152
1187
|
Probable: 'probable',
|
|
1153
1188
|
Baozi: 'baozi',
|
|
1154
1189
|
Myriad: 'myriad',
|
|
1155
1190
|
Opinion: 'opinion',
|
|
1156
1191
|
Metaculus: 'metaculus',
|
|
1157
|
-
Smarkets: 'smarkets'
|
|
1192
|
+
Smarkets: 'smarkets',
|
|
1193
|
+
PolymarketUs: 'polymarket_us'
|
|
1158
1194
|
};
|
|
1159
1195
|
/**
|
|
1160
1196
|
* @export
|
|
@@ -1162,13 +1198,15 @@ export const FetchPositionsOperationExchangeEnum = {
|
|
|
1162
1198
|
export const FetchTradesOperationExchangeEnum = {
|
|
1163
1199
|
Polymarket: 'polymarket',
|
|
1164
1200
|
Kalshi: 'kalshi',
|
|
1201
|
+
KalshiDemo: 'kalshi-demo',
|
|
1165
1202
|
Limitless: 'limitless',
|
|
1166
1203
|
Probable: 'probable',
|
|
1167
1204
|
Baozi: 'baozi',
|
|
1168
1205
|
Myriad: 'myriad',
|
|
1169
1206
|
Opinion: 'opinion',
|
|
1170
1207
|
Metaculus: 'metaculus',
|
|
1171
|
-
Smarkets: 'smarkets'
|
|
1208
|
+
Smarkets: 'smarkets',
|
|
1209
|
+
PolymarketUs: 'polymarket_us'
|
|
1172
1210
|
};
|
|
1173
1211
|
/**
|
|
1174
1212
|
* @export
|
|
@@ -1176,13 +1214,15 @@ export const FetchTradesOperationExchangeEnum = {
|
|
|
1176
1214
|
export const FilterEventsOperationExchangeEnum = {
|
|
1177
1215
|
Polymarket: 'polymarket',
|
|
1178
1216
|
Kalshi: 'kalshi',
|
|
1217
|
+
KalshiDemo: 'kalshi-demo',
|
|
1179
1218
|
Limitless: 'limitless',
|
|
1180
1219
|
Probable: 'probable',
|
|
1181
1220
|
Baozi: 'baozi',
|
|
1182
1221
|
Myriad: 'myriad',
|
|
1183
1222
|
Opinion: 'opinion',
|
|
1184
1223
|
Metaculus: 'metaculus',
|
|
1185
|
-
Smarkets: 'smarkets'
|
|
1224
|
+
Smarkets: 'smarkets',
|
|
1225
|
+
PolymarketUs: 'polymarket_us'
|
|
1186
1226
|
};
|
|
1187
1227
|
/**
|
|
1188
1228
|
* @export
|
|
@@ -1190,13 +1230,15 @@ export const FilterEventsOperationExchangeEnum = {
|
|
|
1190
1230
|
export const FilterMarketsOperationExchangeEnum = {
|
|
1191
1231
|
Polymarket: 'polymarket',
|
|
1192
1232
|
Kalshi: 'kalshi',
|
|
1233
|
+
KalshiDemo: 'kalshi-demo',
|
|
1193
1234
|
Limitless: 'limitless',
|
|
1194
1235
|
Probable: 'probable',
|
|
1195
1236
|
Baozi: 'baozi',
|
|
1196
1237
|
Myriad: 'myriad',
|
|
1197
1238
|
Opinion: 'opinion',
|
|
1198
1239
|
Metaculus: 'metaculus',
|
|
1199
|
-
Smarkets: 'smarkets'
|
|
1240
|
+
Smarkets: 'smarkets',
|
|
1241
|
+
PolymarketUs: 'polymarket_us'
|
|
1200
1242
|
};
|
|
1201
1243
|
/**
|
|
1202
1244
|
* @export
|
|
@@ -1204,13 +1246,15 @@ export const FilterMarketsOperationExchangeEnum = {
|
|
|
1204
1246
|
export const GetExecutionPriceOperationExchangeEnum = {
|
|
1205
1247
|
Polymarket: 'polymarket',
|
|
1206
1248
|
Kalshi: 'kalshi',
|
|
1249
|
+
KalshiDemo: 'kalshi-demo',
|
|
1207
1250
|
Limitless: 'limitless',
|
|
1208
1251
|
Probable: 'probable',
|
|
1209
1252
|
Baozi: 'baozi',
|
|
1210
1253
|
Myriad: 'myriad',
|
|
1211
1254
|
Opinion: 'opinion',
|
|
1212
1255
|
Metaculus: 'metaculus',
|
|
1213
|
-
Smarkets: 'smarkets'
|
|
1256
|
+
Smarkets: 'smarkets',
|
|
1257
|
+
PolymarketUs: 'polymarket_us'
|
|
1214
1258
|
};
|
|
1215
1259
|
/**
|
|
1216
1260
|
* @export
|
|
@@ -1218,13 +1262,15 @@ export const GetExecutionPriceOperationExchangeEnum = {
|
|
|
1218
1262
|
export const GetExecutionPriceDetailedOperationExchangeEnum = {
|
|
1219
1263
|
Polymarket: 'polymarket',
|
|
1220
1264
|
Kalshi: 'kalshi',
|
|
1265
|
+
KalshiDemo: 'kalshi-demo',
|
|
1221
1266
|
Limitless: 'limitless',
|
|
1222
1267
|
Probable: 'probable',
|
|
1223
1268
|
Baozi: 'baozi',
|
|
1224
1269
|
Myriad: 'myriad',
|
|
1225
1270
|
Opinion: 'opinion',
|
|
1226
1271
|
Metaculus: 'metaculus',
|
|
1227
|
-
Smarkets: 'smarkets'
|
|
1272
|
+
Smarkets: 'smarkets',
|
|
1273
|
+
PolymarketUs: 'polymarket_us'
|
|
1228
1274
|
};
|
|
1229
1275
|
/**
|
|
1230
1276
|
* @export
|
|
@@ -1232,13 +1278,15 @@ export const GetExecutionPriceDetailedOperationExchangeEnum = {
|
|
|
1232
1278
|
export const LoadMarketsOperationExchangeEnum = {
|
|
1233
1279
|
Polymarket: 'polymarket',
|
|
1234
1280
|
Kalshi: 'kalshi',
|
|
1281
|
+
KalshiDemo: 'kalshi-demo',
|
|
1235
1282
|
Limitless: 'limitless',
|
|
1236
1283
|
Probable: 'probable',
|
|
1237
1284
|
Baozi: 'baozi',
|
|
1238
1285
|
Myriad: 'myriad',
|
|
1239
1286
|
Opinion: 'opinion',
|
|
1240
1287
|
Metaculus: 'metaculus',
|
|
1241
|
-
Smarkets: 'smarkets'
|
|
1288
|
+
Smarkets: 'smarkets',
|
|
1289
|
+
PolymarketUs: 'polymarket_us'
|
|
1242
1290
|
};
|
|
1243
1291
|
/**
|
|
1244
1292
|
* @export
|
|
@@ -1246,13 +1294,15 @@ export const LoadMarketsOperationExchangeEnum = {
|
|
|
1246
1294
|
export const SubmitOrderOperationExchangeEnum = {
|
|
1247
1295
|
Polymarket: 'polymarket',
|
|
1248
1296
|
Kalshi: 'kalshi',
|
|
1297
|
+
KalshiDemo: 'kalshi-demo',
|
|
1249
1298
|
Limitless: 'limitless',
|
|
1250
1299
|
Probable: 'probable',
|
|
1251
1300
|
Baozi: 'baozi',
|
|
1252
1301
|
Myriad: 'myriad',
|
|
1253
1302
|
Opinion: 'opinion',
|
|
1254
1303
|
Metaculus: 'metaculus',
|
|
1255
|
-
Smarkets: 'smarkets'
|
|
1304
|
+
Smarkets: 'smarkets',
|
|
1305
|
+
PolymarketUs: 'polymarket_us'
|
|
1256
1306
|
};
|
|
1257
1307
|
/**
|
|
1258
1308
|
* @export
|
|
@@ -1260,13 +1310,15 @@ export const SubmitOrderOperationExchangeEnum = {
|
|
|
1260
1310
|
export const UnwatchAddressOperationExchangeEnum = {
|
|
1261
1311
|
Polymarket: 'polymarket',
|
|
1262
1312
|
Kalshi: 'kalshi',
|
|
1313
|
+
KalshiDemo: 'kalshi-demo',
|
|
1263
1314
|
Limitless: 'limitless',
|
|
1264
1315
|
Probable: 'probable',
|
|
1265
1316
|
Baozi: 'baozi',
|
|
1266
1317
|
Myriad: 'myriad',
|
|
1267
1318
|
Opinion: 'opinion',
|
|
1268
1319
|
Metaculus: 'metaculus',
|
|
1269
|
-
Smarkets: 'smarkets'
|
|
1320
|
+
Smarkets: 'smarkets',
|
|
1321
|
+
PolymarketUs: 'polymarket_us'
|
|
1270
1322
|
};
|
|
1271
1323
|
/**
|
|
1272
1324
|
* @export
|
|
@@ -1274,13 +1326,15 @@ export const UnwatchAddressOperationExchangeEnum = {
|
|
|
1274
1326
|
export const WatchAddressOperationExchangeEnum = {
|
|
1275
1327
|
Polymarket: 'polymarket',
|
|
1276
1328
|
Kalshi: 'kalshi',
|
|
1329
|
+
KalshiDemo: 'kalshi-demo',
|
|
1277
1330
|
Limitless: 'limitless',
|
|
1278
1331
|
Probable: 'probable',
|
|
1279
1332
|
Baozi: 'baozi',
|
|
1280
1333
|
Myriad: 'myriad',
|
|
1281
1334
|
Opinion: 'opinion',
|
|
1282
1335
|
Metaculus: 'metaculus',
|
|
1283
|
-
Smarkets: 'smarkets'
|
|
1336
|
+
Smarkets: 'smarkets',
|
|
1337
|
+
PolymarketUs: 'polymarket_us'
|
|
1284
1338
|
};
|
|
1285
1339
|
/**
|
|
1286
1340
|
* @export
|
|
@@ -1288,13 +1342,15 @@ export const WatchAddressOperationExchangeEnum = {
|
|
|
1288
1342
|
export const WatchOrderBookOperationExchangeEnum = {
|
|
1289
1343
|
Polymarket: 'polymarket',
|
|
1290
1344
|
Kalshi: 'kalshi',
|
|
1345
|
+
KalshiDemo: 'kalshi-demo',
|
|
1291
1346
|
Limitless: 'limitless',
|
|
1292
1347
|
Probable: 'probable',
|
|
1293
1348
|
Baozi: 'baozi',
|
|
1294
1349
|
Myriad: 'myriad',
|
|
1295
1350
|
Opinion: 'opinion',
|
|
1296
1351
|
Metaculus: 'metaculus',
|
|
1297
|
-
Smarkets: 'smarkets'
|
|
1352
|
+
Smarkets: 'smarkets',
|
|
1353
|
+
PolymarketUs: 'polymarket_us'
|
|
1298
1354
|
};
|
|
1299
1355
|
/**
|
|
1300
1356
|
* @export
|
|
@@ -1302,11 +1358,13 @@ export const WatchOrderBookOperationExchangeEnum = {
|
|
|
1302
1358
|
export const WatchTradesOperationExchangeEnum = {
|
|
1303
1359
|
Polymarket: 'polymarket',
|
|
1304
1360
|
Kalshi: 'kalshi',
|
|
1361
|
+
KalshiDemo: 'kalshi-demo',
|
|
1305
1362
|
Limitless: 'limitless',
|
|
1306
1363
|
Probable: 'probable',
|
|
1307
1364
|
Baozi: 'baozi',
|
|
1308
1365
|
Myriad: 'myriad',
|
|
1309
1366
|
Opinion: 'opinion',
|
|
1310
1367
|
Metaculus: 'metaculus',
|
|
1311
|
-
Smarkets: 'smarkets'
|
|
1368
|
+
Smarkets: 'smarkets',
|
|
1369
|
+
PolymarketUs: 'polymarket_us'
|
|
1312
1370
|
};
|
package/dist/esm/index.d.ts
CHANGED
|
@@ -17,11 +17,11 @@
|
|
|
17
17
|
* console.log(markets[0].title);
|
|
18
18
|
* ```
|
|
19
19
|
*/
|
|
20
|
-
import { Exchange, Polymarket, Kalshi, KalshiDemo, Limitless, Myriad, Probable, Baozi } from "./pmxt/client.js";
|
|
20
|
+
import { Exchange, Polymarket, Kalshi, KalshiDemo, Limitless, Myriad, Probable, Baozi, Opinion, Metaculus, Smarkets, PolymarketUS } from "./pmxt/client.js";
|
|
21
21
|
import { ServerManager } from "./pmxt/server-manager.js";
|
|
22
22
|
import * as models from "./pmxt/models.js";
|
|
23
23
|
import * as errors from "./pmxt/errors.js";
|
|
24
|
-
export { Exchange, Polymarket, Kalshi, KalshiDemo, Limitless, Myriad, Probable, Baozi, PolymarketOptions } from "./pmxt/client.js";
|
|
24
|
+
export { Exchange, Polymarket, Kalshi, KalshiDemo, Limitless, Myriad, Probable, Baozi, Opinion, Metaculus, Smarkets, PolymarketUS, PolymarketOptions } from "./pmxt/client.js";
|
|
25
25
|
export { ServerManager } from "./pmxt/server-manager.js";
|
|
26
26
|
export { MarketList } from "./pmxt/models.js";
|
|
27
27
|
export type * from "./pmxt/models.js";
|
|
@@ -53,6 +53,10 @@ declare const pmxt: {
|
|
|
53
53
|
Myriad: typeof Myriad;
|
|
54
54
|
Probable: typeof Probable;
|
|
55
55
|
Baozi: typeof Baozi;
|
|
56
|
+
Opinion: typeof Opinion;
|
|
57
|
+
Metaculus: typeof Metaculus;
|
|
58
|
+
Smarkets: typeof Smarkets;
|
|
59
|
+
PolymarketUS: typeof PolymarketUS;
|
|
56
60
|
ServerManager: typeof ServerManager;
|
|
57
61
|
stopServer: typeof stopServer;
|
|
58
62
|
restartServer: typeof restartServer;
|
package/dist/esm/index.js
CHANGED
|
@@ -17,11 +17,11 @@
|
|
|
17
17
|
* console.log(markets[0].title);
|
|
18
18
|
* ```
|
|
19
19
|
*/
|
|
20
|
-
import { Exchange, Polymarket, Kalshi, KalshiDemo, Limitless, Myriad, Probable, Baozi } from "./pmxt/client.js";
|
|
20
|
+
import { Exchange, Polymarket, Kalshi, KalshiDemo, Limitless, Myriad, Probable, Baozi, Opinion, Metaculus, Smarkets, PolymarketUS } from "./pmxt/client.js";
|
|
21
21
|
import { ServerManager } from "./pmxt/server-manager.js";
|
|
22
22
|
import * as models from "./pmxt/models.js";
|
|
23
23
|
import * as errors from "./pmxt/errors.js";
|
|
24
|
-
export { Exchange, Polymarket, Kalshi, KalshiDemo, Limitless, Myriad, Probable, Baozi } from "./pmxt/client.js";
|
|
24
|
+
export { Exchange, Polymarket, Kalshi, KalshiDemo, Limitless, Myriad, Probable, Baozi, Opinion, Metaculus, Smarkets, PolymarketUS } from "./pmxt/client.js";
|
|
25
25
|
export { ServerManager } from "./pmxt/server-manager.js";
|
|
26
26
|
export { MarketList } from "./pmxt/models.js";
|
|
27
27
|
export * from "./pmxt/errors.js";
|
|
@@ -41,6 +41,10 @@ const pmxt = {
|
|
|
41
41
|
Myriad,
|
|
42
42
|
Probable,
|
|
43
43
|
Baozi,
|
|
44
|
+
Opinion,
|
|
45
|
+
Metaculus,
|
|
46
|
+
Smarkets,
|
|
47
|
+
PolymarketUS,
|
|
44
48
|
ServerManager,
|
|
45
49
|
stopServer,
|
|
46
50
|
restartServer,
|
|
@@ -479,3 +479,65 @@ export declare class Probable extends Exchange {
|
|
|
479
479
|
export declare class Baozi extends Exchange {
|
|
480
480
|
constructor(options?: ExchangeOptions);
|
|
481
481
|
}
|
|
482
|
+
/**
|
|
483
|
+
* Opinion exchange client.
|
|
484
|
+
*
|
|
485
|
+
* Polygon-based CLOB exchange. Public catalog endpoints work without
|
|
486
|
+
* credentials; trading requires `apiKey` (proxy address) and `privateKey`.
|
|
487
|
+
*
|
|
488
|
+
* @example
|
|
489
|
+
* ```typescript
|
|
490
|
+
* const opinion = new Opinion();
|
|
491
|
+
* const events = await opinion.fetchEvents();
|
|
492
|
+
* ```
|
|
493
|
+
*/
|
|
494
|
+
export declare class Opinion extends Exchange {
|
|
495
|
+
constructor(options?: ExchangeOptions);
|
|
496
|
+
}
|
|
497
|
+
/**
|
|
498
|
+
* Metaculus exchange client.
|
|
499
|
+
*
|
|
500
|
+
* Forecasting platform. Public read-only access works without credentials;
|
|
501
|
+
* authenticated calls accept a bearer token via `apiKey`.
|
|
502
|
+
*
|
|
503
|
+
* @example
|
|
504
|
+
* ```typescript
|
|
505
|
+
* const metaculus = new Metaculus();
|
|
506
|
+
* const events = await metaculus.fetchEvents();
|
|
507
|
+
* ```
|
|
508
|
+
*/
|
|
509
|
+
export declare class Metaculus extends Exchange {
|
|
510
|
+
constructor(options?: ExchangeOptions);
|
|
511
|
+
}
|
|
512
|
+
/**
|
|
513
|
+
* Smarkets exchange client.
|
|
514
|
+
*
|
|
515
|
+
* UK-based betting exchange. Public catalog endpoints work without
|
|
516
|
+
* credentials; trading requires Smarkets account email (`apiKey`) and
|
|
517
|
+
* password (`privateKey`).
|
|
518
|
+
*
|
|
519
|
+
* @example
|
|
520
|
+
* ```typescript
|
|
521
|
+
* const smarkets = new Smarkets();
|
|
522
|
+
* const events = await smarkets.fetchEvents();
|
|
523
|
+
* ```
|
|
524
|
+
*/
|
|
525
|
+
export declare class Smarkets extends Exchange {
|
|
526
|
+
constructor(options?: ExchangeOptions);
|
|
527
|
+
}
|
|
528
|
+
/**
|
|
529
|
+
* Polymarket US exchange client.
|
|
530
|
+
*
|
|
531
|
+
* US-regulated Polymarket venue. Public catalog endpoints work without
|
|
532
|
+
* credentials; trading requires `apiKey` (keyId) and `privateKey`
|
|
533
|
+
* (secretKey) issued by Polymarket US.
|
|
534
|
+
*
|
|
535
|
+
* @example
|
|
536
|
+
* ```typescript
|
|
537
|
+
* const polyUs = new PolymarketUS();
|
|
538
|
+
* const events = await polyUs.fetchEvents();
|
|
539
|
+
* ```
|
|
540
|
+
*/
|
|
541
|
+
export declare class PolymarketUS extends Exchange {
|
|
542
|
+
constructor(options?: ExchangeOptions);
|
|
543
|
+
}
|
package/dist/esm/pmxt/client.js
CHANGED
|
@@ -39,6 +39,7 @@ function convertMarket(raw) {
|
|
|
39
39
|
return {
|
|
40
40
|
marketId: raw.marketId,
|
|
41
41
|
title: raw.title,
|
|
42
|
+
slug: raw.slug,
|
|
42
43
|
outcomes,
|
|
43
44
|
volume24h: raw.volume24h || 0,
|
|
44
45
|
liquidity: raw.liquidity || 0,
|
|
@@ -50,6 +51,9 @@ function convertMarket(raw) {
|
|
|
50
51
|
image: raw.image,
|
|
51
52
|
category: raw.category,
|
|
52
53
|
tags: raw.tags,
|
|
54
|
+
tickSize: raw.tickSize,
|
|
55
|
+
status: raw.status,
|
|
56
|
+
contractAddress: raw.contractAddress,
|
|
53
57
|
eventId: raw.eventId,
|
|
54
58
|
yes: convertOutcome(raw.yes),
|
|
55
59
|
no: convertOutcome(raw.no),
|
|
@@ -147,6 +151,8 @@ function convertEvent(raw) {
|
|
|
147
151
|
description: raw.description,
|
|
148
152
|
slug: raw.slug,
|
|
149
153
|
markets,
|
|
154
|
+
volume24h: raw.volume24h,
|
|
155
|
+
volume: raw.volume,
|
|
150
156
|
url: raw.url,
|
|
151
157
|
image: raw.image,
|
|
152
158
|
category: raw.category,
|
|
@@ -1613,3 +1619,73 @@ export class Baozi extends Exchange {
|
|
|
1613
1619
|
super("baozi", options);
|
|
1614
1620
|
}
|
|
1615
1621
|
}
|
|
1622
|
+
/**
|
|
1623
|
+
* Opinion exchange client.
|
|
1624
|
+
*
|
|
1625
|
+
* Polygon-based CLOB exchange. Public catalog endpoints work without
|
|
1626
|
+
* credentials; trading requires `apiKey` (proxy address) and `privateKey`.
|
|
1627
|
+
*
|
|
1628
|
+
* @example
|
|
1629
|
+
* ```typescript
|
|
1630
|
+
* const opinion = new Opinion();
|
|
1631
|
+
* const events = await opinion.fetchEvents();
|
|
1632
|
+
* ```
|
|
1633
|
+
*/
|
|
1634
|
+
export class Opinion extends Exchange {
|
|
1635
|
+
constructor(options = {}) {
|
|
1636
|
+
super("opinion", options);
|
|
1637
|
+
}
|
|
1638
|
+
}
|
|
1639
|
+
/**
|
|
1640
|
+
* Metaculus exchange client.
|
|
1641
|
+
*
|
|
1642
|
+
* Forecasting platform. Public read-only access works without credentials;
|
|
1643
|
+
* authenticated calls accept a bearer token via `apiKey`.
|
|
1644
|
+
*
|
|
1645
|
+
* @example
|
|
1646
|
+
* ```typescript
|
|
1647
|
+
* const metaculus = new Metaculus();
|
|
1648
|
+
* const events = await metaculus.fetchEvents();
|
|
1649
|
+
* ```
|
|
1650
|
+
*/
|
|
1651
|
+
export class Metaculus extends Exchange {
|
|
1652
|
+
constructor(options = {}) {
|
|
1653
|
+
super("metaculus", options);
|
|
1654
|
+
}
|
|
1655
|
+
}
|
|
1656
|
+
/**
|
|
1657
|
+
* Smarkets exchange client.
|
|
1658
|
+
*
|
|
1659
|
+
* UK-based betting exchange. Public catalog endpoints work without
|
|
1660
|
+
* credentials; trading requires Smarkets account email (`apiKey`) and
|
|
1661
|
+
* password (`privateKey`).
|
|
1662
|
+
*
|
|
1663
|
+
* @example
|
|
1664
|
+
* ```typescript
|
|
1665
|
+
* const smarkets = new Smarkets();
|
|
1666
|
+
* const events = await smarkets.fetchEvents();
|
|
1667
|
+
* ```
|
|
1668
|
+
*/
|
|
1669
|
+
export class Smarkets extends Exchange {
|
|
1670
|
+
constructor(options = {}) {
|
|
1671
|
+
super("smarkets", options);
|
|
1672
|
+
}
|
|
1673
|
+
}
|
|
1674
|
+
/**
|
|
1675
|
+
* Polymarket US exchange client.
|
|
1676
|
+
*
|
|
1677
|
+
* US-regulated Polymarket venue. Public catalog endpoints work without
|
|
1678
|
+
* credentials; trading requires `apiKey` (keyId) and `privateKey`
|
|
1679
|
+
* (secretKey) issued by Polymarket US.
|
|
1680
|
+
*
|
|
1681
|
+
* @example
|
|
1682
|
+
* ```typescript
|
|
1683
|
+
* const polyUs = new PolymarketUS();
|
|
1684
|
+
* const events = await polyUs.fetchEvents();
|
|
1685
|
+
* ```
|
|
1686
|
+
*/
|
|
1687
|
+
export class PolymarketUS extends Exchange {
|
|
1688
|
+
constructor(options = {}) {
|
|
1689
|
+
super("polymarket_us", options);
|
|
1690
|
+
}
|
|
1691
|
+
}
|