@dogabot/sdk 0.0.0-stage → 0.1.0

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/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) dogabot
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md CHANGED
@@ -1,3 +1,38 @@
1
- # Temporary Holding Version
1
+ # @dogabot/sdk
2
2
 
3
- This version is a temporary placeholder for this package. An operational version to replace this has been submitted for review and is awaiting a staged release.
3
+ Official REST client for the [dogabot public API](https://docs.dogabot.com/).
4
+
5
+ ```bash
6
+ npm i @dogabot/sdk
7
+ # If the npm package is not visible yet: npm i github:dogabot/dogabot-sdk-js
8
+ ```
9
+
10
+ ```ts
11
+ import { Client } from '@dogabot/sdk'
12
+
13
+ const client = new Client({ apiKey: process.env.DOGABOT_API_KEY })
14
+ const me = await client.getMe()
15
+ ```
16
+
17
+ Writes require `idempotencyKey`:
18
+
19
+ ```ts
20
+ await client.resources.postTerminalPlaceorder(
21
+ {
22
+ exchange: 'hyperliquid',
23
+ symbol: 'BTC',
24
+ side: 'buy',
25
+ quantity: 0.001,
26
+ order_type: 'market',
27
+ trading_mode: 'paper',
28
+ broadcast_mode: 'personal',
29
+ },
30
+ { idempotencyKey: 'place-paper-btc-1' },
31
+ )
32
+ ```
33
+
34
+ **Backend-first** (Node 20+). Do not put API keys in browser bundles — call dogabot from your server/BFF.
35
+
36
+ Runnable samples: [`examples/`](./examples/).
37
+
38
+ Public repo: https://github.com/dogabot/dogabot-sdk-js · Docs: https://docs.dogabot.com/sdk/
@@ -0,0 +1,18 @@
1
+ import { Resources } from './resources.generated.js';
2
+ import type { ClientOptions, HttpMethod, JsonValue, RequestOptions } from './types.js';
3
+ export declare class Client {
4
+ readonly apiKey: string;
5
+ readonly baseUrl: string;
6
+ readonly maxRetries: number;
7
+ readonly userAgent: string;
8
+ readonly resources: Resources;
9
+ private readonly fetchImpl;
10
+ constructor(options?: ClientOptions);
11
+ /** Convenience: GET /api/v1/me */
12
+ getMe(options?: RequestOptions): Promise<JsonValue>;
13
+ request(input: {
14
+ method: HttpMethod;
15
+ path: string;
16
+ } & RequestOptions): Promise<JsonValue>;
17
+ }
18
+ export declare function createClient(options?: ClientOptions): Client;
package/dist/client.js ADDED
@@ -0,0 +1,100 @@
1
+ import { createRequire } from 'node:module';
2
+ import { APIError } from './error.js';
3
+ import { Resources } from './resources.generated.js';
4
+ const require = createRequire(import.meta.url);
5
+ const { version: pkgVersion } = require('../package.json');
6
+ const DEFAULT_BASE = 'https://api.dogabot.com';
7
+ export class Client {
8
+ apiKey;
9
+ baseUrl;
10
+ maxRetries;
11
+ userAgent;
12
+ resources;
13
+ fetchImpl;
14
+ constructor(options = {}) {
15
+ const apiKey = options.apiKey ?? process.env.DOGABOT_API_KEY;
16
+ if (!apiKey) {
17
+ throw new Error('apiKey is required (pass options.apiKey or set DOGABOT_API_KEY)');
18
+ }
19
+ this.apiKey = apiKey;
20
+ this.baseUrl = (options.baseUrl ?? DEFAULT_BASE).replace(/\/$/, '');
21
+ this.maxRetries = options.maxRetries ?? 2;
22
+ this.userAgent = options.userAgent ?? `dogabot-sdk-js/${pkgVersion}`;
23
+ this.fetchImpl = options.fetch ?? fetch;
24
+ this.resources = new Resources(this);
25
+ }
26
+ /** Convenience: GET /api/v1/me */
27
+ getMe(options) {
28
+ return this.resources.getMe(options);
29
+ }
30
+ async request(input) {
31
+ const { method, path, query, body, headers, idempotencyKey, write, signal } = input;
32
+ if (write && !idempotencyKey) {
33
+ throw new Error(`Idempotency-Key is required for write operation ${method} ${path}`);
34
+ }
35
+ const url = new URL(path.startsWith('http') ? path : `${this.baseUrl}${path}`);
36
+ if (query) {
37
+ for (const [k, v] of Object.entries(query)) {
38
+ if (v === undefined || v === null)
39
+ continue;
40
+ url.searchParams.set(k, String(v));
41
+ }
42
+ }
43
+ let attempt = 0;
44
+ for (;;) {
45
+ const reqHeaders = {
46
+ Authorization: `Bearer ${this.apiKey}`,
47
+ Accept: 'application/json',
48
+ 'User-Agent': this.userAgent,
49
+ ...headers,
50
+ };
51
+ if (idempotencyKey) {
52
+ reqHeaders['Idempotency-Key'] = idempotencyKey;
53
+ }
54
+ let payload;
55
+ if (body !== undefined) {
56
+ reqHeaders['Content-Type'] = 'application/json';
57
+ payload = JSON.stringify(body);
58
+ }
59
+ const res = await this.fetchImpl(url.toString(), {
60
+ method,
61
+ headers: reqHeaders,
62
+ body: payload,
63
+ signal,
64
+ });
65
+ const text = await res.text();
66
+ let parsed = null;
67
+ if (text) {
68
+ try {
69
+ parsed = JSON.parse(text);
70
+ }
71
+ catch {
72
+ parsed = text;
73
+ }
74
+ }
75
+ if (res.ok) {
76
+ return parsed;
77
+ }
78
+ const retryable = res.status === 429 || res.status >= 500;
79
+ if (retryable && attempt < this.maxRetries) {
80
+ attempt += 1;
81
+ const retryAfter = res.headers.get('Retry-After');
82
+ const waitMs = retryAfter ? Number(retryAfter) * 1000 : Math.min(1000 * 2 ** attempt, 8000);
83
+ await sleep(Number.isFinite(waitMs) ? waitMs : 1000);
84
+ continue;
85
+ }
86
+ const errBody = parsed && typeof parsed === 'object' && !Array.isArray(parsed)
87
+ ? parsed
88
+ : null;
89
+ const msg = (errBody && typeof errBody.error === 'string' && errBody.error) ||
90
+ `HTTP ${res.status} ${method} ${path}`;
91
+ throw new APIError(msg, res.status, errBody, res.headers);
92
+ }
93
+ }
94
+ }
95
+ function sleep(ms) {
96
+ return new Promise((r) => setTimeout(r, ms));
97
+ }
98
+ export function createClient(options) {
99
+ return new Client(options);
100
+ }
@@ -0,0 +1,7 @@
1
+ import type { APIErrorBody } from './types.js';
2
+ export declare class APIError extends Error {
3
+ readonly status: number;
4
+ readonly body: APIErrorBody | null;
5
+ readonly headers: Headers;
6
+ constructor(message: string, status: number, body: APIErrorBody | null, headers: Headers);
7
+ }
package/dist/error.js ADDED
@@ -0,0 +1,12 @@
1
+ export class APIError extends Error {
2
+ status;
3
+ body;
4
+ headers;
5
+ constructor(message, status, body, headers) {
6
+ super(message);
7
+ this.name = 'APIError';
8
+ this.status = status;
9
+ this.body = body;
10
+ this.headers = headers;
11
+ }
12
+ }
@@ -0,0 +1,4 @@
1
+ export { Client, createClient } from './client.js';
2
+ export { APIError } from './error.js';
3
+ export { Resources, OPERATION_IDS } from './resources.generated.js';
4
+ export type { ClientOptions, RequestOptions, JsonValue, HttpMethod, APIErrorBody } from './types.js';
package/dist/index.js ADDED
@@ -0,0 +1,3 @@
1
+ export { Client, createClient } from './client.js';
2
+ export { APIError } from './error.js';
3
+ export { Resources, OPERATION_IDS } from './resources.generated.js';
@@ -0,0 +1,129 @@
1
+ import type { Client } from './client.js';
2
+ import type { JsonValue, RequestOptions } from './types.js';
3
+ export type PathParams = Record<string, string | number>;
4
+ /** All OpenAPI operationIds as client methods. */
5
+ export declare class Resources {
6
+ private readonly client;
7
+ constructor(client: Client);
8
+ getMe(options?: RequestOptions): Promise<JsonValue>;
9
+ getMeStatistics(options?: RequestOptions): Promise<JsonValue>;
10
+ getMePositions(options?: RequestOptions): Promise<JsonValue>;
11
+ getMePositionlegs(options?: RequestOptions): Promise<JsonValue>;
12
+ getMeOrders(options?: RequestOptions): Promise<JsonValue>;
13
+ getMeSignals(options?: RequestOptions): Promise<JsonValue>;
14
+ getMeEmitters(options?: RequestOptions): Promise<JsonValue>;
15
+ postMeEmittersSummary(body?: JsonValue, options?: RequestOptions): Promise<JsonValue>;
16
+ postAutomationsSummary(body?: JsonValue, options?: RequestOptions): Promise<JsonValue>;
17
+ getFollowers(options?: RequestOptions): Promise<JsonValue>;
18
+ postFollowers(body?: JsonValue, options?: RequestOptions): Promise<JsonValue>;
19
+ getFollowersById(pathParams: PathParams, options?: RequestOptions): Promise<JsonValue>;
20
+ patchFollowersById(pathParams: PathParams, body?: JsonValue, options?: RequestOptions): Promise<JsonValue>;
21
+ deleteFollowersById(pathParams: PathParams, body?: JsonValue, options?: RequestOptions): Promise<JsonValue>;
22
+ postFollowersSummary(body?: JsonValue, options?: RequestOptions): Promise<JsonValue>;
23
+ getFollowersSummaryById(pathParams: PathParams, options?: RequestOptions): Promise<JsonValue>;
24
+ getFollowersPnlseriesById(pathParams: PathParams, options?: RequestOptions): Promise<JsonValue>;
25
+ getFollowersPositionById(pathParams: PathParams, options?: RequestOptions): Promise<JsonValue>;
26
+ getBots(options?: RequestOptions): Promise<JsonValue>;
27
+ postBots(body?: JsonValue, options?: RequestOptions): Promise<JsonValue>;
28
+ getBotsById(pathParams: PathParams, options?: RequestOptions): Promise<JsonValue>;
29
+ patchBotsById(pathParams: PathParams, body?: JsonValue, options?: RequestOptions): Promise<JsonValue>;
30
+ deleteBotsById(pathParams: PathParams, body?: JsonValue, options?: RequestOptions): Promise<JsonValue>;
31
+ postBotsSummary(body?: JsonValue, options?: RequestOptions): Promise<JsonValue>;
32
+ getBotsPnlseriesById(pathParams: PathParams, options?: RequestOptions): Promise<JsonValue>;
33
+ getBotsPositionById(pathParams: PathParams, options?: RequestOptions): Promise<JsonValue>;
34
+ getEmitters(options?: RequestOptions): Promise<JsonValue>;
35
+ postEmitters(body?: JsonValue, options?: RequestOptions): Promise<JsonValue>;
36
+ getEmittersById(pathParams: PathParams, options?: RequestOptions): Promise<JsonValue>;
37
+ patchEmittersById(pathParams: PathParams, body?: JsonValue, options?: RequestOptions): Promise<JsonValue>;
38
+ deleteEmittersById(pathParams: PathParams, body?: JsonValue, options?: RequestOptions): Promise<JsonValue>;
39
+ postEmittersSummary(body?: JsonValue, options?: RequestOptions): Promise<JsonValue>;
40
+ getEmittersSummaryById(pathParams: PathParams, options?: RequestOptions): Promise<JsonValue>;
41
+ getEmittersCurated(options?: RequestOptions): Promise<JsonValue>;
42
+ getEmittersPnlseriesById(pathParams: PathParams, options?: RequestOptions): Promise<JsonValue>;
43
+ getEmittersPositionById(pathParams: PathParams, options?: RequestOptions): Promise<JsonValue>;
44
+ getPortfolios(options?: RequestOptions): Promise<JsonValue>;
45
+ postPortfolios(body?: JsonValue, options?: RequestOptions): Promise<JsonValue>;
46
+ getPortfoliosById(pathParams: PathParams, options?: RequestOptions): Promise<JsonValue>;
47
+ patchPortfoliosById(pathParams: PathParams, body?: JsonValue, options?: RequestOptions): Promise<JsonValue>;
48
+ deletePortfoliosById(pathParams: PathParams, body?: JsonValue, options?: RequestOptions): Promise<JsonValue>;
49
+ postPortfoliosSummary(body?: JsonValue, options?: RequestOptions): Promise<JsonValue>;
50
+ getPortfoliosPnlseriesById(pathParams: PathParams, options?: RequestOptions): Promise<JsonValue>;
51
+ getPortfoliosPositionsById(pathParams: PathParams, options?: RequestOptions): Promise<JsonValue>;
52
+ getOrders(options?: RequestOptions): Promise<JsonValue>;
53
+ getSignals(options?: RequestOptions): Promise<JsonValue>;
54
+ getBacktestQuota(options?: RequestOptions): Promise<JsonValue>;
55
+ getBacktests(options?: RequestOptions): Promise<JsonValue>;
56
+ getBacktestsSummary(options?: RequestOptions): Promise<JsonValue>;
57
+ getBacktestByJob_id(pathParams: PathParams, options?: RequestOptions): Promise<JsonValue>;
58
+ getBacktestSignalsByJob_id(pathParams: PathParams, options?: RequestOptions): Promise<JsonValue>;
59
+ getBacktestBulkSeed(options?: RequestOptions): Promise<JsonValue>;
60
+ getBacktestBulkBatches(options?: RequestOptions): Promise<JsonValue>;
61
+ getBacktestBulkBatchesByBatch_id(pathParams: PathParams, options?: RequestOptions): Promise<JsonValue>;
62
+ getTicker(options?: RequestOptions): Promise<JsonValue>;
63
+ getFundingrate(options?: RequestOptions): Promise<JsonValue>;
64
+ getMarketOrderbook(options?: RequestOptions): Promise<JsonValue>;
65
+ getMarketTrades(options?: RequestOptions): Promise<JsonValue>;
66
+ getMarkets(options?: RequestOptions): Promise<JsonValue>;
67
+ getMarketsAssetprofile(options?: RequestOptions): Promise<JsonValue>;
68
+ getExchanges(options?: RequestOptions): Promise<JsonValue>;
69
+ getMarkettypes(options?: RequestOptions): Promise<JsonValue>;
70
+ getMarketplaceSearch(options?: RequestOptions): Promise<JsonValue>;
71
+ getMarketplaceSellersByHandle(pathParams: PathParams, options?: RequestOptions): Promise<JsonValue>;
72
+ getDatafeedHistory(options?: RequestOptions): Promise<JsonValue>;
73
+ postMarketsSymbolcorrelation(body?: JsonValue, options?: RequestOptions): Promise<JsonValue>;
74
+ postMarketsSymbolvolatility(body?: JsonValue, options?: RequestOptions): Promise<JsonValue>;
75
+ postMarketsSymbolfeebreakeven(body?: JsonValue, options?: RequestOptions): Promise<JsonValue>;
76
+ getTerminalOrders(options?: RequestOptions): Promise<JsonValue>;
77
+ getTerminalOrdersByclientorderidByClient_order_id(pathParams: PathParams, options?: RequestOptions): Promise<JsonValue>;
78
+ getTerminalPositions(options?: RequestOptions): Promise<JsonValue>;
79
+ getTerminalSymbolrules(options?: RequestOptions): Promise<JsonValue>;
80
+ getTerminalOrdercapabilities(options?: RequestOptions): Promise<JsonValue>;
81
+ getExchangeBalances(options?: RequestOptions): Promise<JsonValue>;
82
+ getExchangePositions(options?: RequestOptions): Promise<JsonValue>;
83
+ getExchangeMarginsummary(options?: RequestOptions): Promise<JsonValue>;
84
+ getExchangeOrders(options?: RequestOptions): Promise<JsonValue>;
85
+ getExchangeTrades(options?: RequestOptions): Promise<JsonValue>;
86
+ getExchangeIncome(options?: RequestOptions): Promise<JsonValue>;
87
+ getExchangeOpenablenotional(options?: RequestOptions): Promise<JsonValue>;
88
+ postExchangeLeverage(body?: JsonValue, options?: RequestOptions): Promise<JsonValue>;
89
+ postExchangeCancelorder(body?: JsonValue, options?: RequestOptions): Promise<JsonValue>;
90
+ postExchangeCancelorders(body?: JsonValue, options?: RequestOptions): Promise<JsonValue>;
91
+ getCredentials(options?: RequestOptions): Promise<JsonValue>;
92
+ postCredentials(body?: JsonValue, options?: RequestOptions): Promise<JsonValue>;
93
+ getTags(options?: RequestOptions): Promise<JsonValue>;
94
+ postTags(body?: JsonValue, options?: RequestOptions): Promise<JsonValue>;
95
+ getMeStatisticsBytag(options?: RequestOptions): Promise<JsonValue>;
96
+ postFollowersStartById(pathParams: PathParams, options?: RequestOptions): Promise<JsonValue>;
97
+ postFollowersStopById(pathParams: PathParams, options?: RequestOptions): Promise<JsonValue>;
98
+ postBotsStartById(pathParams: PathParams, options?: RequestOptions): Promise<JsonValue>;
99
+ postBotsStopById(pathParams: PathParams, options?: RequestOptions): Promise<JsonValue>;
100
+ postBotsBooksById(pathParams: PathParams, body?: JsonValue, options?: RequestOptions): Promise<JsonValue>;
101
+ postFollowersBooksById(pathParams: PathParams, body?: JsonValue, options?: RequestOptions): Promise<JsonValue>;
102
+ postEmittersStartById(pathParams: PathParams, options?: RequestOptions): Promise<JsonValue>;
103
+ postEmittersStopById(pathParams: PathParams, options?: RequestOptions): Promise<JsonValue>;
104
+ postPortfoliosStartById(pathParams: PathParams, options?: RequestOptions): Promise<JsonValue>;
105
+ postPortfoliosStopById(pathParams: PathParams, options?: RequestOptions): Promise<JsonValue>;
106
+ putFollowersTagsById(pathParams: PathParams, body?: JsonValue, options?: RequestOptions): Promise<JsonValue>;
107
+ putBotsTagsById(pathParams: PathParams, body?: JsonValue, options?: RequestOptions): Promise<JsonValue>;
108
+ putEmittersTagsById(pathParams: PathParams, body?: JsonValue, options?: RequestOptions): Promise<JsonValue>;
109
+ putPortfoliosTagsById(pathParams: PathParams, body?: JsonValue, options?: RequestOptions): Promise<JsonValue>;
110
+ patchTagsById(pathParams: PathParams, body?: JsonValue, options?: RequestOptions): Promise<JsonValue>;
111
+ deleteTagsById(pathParams: PathParams, body?: JsonValue, options?: RequestOptions): Promise<JsonValue>;
112
+ putCredentialsById(pathParams: PathParams, body?: JsonValue, options?: RequestOptions): Promise<JsonValue>;
113
+ deleteCredentialsById(pathParams: PathParams, body?: JsonValue, options?: RequestOptions): Promise<JsonValue>;
114
+ postCredentialsDefaultById(pathParams: PathParams, options?: RequestOptions): Promise<JsonValue>;
115
+ postBacktest(body?: JsonValue, options?: RequestOptions): Promise<JsonValue>;
116
+ postBacktestBulk(body?: JsonValue, options?: RequestOptions): Promise<JsonValue>;
117
+ postBacktestBulkBatchesRerunByBatch_id(pathParams: PathParams, options?: RequestOptions): Promise<JsonValue>;
118
+ postBacktestBulkBatchesCancelByBatch_id(pathParams: PathParams, options?: RequestOptions): Promise<JsonValue>;
119
+ postBacktestCancelByJob_id(pathParams: PathParams, options?: RequestOptions): Promise<JsonValue>;
120
+ postTerminalPlaceorder(body?: JsonValue, options?: RequestOptions): Promise<JsonValue>;
121
+ postTerminalCancelorder(body?: JsonValue, options?: RequestOptions): Promise<JsonValue>;
122
+ getAiChatQuota(options?: RequestOptions): Promise<JsonValue>;
123
+ getAiChatConversations(options?: RequestOptions): Promise<JsonValue>;
124
+ postAiChatConversations(body?: JsonValue, options?: RequestOptions): Promise<JsonValue>;
125
+ getAiChatConversationsById(pathParams: PathParams, options?: RequestOptions): Promise<JsonValue>;
126
+ postAiChatConversationsMessagesById(pathParams: PathParams, body?: JsonValue, options?: RequestOptions): Promise<JsonValue>;
127
+ postAiChatConversationsToolsConfirmByIdCall_id(pathParams: PathParams, body?: JsonValue, options?: RequestOptions): Promise<JsonValue>;
128
+ }
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"];