@dogabot/sdk 0.1.0 → 0.1.1

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.
@@ -9,11 +9,14 @@ export declare class Resources {
9
9
  getMeStatistics(options?: RequestOptions): Promise<JsonValue>;
10
10
  getMePositions(options?: RequestOptions): Promise<JsonValue>;
11
11
  getMePositionlegs(options?: RequestOptions): Promise<JsonValue>;
12
+ getMeAvailablecash(options?: RequestOptions): Promise<JsonValue>;
12
13
  getMeOrders(options?: RequestOptions): Promise<JsonValue>;
13
14
  getMeSignals(options?: RequestOptions): Promise<JsonValue>;
14
15
  getMeEmitters(options?: RequestOptions): Promise<JsonValue>;
15
16
  postMeEmittersSummary(body?: JsonValue, options?: RequestOptions): Promise<JsonValue>;
16
17
  postAutomationsSummary(body?: JsonValue, options?: RequestOptions): Promise<JsonValue>;
18
+ postAutomationsStatuscounts(body?: JsonValue, options?: RequestOptions): Promise<JsonValue>;
19
+ postAutomationsSummaryByids(body?: JsonValue, options?: RequestOptions): Promise<JsonValue>;
17
20
  getFollowers(options?: RequestOptions): Promise<JsonValue>;
18
21
  postFollowers(body?: JsonValue, options?: RequestOptions): Promise<JsonValue>;
19
22
  getFollowersById(pathParams: PathParams, options?: RequestOptions): Promise<JsonValue>;
@@ -54,6 +57,7 @@ export declare class Resources {
54
57
  getBacktestQuota(options?: RequestOptions): Promise<JsonValue>;
55
58
  getBacktests(options?: RequestOptions): Promise<JsonValue>;
56
59
  getBacktestsSummary(options?: RequestOptions): Promise<JsonValue>;
60
+ getBacktestCommunityexamples(options?: RequestOptions): Promise<JsonValue>;
57
61
  getBacktestByJob_id(pathParams: PathParams, options?: RequestOptions): Promise<JsonValue>;
58
62
  getBacktestSignalsByJob_id(pathParams: PathParams, options?: RequestOptions): Promise<JsonValue>;
59
63
  getBacktestBulkSeed(options?: RequestOptions): Promise<JsonValue>;
@@ -85,7 +89,9 @@ export declare class Resources {
85
89
  getExchangeTrades(options?: RequestOptions): Promise<JsonValue>;
86
90
  getExchangeIncome(options?: RequestOptions): Promise<JsonValue>;
87
91
  getExchangeOpenablenotional(options?: RequestOptions): Promise<JsonValue>;
92
+ getExchangeLeveragecapabilities(options?: RequestOptions): Promise<JsonValue>;
88
93
  postExchangeLeverage(body?: JsonValue, options?: RequestOptions): Promise<JsonValue>;
94
+ postExchangeMarginmode(body?: JsonValue, options?: RequestOptions): Promise<JsonValue>;
89
95
  postExchangeCancelorder(body?: JsonValue, options?: RequestOptions): Promise<JsonValue>;
90
96
  postExchangeCancelorders(body?: JsonValue, options?: RequestOptions): Promise<JsonValue>;
91
97
  getCredentials(options?: RequestOptions): Promise<JsonValue>;
@@ -117,6 +123,9 @@ export declare class Resources {
117
123
  postBacktestBulkBatchesRerunByBatch_id(pathParams: PathParams, options?: RequestOptions): Promise<JsonValue>;
118
124
  postBacktestBulkBatchesCancelByBatch_id(pathParams: PathParams, options?: RequestOptions): Promise<JsonValue>;
119
125
  postBacktestCancelByJob_id(pathParams: PathParams, options?: RequestOptions): Promise<JsonValue>;
126
+ postBacktestCommunityexampleByJob_id(pathParams: PathParams, body?: JsonValue, options?: RequestOptions): Promise<JsonValue>;
127
+ patchBacktestCommunityexampleByJob_id(pathParams: PathParams, body?: JsonValue, options?: RequestOptions): Promise<JsonValue>;
128
+ deleteBacktestCommunityexampleByJob_id(pathParams: PathParams, options?: RequestOptions): Promise<JsonValue>;
120
129
  postTerminalPlaceorder(body?: JsonValue, options?: RequestOptions): Promise<JsonValue>;
121
130
  postTerminalCancelorder(body?: JsonValue, options?: RequestOptions): Promise<JsonValue>;
122
131
  getAiChatQuota(options?: RequestOptions): Promise<JsonValue>;
@@ -126,4 +135,4 @@ export declare class Resources {
126
135
  postAiChatConversationsMessagesById(pathParams: PathParams, body?: JsonValue, options?: RequestOptions): Promise<JsonValue>;
127
136
  postAiChatConversationsToolsConfirmByIdCall_id(pathParams: PathParams, body?: JsonValue, options?: RequestOptions): Promise<JsonValue>;
128
137
  }
129
- export declare const OPERATION_IDS: readonly ["getMe", "getMeStatistics", "getMePositions", "getMePositionlegs", "getMeOrders", "getMeSignals", "getMeEmitters", "postMeEmittersSummary", "postAutomationsSummary", "getFollowers", "postFollowers", "getFollowersById", "patchFollowersById", "deleteFollowersById", "postFollowersSummary", "getFollowersSummaryById", "getFollowersPnlseriesById", "getFollowersPositionById", "getBots", "postBots", "getBotsById", "patchBotsById", "deleteBotsById", "postBotsSummary", "getBotsPnlseriesById", "getBotsPositionById", "getEmitters", "postEmitters", "getEmittersById", "patchEmittersById", "deleteEmittersById", "postEmittersSummary", "getEmittersSummaryById", "getEmittersCurated", "getEmittersPnlseriesById", "getEmittersPositionById", "getPortfolios", "postPortfolios", "getPortfoliosById", "patchPortfoliosById", "deletePortfoliosById", "postPortfoliosSummary", "getPortfoliosPnlseriesById", "getPortfoliosPositionsById", "getOrders", "getSignals", "getBacktestQuota", "getBacktests", "getBacktestsSummary", "getBacktestByJob_id", "getBacktestSignalsByJob_id", "getBacktestBulkSeed", "getBacktestBulkBatches", "getBacktestBulkBatchesByBatch_id", "getTicker", "getFundingrate", "getMarketOrderbook", "getMarketTrades", "getMarkets", "getMarketsAssetprofile", "getExchanges", "getMarkettypes", "getMarketplaceSearch", "getMarketplaceSellersByHandle", "getDatafeedHistory", "postMarketsSymbolcorrelation", "postMarketsSymbolvolatility", "postMarketsSymbolfeebreakeven", "getTerminalOrders", "getTerminalOrdersByclientorderidByClient_order_id", "getTerminalPositions", "getTerminalSymbolrules", "getTerminalOrdercapabilities", "getExchangeBalances", "getExchangePositions", "getExchangeMarginsummary", "getExchangeOrders", "getExchangeTrades", "getExchangeIncome", "getExchangeOpenablenotional", "postExchangeLeverage", "postExchangeCancelorder", "postExchangeCancelorders", "getCredentials", "postCredentials", "getTags", "postTags", "getMeStatisticsBytag", "postFollowersStartById", "postFollowersStopById", "postBotsStartById", "postBotsStopById", "postBotsBooksById", "postFollowersBooksById", "postEmittersStartById", "postEmittersStopById", "postPortfoliosStartById", "postPortfoliosStopById", "putFollowersTagsById", "putBotsTagsById", "putEmittersTagsById", "putPortfoliosTagsById", "patchTagsById", "deleteTagsById", "putCredentialsById", "deleteCredentialsById", "postCredentialsDefaultById", "postBacktest", "postBacktestBulk", "postBacktestBulkBatchesRerunByBatch_id", "postBacktestBulkBatchesCancelByBatch_id", "postBacktestCancelByJob_id", "postTerminalPlaceorder", "postTerminalCancelorder", "getAiChatQuota", "getAiChatConversations", "postAiChatConversations", "getAiChatConversationsById", "postAiChatConversationsMessagesById", "postAiChatConversationsToolsConfirmByIdCall_id"];
138
+ export declare const OPERATION_IDS: readonly ["getMe", "getMeStatistics", "getMePositions", "getMePositionlegs", "getMeAvailablecash", "getMeOrders", "getMeSignals", "getMeEmitters", "postMeEmittersSummary", "postAutomationsSummary", "postAutomationsStatuscounts", "postAutomationsSummaryByids", "getFollowers", "postFollowers", "getFollowersById", "patchFollowersById", "deleteFollowersById", "postFollowersSummary", "getFollowersSummaryById", "getFollowersPnlseriesById", "getFollowersPositionById", "getBots", "postBots", "getBotsById", "patchBotsById", "deleteBotsById", "postBotsSummary", "getBotsPnlseriesById", "getBotsPositionById", "getEmitters", "postEmitters", "getEmittersById", "patchEmittersById", "deleteEmittersById", "postEmittersSummary", "getEmittersSummaryById", "getEmittersCurated", "getEmittersPnlseriesById", "getEmittersPositionById", "getPortfolios", "postPortfolios", "getPortfoliosById", "patchPortfoliosById", "deletePortfoliosById", "postPortfoliosSummary", "getPortfoliosPnlseriesById", "getPortfoliosPositionsById", "getOrders", "getSignals", "getBacktestQuota", "getBacktests", "getBacktestsSummary", "getBacktestCommunityexamples", "getBacktestByJob_id", "getBacktestSignalsByJob_id", "getBacktestBulkSeed", "getBacktestBulkBatches", "getBacktestBulkBatchesByBatch_id", "getTicker", "getFundingrate", "getMarketOrderbook", "getMarketTrades", "getMarkets", "getMarketsAssetprofile", "getExchanges", "getMarkettypes", "getMarketplaceSearch", "getMarketplaceSellersByHandle", "getDatafeedHistory", "postMarketsSymbolcorrelation", "postMarketsSymbolvolatility", "postMarketsSymbolfeebreakeven", "getTerminalOrders", "getTerminalOrdersByclientorderidByClient_order_id", "getTerminalPositions", "getTerminalSymbolrules", "getTerminalOrdercapabilities", "getExchangeBalances", "getExchangePositions", "getExchangeMarginsummary", "getExchangeOrders", "getExchangeTrades", "getExchangeIncome", "getExchangeOpenablenotional", "getExchangeLeveragecapabilities", "postExchangeLeverage", "postExchangeMarginmode", "postExchangeCancelorder", "postExchangeCancelorders", "getCredentials", "postCredentials", "getTags", "postTags", "getMeStatisticsBytag", "postFollowersStartById", "postFollowersStopById", "postBotsStartById", "postBotsStopById", "postBotsBooksById", "postFollowersBooksById", "postEmittersStartById", "postEmittersStopById", "postPortfoliosStartById", "postPortfoliosStopById", "putFollowersTagsById", "putBotsTagsById", "putEmittersTagsById", "putPortfoliosTagsById", "patchTagsById", "deleteTagsById", "putCredentialsById", "deleteCredentialsById", "postCredentialsDefaultById", "postBacktest", "postBacktestBulk", "postBacktestBulkBatchesRerunByBatch_id", "postBacktestBulkBatchesCancelByBatch_id", "postBacktestCancelByJob_id", "postBacktestCommunityexampleByJob_id", "patchBacktestCommunityexampleByJob_id", "deleteBacktestCommunityexampleByJob_id", "postTerminalPlaceorder", "postTerminalCancelorder", "getAiChatQuota", "getAiChatConversations", "postAiChatConversations", "getAiChatConversationsById", "postAiChatConversationsMessagesById", "postAiChatConversationsToolsConfirmByIdCall_id"];
@@ -36,6 +36,14 @@ export class Resources {
36
36
  path,
37
37
  });
38
38
  }
39
+ async getMeAvailablecash(options) {
40
+ const path = "/api/v1/me/available-cash";
41
+ return this.client.request({
42
+ ...options,
43
+ method: 'GET',
44
+ path,
45
+ });
46
+ }
39
47
  async getMeOrders(options) {
40
48
  const path = "/api/v1/me/orders";
41
49
  return this.client.request({
@@ -78,6 +86,24 @@ export class Resources {
78
86
  body: body ?? options?.body,
79
87
  });
80
88
  }
89
+ async postAutomationsStatuscounts(body, options) {
90
+ const path = "/api/v1/automations/status-counts";
91
+ return this.client.request({
92
+ ...options,
93
+ method: 'POST',
94
+ path,
95
+ body: body ?? options?.body,
96
+ });
97
+ }
98
+ async postAutomationsSummaryByids(body, options) {
99
+ const path = "/api/v1/automations/summary/by-ids";
100
+ return this.client.request({
101
+ ...options,
102
+ method: 'POST',
103
+ path,
104
+ body: body ?? options?.body,
105
+ });
106
+ }
81
107
  async getFollowers(options) {
82
108
  const path = "/api/v1/followers";
83
109
  return this.client.request({
@@ -426,6 +452,14 @@ export class Resources {
426
452
  path,
427
453
  });
428
454
  }
455
+ async getBacktestCommunityexamples(options) {
456
+ const path = "/api/v1/backtest/community-examples";
457
+ return this.client.request({
458
+ ...options,
459
+ method: 'GET',
460
+ path,
461
+ });
462
+ }
429
463
  async getBacktestByJob_id(pathParams, options) {
430
464
  const path = "/api/v1/backtest/" + encodeURIComponent(String(pathParams.job_id)) + "";
431
465
  return this.client.request({
@@ -677,6 +711,14 @@ export class Resources {
677
711
  path,
678
712
  });
679
713
  }
714
+ async getExchangeLeveragecapabilities(options) {
715
+ const path = "/api/v1/exchange/leverage-capabilities";
716
+ return this.client.request({
717
+ ...options,
718
+ method: 'GET',
719
+ path,
720
+ });
721
+ }
680
722
  async postExchangeLeverage(body, options) {
681
723
  const path = "/api/v1/exchange/leverage";
682
724
  return this.client.request({
@@ -687,6 +729,16 @@ export class Resources {
687
729
  write: true,
688
730
  });
689
731
  }
732
+ async postExchangeMarginmode(body, options) {
733
+ const path = "/api/v1/exchange/margin-mode";
734
+ return this.client.request({
735
+ ...options,
736
+ method: 'POST',
737
+ path,
738
+ body: body ?? options?.body,
739
+ write: true,
740
+ });
741
+ }
690
742
  async postExchangeCancelorder(body, options) {
691
743
  const path = "/api/v1/exchange/cancel-order";
692
744
  return this.client.request({
@@ -979,6 +1031,35 @@ export class Resources {
979
1031
  write: true,
980
1032
  });
981
1033
  }
1034
+ async postBacktestCommunityexampleByJob_id(pathParams, body, options) {
1035
+ const path = "/api/v1/backtest/" + encodeURIComponent(String(pathParams.job_id)) + "/community-example";
1036
+ return this.client.request({
1037
+ ...options,
1038
+ method: 'POST',
1039
+ path,
1040
+ body: body ?? options?.body,
1041
+ write: true,
1042
+ });
1043
+ }
1044
+ async patchBacktestCommunityexampleByJob_id(pathParams, body, options) {
1045
+ const path = "/api/v1/backtest/" + encodeURIComponent(String(pathParams.job_id)) + "/community-example";
1046
+ return this.client.request({
1047
+ ...options,
1048
+ method: 'PATCH',
1049
+ path,
1050
+ body: body ?? options?.body,
1051
+ write: true,
1052
+ });
1053
+ }
1054
+ async deleteBacktestCommunityexampleByJob_id(pathParams, options) {
1055
+ const path = "/api/v1/backtest/" + encodeURIComponent(String(pathParams.job_id)) + "/community-example";
1056
+ return this.client.request({
1057
+ ...options,
1058
+ method: 'DELETE',
1059
+ path,
1060
+ write: true,
1061
+ });
1062
+ }
982
1063
  async postTerminalPlaceorder(body, options) {
983
1064
  const path = "/api/v1/terminal/place-order";
984
1065
  return this.client.request({
@@ -1059,11 +1140,14 @@ export const OPERATION_IDS = [
1059
1140
  "getMeStatistics",
1060
1141
  "getMePositions",
1061
1142
  "getMePositionlegs",
1143
+ "getMeAvailablecash",
1062
1144
  "getMeOrders",
1063
1145
  "getMeSignals",
1064
1146
  "getMeEmitters",
1065
1147
  "postMeEmittersSummary",
1066
1148
  "postAutomationsSummary",
1149
+ "postAutomationsStatuscounts",
1150
+ "postAutomationsSummaryByids",
1067
1151
  "getFollowers",
1068
1152
  "postFollowers",
1069
1153
  "getFollowersById",
@@ -1104,6 +1188,7 @@ export const OPERATION_IDS = [
1104
1188
  "getBacktestQuota",
1105
1189
  "getBacktests",
1106
1190
  "getBacktestsSummary",
1191
+ "getBacktestCommunityexamples",
1107
1192
  "getBacktestByJob_id",
1108
1193
  "getBacktestSignalsByJob_id",
1109
1194
  "getBacktestBulkSeed",
@@ -1135,7 +1220,9 @@ export const OPERATION_IDS = [
1135
1220
  "getExchangeTrades",
1136
1221
  "getExchangeIncome",
1137
1222
  "getExchangeOpenablenotional",
1223
+ "getExchangeLeveragecapabilities",
1138
1224
  "postExchangeLeverage",
1225
+ "postExchangeMarginmode",
1139
1226
  "postExchangeCancelorder",
1140
1227
  "postExchangeCancelorders",
1141
1228
  "getCredentials",
@@ -1167,6 +1254,9 @@ export const OPERATION_IDS = [
1167
1254
  "postBacktestBulkBatchesRerunByBatch_id",
1168
1255
  "postBacktestBulkBatchesCancelByBatch_id",
1169
1256
  "postBacktestCancelByJob_id",
1257
+ "postBacktestCommunityexampleByJob_id",
1258
+ "patchBacktestCommunityexampleByJob_id",
1259
+ "deleteBacktestCommunityexampleByJob_id",
1170
1260
  "postTerminalPlaceorder",
1171
1261
  "postTerminalCancelorder",
1172
1262
  "getAiChatQuota",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dogabot/sdk",
3
- "version": "0.1.0",
3
+ "version": "0.1.1",
4
4
  "description": "Official dogabot REST API SDK for JavaScript/TypeScript (backend-first)",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",