@cryptorobot.ai/client 1.26.0-dev.1003 → 1.26.0-dev.1005
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/lib/src/client.d.ts +0 -8
- package/lib/src/client.js +0 -10
- package/lib/src/services/advisor/advisor.hooks.d.ts +0 -6
- package/lib/src/services/advisor/advisor.shared.js +0 -1
- package/lib/src/services/advisor/messages/messages.shared.js +0 -1
- package/lib/src/services/affiliates/affiliates.class.d.ts +0 -3
- package/lib/src/services/affiliates/affiliates.shared.js +0 -1
- package/lib/src/services/affiliates/clicks/clicks.shared.js +0 -1
- package/lib/src/services/affiliates/comissions/comissions.shared.js +0 -1
- package/lib/src/services/affiliates/contracts/contracts.shared.js +0 -1
- package/lib/src/services/affiliates/coupons/coupons.shared.js +0 -1
- package/lib/src/services/affiliates/links/links.shared.js +0 -1
- package/lib/src/services/affiliates/payouts/payouts.shared.js +0 -1
- package/lib/src/services/agents/agents.shared.js +0 -1
- package/lib/src/services/agents/delete-agent-triggers.hooks.d.ts +0 -3
- package/lib/src/services/agents/prepare/prepare.shared.js +0 -1
- package/lib/src/services/agents/sessions/conversations/conversations.hooks.d.ts +0 -8
- package/lib/src/services/agents/sessions/conversations/conversations.shared.js +0 -1
- package/lib/src/services/agents/sessions/sessions.hooks.d.ts +0 -8
- package/lib/src/services/agents/sessions/sessions.shared.js +0 -1
- package/lib/src/services/agents/update-trigger-rules-with-agent-info.hooks.d.ts +0 -3
- package/lib/src/services/auth-management/auth-management.shared.js +0 -2
- package/lib/src/services/autotune/apply-params.d.ts +0 -39
- package/lib/src/services/autotune/optuna-bridge.d.ts +0 -3
- package/lib/src/services/autotune/score.d.ts +0 -25
- package/lib/src/services/autotune/storage.d.ts +0 -2
- package/lib/src/services/autotune/studies/studies.shared.js +0 -1
- package/lib/src/services/autotune/trials/trials.shared.js +0 -1
- package/lib/src/services/autotune/usage/usage.shared.js +0 -1
- package/lib/src/services/blog/actions/actions.shared.js +0 -1
- package/lib/src/services/blog/calendar/calendar.shared.js +0 -1
- package/lib/src/services/blog/integrations/integrations.shared.js +0 -1
- package/lib/src/services/blog/posts/posts.shared.js +0 -1
- package/lib/src/services/blog/queries/queries.shared.js +0 -1
- package/lib/src/services/blog/sitemaps/pages/pages.shared.js +0 -1
- package/lib/src/services/blog/sitemaps/sitemaps.shared.js +0 -1
- package/lib/src/services/blog/suggestions/suggestions.shared.js +0 -1
- package/lib/src/services/changelog/changelog.class.d.ts +0 -3
- package/lib/src/services/changelog/changelog.helper.d.ts +0 -27
- package/lib/src/services/changelog/changelog.shared.js +0 -1
- package/lib/src/services/changelog/hooks/parse-from-file.d.ts +0 -4
- package/lib/src/services/config/config.shared.js +0 -1
- package/lib/src/services/copilot/concerns/concerns.shared.js +0 -1
- package/lib/src/services/copilot/decisions/decisions.shared.js +0 -1
- package/lib/src/services/copilot/help/help.shared.js +0 -1
- package/lib/src/services/copilot/recommendations/recommendations.shared.js +0 -1
- package/lib/src/services/currencies/currencies.shared.js +0 -1
- package/lib/src/services/custom/custom.shared.js +0 -1
- package/lib/src/services/emails/emails.shared.js +0 -1
- package/lib/src/services/events/events.shared.js +0 -1
- package/lib/src/services/events/triggers/triggers.shared.js +0 -1
- package/lib/src/services/events/types/types.shared.js +0 -1
- package/lib/src/services/exchanges/arb-signals/arb-signals.class.d.ts +0 -10
- package/lib/src/services/exchanges/arb-signals/arb-signals.shared.js +0 -1
- package/lib/src/services/exchanges/arbitrage/opportunities/opportunities.class.d.ts +0 -10
- package/lib/src/services/exchanges/arbitrage/opportunities/opportunities.shared.js +0 -1
- package/lib/src/services/exchanges/balance/balance.shared.js +0 -1
- package/lib/src/services/exchanges/deposits/deposits.shared.js +0 -1
- package/lib/src/services/exchanges/deposits/sync/sync.shared.js +0 -1
- package/lib/src/services/exchanges/download/download.shared.js +0 -1
- package/lib/src/services/exchanges/download/webhooks/webhooks.shared.js +0 -1
- package/lib/src/services/exchanges/exchanges.shared.js +0 -1
- package/lib/src/services/exchanges/ledger/ledger.shared.js +0 -1
- package/lib/src/services/exchanges/ledger/sync/sync.shared.js +0 -1
- package/lib/src/services/exchanges/markets-stats/markets-stats.class.d.ts +0 -5
- package/lib/src/services/exchanges/markets-stats/markets-stats.shared.js +0 -1
- package/lib/src/services/exchanges/ohlcv/history/history.shared.js +0 -1
- package/lib/src/services/exchanges/ohlcv/ohlcv.shared.js +0 -1
- package/lib/src/services/exchanges/orderbook/orderbook.class.d.ts +0 -11
- package/lib/src/services/exchanges/orderbook/orderbook.shared.js +0 -1
- package/lib/src/services/exchanges/ticker/ticker.shared.js +0 -1
- package/lib/src/services/exchanges/transactions/sync/sync.shared.js +0 -1
- package/lib/src/services/exchanges/transactions/transactions.shared.js +0 -1
- package/lib/src/services/extensions/extensions.shared.js +0 -1
- package/lib/src/services/homepage/homepage.shared.js +0 -1
- package/lib/src/services/insights/crypto-stress-index/crypto-stress-index.class.d.ts +0 -12
- package/lib/src/services/insights/crypto-stress-index/crypto-stress-index.shared.js +0 -1
- package/lib/src/services/insights/etf-flow/etf-flow.shared.js +0 -1
- package/lib/src/services/insights/fear-and-greed/fear-and-greed.shared.js +0 -1
- package/lib/src/services/insights/global/global.shared.js +0 -1
- package/lib/src/services/insights/insights.hooks.d.ts +0 -11
- package/lib/src/services/insights/insights.shared.js +0 -1
- package/lib/src/services/insights/news/news.class.d.ts +0 -3
- package/lib/src/services/insights/news/news.shared.js +0 -1
- package/lib/src/services/keys/keys.shared.js +0 -1
- package/lib/src/services/knowledges/knowledges.class.d.ts +0 -15
- package/lib/src/services/knowledges/knowledges.shared.js +0 -1
- package/lib/src/services/mailer/mailer.shared.js +0 -1
- package/lib/src/services/marketplaces/marketplaces.shared.js +0 -1
- package/lib/src/services/markets/markets.shared.js +0 -1
- package/lib/src/services/messages/messages.shared.js +0 -1
- package/lib/src/services/models/pods/events/events.shared.js +0 -1
- package/lib/src/services/models/pods/pods.shared.js +0 -1
- package/lib/src/services/models/presets/presets.shared.js +0 -1
- package/lib/src/services/models/signals/history/history.shared.js +0 -1
- package/lib/src/services/models/signals/signals-proxy-router.d.ts +0 -19
- package/lib/src/services/models/signals/signals.shared.js +0 -1
- package/lib/src/services/models/signals/subscriptions/subscriptions.shared.js +0 -3
- package/lib/src/services/objectives/objectives.hooks.d.ts +0 -9
- package/lib/src/services/objectives/objectives.shared.js +0 -1
- package/lib/src/services/plans/plans.shared.js +0 -1
- package/lib/src/services/referrals/referrals.shared.js +0 -1
- package/lib/src/services/restricted/restricted.d.ts +0 -11
- package/lib/src/services/restricted/restricted.shared.js +0 -1
- package/lib/src/services/security/events/security-events.shared.js +0 -1
- package/lib/src/services/series/balance/balance.shared.js +0 -1
- package/lib/src/services/series/performance/performance.shared.js +0 -1
- package/lib/src/services/series/performance/performance.usage.examples.d.ts +0 -6
- package/lib/src/services/snapshot/snapshot.shared.js +0 -2
- package/lib/src/services/store/items/items.shared.js +0 -1
- package/lib/src/services/strategies/ai/ai.shared.js +0 -1
- package/lib/src/services/strategies/ai/stream/stream.shared.js +0 -1
- package/lib/src/services/strategies/backtest/backtest.shared.js +0 -1
- package/lib/src/services/strategies/backtest/preflight/preflight.class.d.ts +0 -23
- package/lib/src/services/strategies/backtest/preflight/preflight.shared.js +0 -1
- package/lib/src/services/strategies/backtest/results/results.shared.js +0 -1
- package/lib/src/services/strategies/blob/blob.shared.js +0 -1
- package/lib/src/services/strategies/follow/follow.shared.js +0 -1
- package/lib/src/services/strategies/generate/generate.schema.d.ts +0 -4
- package/lib/src/services/strategies/generate/generate.shared.js +0 -1
- package/lib/src/services/strategies/history/history.shared.js +0 -1
- package/lib/src/services/strategies/hyperopt/hyperopt-generate-exchange-config.hooks.d.ts +0 -6
- package/lib/src/services/strategies/hyperopt/hyperopt-populate-exchange.hooks.d.ts +0 -5
- package/lib/src/services/strategies/hyperopt/hyperopt-promote-template.hooks.d.ts +0 -7
- package/lib/src/services/strategies/hyperopt/hyperopt-validate-exchange-whitelist.hooks.d.ts +0 -8
- package/lib/src/services/strategies/hyperopt/hyperopt-validate-historical-data.hooks.d.ts +0 -7
- package/lib/src/services/strategies/hyperopt/hyperopt-validate-stake-balance.hooks.d.ts +0 -5
- package/lib/src/services/strategies/hyperopt/hyperopt-validate-stake-currency.hooks.d.ts +0 -7
- package/lib/src/services/strategies/hyperopt/hyperopt-validate.hooks.d.ts +0 -5
- package/lib/src/services/strategies/hyperopt/hyperopt-verify-subscription-limits.hooks.d.ts +0 -4
- package/lib/src/services/strategies/hyperopt/hyperopt.shared.js +0 -1
- package/lib/src/services/strategies/indicators/indicators.shared.js +0 -1
- package/lib/src/services/strategies/indicators/talib/talib.schema.d.ts +0 -4
- package/lib/src/services/strategies/indicators/talib/talib.shared.js +0 -1
- package/lib/src/services/strategies/research/research.schema.d.ts +0 -15
- package/lib/src/services/strategies/research/research.shared.js +0 -1
- package/lib/src/services/strategies/strategies.schema.d.ts +8 -8
- package/lib/src/services/strategies/strategies.shared.js +0 -1
- package/lib/src/services/strategies/templates/templates.shared.js +0 -1
- package/lib/src/services/stripe/charges/charges.shared.js +0 -1
- package/lib/src/services/stripe/customers/cards/cards.shared.js +0 -1
- package/lib/src/services/stripe/customers/customers.shared.js +0 -1
- package/lib/src/services/stripe/customers/paymentintent/paymentintent.shared.js +0 -1
- package/lib/src/services/stripe/customers/paymentmethods/paymentmethods.shared.js +0 -1
- package/lib/src/services/stripe/customers/subscriptions/subscriptions.shared.js +0 -1
- package/lib/src/services/stripe/products/products.shared.js +0 -1
- package/lib/src/services/stripe/webhooks/webhooks.shared.js +0 -1
- package/lib/src/services/support/support.shared.js +0 -1
- package/lib/src/services/tasks/comments/comments.shared.js +0 -1
- package/lib/src/services/tasks/tasks.hooks.d.ts +0 -71
- package/lib/src/services/tasks/tasks.shared.js +0 -1
- package/lib/src/services/tax/research/research.shared.js +0 -1
- package/lib/src/services/tax/sessions/conversations/conversations.hooks.d.ts +0 -8
- package/lib/src/services/tax/sessions/conversations/conversations.shared.js +0 -1
- package/lib/src/services/tax/sessions/sessions.hooks.d.ts +0 -8
- package/lib/src/services/tax/sessions/sessions.shared.js +0 -1
- package/lib/src/services/telegram/link/link.class.d.ts +0 -8
- package/lib/src/services/telegram/link/link.shared.js +0 -1
- package/lib/src/services/telegram/telegram.class.d.ts +0 -5
- package/lib/src/services/telegram/telegram.shared.js +0 -1
- package/lib/src/services/toggles/toggles.shared.js +0 -1
- package/lib/src/services/tokens/tokens.shared.js +0 -1
- package/lib/src/services/traders/pods/api/api.schema.d.ts +8 -8
- package/lib/src/services/traders/pods/api/api.shared.js +0 -1
- package/lib/src/services/traders/pods/blob/blob.shared.js +0 -1
- package/lib/src/services/traders/pods/events/events.shared.js +0 -1
- package/lib/src/services/traders/pods/pods.schema.d.ts +8 -8
- package/lib/src/services/traders/pods/pods.shared.js +0 -1
- package/lib/src/services/traders/pods/webhooks/webhooks.shared.js +0 -1
- package/lib/src/services/traders/traders.shared.js +0 -1
- package/lib/src/services/trades/trades.shared.js +0 -1
- package/lib/src/services/users/access/access.shared.js +0 -1
- package/lib/src/services/users/marketing/campaigns/trial.context.d.ts +0 -11
- package/lib/src/services/users/marketing/marketing.class.d.ts +0 -4
- package/lib/src/services/users/marketing/marketing.engine.d.ts +0 -20
- package/lib/src/services/users/marketing/marketing.shared.js +0 -1
- package/lib/src/services/users/onboarding/onboarding.hooks.d.ts +0 -38
- package/lib/src/services/users/onboarding/onboarding.shared.js +0 -1
- package/lib/src/services/users/onboarding/steps/exchanges.processor.d.ts +0 -5
- package/lib/src/services/users/onboarding/steps/notifications.processor.d.ts +0 -4
- package/lib/src/services/users/onboarding/steps/preferences.processor.d.ts +0 -4
- package/lib/src/services/users/onboarding/steps/strategy.processor.d.ts +0 -5
- package/lib/src/services/users/onboarding/steps/traders.processor.d.ts +0 -5
- package/lib/src/services/users/sessions/sessions.class.d.ts +0 -6
- package/lib/src/services/users/sessions/sessions.schema.d.ts +0 -8
- package/lib/src/services/users/sessions/sessions.shared.js +0 -1
- package/lib/src/services/users/users.class.d.ts +0 -1
- package/lib/src/services/users/users.schema.d.ts +0 -13
- package/lib/src/services/users/users.shared.d.ts +1 -3
- package/lib/src/services/users/users.shared.js +0 -1
- package/lib/src/services/version/version.shared.js +0 -1
- package/package.json +1 -1
|
@@ -10,19 +10,8 @@ export interface ExchangesOrderbookParams extends Params<ExchangesOrderbookQuery
|
|
|
10
10
|
export declare class ExchangesOrderbookService<ServiceParams extends ExchangesOrderbookParams = ExchangesOrderbookParams> implements ServiceInterface<ExchangesOrderbook, ExchangesOrderbookData, ServiceParams> {
|
|
11
11
|
options: ExchangesOrderbookServiceOptions;
|
|
12
12
|
constructor(options: ExchangesOrderbookServiceOptions);
|
|
13
|
-
/**
|
|
14
|
-
* find() — returns current snapshots from the in-memory book map.
|
|
15
|
-
* Query by exchange, symbol, or both. No query returns all books.
|
|
16
|
-
*/
|
|
17
13
|
find(params?: ServiceParams): Promise<ExchangesOrderbook[]>;
|
|
18
|
-
/**
|
|
19
|
-
* create() — subscribe to a specific exchange:symbol channel.
|
|
20
|
-
* Joins the Socket.IO connection to the orderbook channel so it receives real-time updates.
|
|
21
|
-
*/
|
|
22
14
|
create(data: ExchangesOrderbookData, params?: ServiceParams): Promise<any>;
|
|
23
|
-
/**
|
|
24
|
-
* remove() — unsubscribe from a specific exchange:symbol channel.
|
|
25
|
-
*/
|
|
26
15
|
remove(_id: NullableId, params?: ServiceParams): Promise<any>;
|
|
27
16
|
}
|
|
28
17
|
export declare const getOptions: (app: Application) => {
|
|
@@ -29,24 +29,12 @@ export declare class InsightsCryptoStressIndexService<ServiceParams extends Para
|
|
|
29
29
|
private _confirmedBand;
|
|
30
30
|
private _pendingBand;
|
|
31
31
|
private _pendingCount;
|
|
32
|
-
/**
|
|
33
|
-
* Called by the 5-min cron after each raw score computation.
|
|
34
|
-
* Updates the EMA and evaluates hysteresis for band transitions.
|
|
35
|
-
*/
|
|
36
32
|
updateConfirmedState(rawScore: number): {
|
|
37
33
|
bandChanged: boolean;
|
|
38
34
|
previousBand: Band;
|
|
39
35
|
newBand: Band;
|
|
40
36
|
};
|
|
41
|
-
/**
|
|
42
|
-
* Returns the current confirmed stress state with pre-computed multipliers.
|
|
43
|
-
*/
|
|
44
37
|
getConfirmedState(): ConfirmedStressResponse;
|
|
45
|
-
/**
|
|
46
|
-
* get('latest') — returns the current stress snapshot + sparkline from Valkey.
|
|
47
|
-
* get('confirmed') — returns the smoothed confirmed band + multipliers.
|
|
48
|
-
* Any other id falls through to the MongoDB adapter.
|
|
49
|
-
*/
|
|
50
38
|
get(id: Id, params?: ServiceParams): Promise<any>;
|
|
51
39
|
}
|
|
52
40
|
export declare const getOptions: (app: Application) => MongoDBAdapterOptions;
|
|
@@ -1,20 +1,9 @@
|
|
|
1
1
|
import type { HookContext } from '@feathersjs/feathers';
|
|
2
|
-
/**
|
|
3
|
-
* Hook to fetch market data from CoinStats API and populate the context data
|
|
4
|
-
* This hook fetches data from the CoinStats API
|
|
5
|
-
*/
|
|
6
2
|
export declare const fetchCoinstatsData: (context: HookContext) => Promise<HookContext<import("@feathersjs/feathers").Application<any, any>, any>>;
|
|
7
|
-
/**
|
|
8
|
-
* Hook to fetch fear and greed data from CoinStats API and populate the context data
|
|
9
|
-
* This hook fetches data from the CoinStats API
|
|
10
|
-
*/
|
|
11
3
|
export declare const fetchFearAndGreedData: (context: HookContext) => Promise<HookContext<import("@feathersjs/feathers").Application<any, any>, any>>;
|
|
12
4
|
export interface NewsApiResponse {
|
|
13
5
|
data: any[];
|
|
14
6
|
hasMore: boolean;
|
|
15
7
|
totalPages: number;
|
|
16
8
|
}
|
|
17
|
-
/**
|
|
18
|
-
* Hook to fetch news data from CoinStats API with pagination support
|
|
19
|
-
*/
|
|
20
9
|
export declare const fetchNewsData: (context: HookContext) => Promise<HookContext>;
|
|
@@ -7,9 +7,6 @@ export type { InsightsNews, InsightsNewsData, InsightsNewsPatch, InsightsNewsQue
|
|
|
7
7
|
export interface InsightsNewsParams extends MongoDBAdapterParams<InsightsNewsQuery> {
|
|
8
8
|
}
|
|
9
9
|
export declare class InsightsNewsService<ServiceParams extends Params = InsightsNewsParams> extends FlexibleMongoDBService<InsightsNews, InsightsNewsData, InsightsNewsParams, InsightsNewsPatch> {
|
|
10
|
-
/**
|
|
11
|
-
* Bulk upsert news items, respecting high-water marks per news type
|
|
12
|
-
*/
|
|
13
10
|
upsert(data: {
|
|
14
11
|
newsType: string;
|
|
15
12
|
newsItems: any[];
|
|
@@ -1,14 +1,3 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Collective Knowledge Service
|
|
3
|
-
*
|
|
4
|
-
* A FeathersJS service backed by LanceDB — the same vector DB that the Python
|
|
5
|
-
* Agno agent uses for collective knowledge. Provides find/get/create/patch/remove
|
|
6
|
-
* so users can browse, approve, and manage agent-discovered insights.
|
|
7
|
-
*
|
|
8
|
-
* LanceDB stores each row as: id, name, meta_data (JSON), content, embedding, usage.
|
|
9
|
-
* We map these to the richer frontend schema (title, insight, category, status, etc.)
|
|
10
|
-
* by packing our fields into `meta_data` JSON.
|
|
11
|
-
*/
|
|
12
1
|
import type { Params } from '@feathersjs/feathers';
|
|
13
2
|
import type { Application } from '../../declarations';
|
|
14
3
|
import type { Knowledges, KnowledgesData, KnowledgesPatch, KnowledgesQuery } from './knowledges.schema';
|
|
@@ -20,13 +9,9 @@ export declare class KnowledgesService {
|
|
|
20
9
|
private tableName;
|
|
21
10
|
private openaiApiKey;
|
|
22
11
|
constructor(app: Application);
|
|
23
|
-
/** Open the LanceDB table, returning null if it doesn't exist yet. */
|
|
24
12
|
private openTable;
|
|
25
|
-
/** Convert a LanceDB row to the frontend Knowledge model. */
|
|
26
13
|
private rowToKnowledge;
|
|
27
|
-
/** Build the meta_data JSON object from knowledge fields. */
|
|
28
14
|
private buildMeta;
|
|
29
|
-
/** Call OpenAI to generate an embedding for the given text. */
|
|
30
15
|
private embed;
|
|
31
16
|
find(params?: KnowledgesParams): Promise<Knowledges[]>;
|
|
32
17
|
get(id: string, _params?: KnowledgesParams): Promise<Knowledges>;
|
|
@@ -1,22 +1,3 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Long-lived proxy router for `models/signals`.
|
|
3
|
-
*
|
|
4
|
-
* Boots one `http-proxy-3` listener per active signal, bound to the signal's
|
|
5
|
-
* stable `proxyPort`, forwarding both HTTP and WebSocket traffic to the pod
|
|
6
|
-
* referenced by `activePodId`. Subscribers connect to the signal port and never
|
|
7
|
-
* see rotations — when `activePodId` flips, the listener is rebuilt against
|
|
8
|
-
* the new pod transparently.
|
|
9
|
-
*
|
|
10
|
-
* Lifecycle:
|
|
11
|
-
* - `app.setup` hook hydrates from the DB and opens listeners.
|
|
12
|
-
* - Listens to signals service `created` / `patched` / `removed` events.
|
|
13
|
-
* - Teardown hook closes every listener.
|
|
14
|
-
*
|
|
15
|
-
* Process gating:
|
|
16
|
-
* - Only one process should bind these ports. Enable via
|
|
17
|
-
* `SIGNALS_PROXY_ENABLED=true` env var, or implicitly in development
|
|
18
|
-
* (`NODE_ENV=development`). Disabled under test runners.
|
|
19
|
-
*/
|
|
20
1
|
import * as httpProxy from 'http-proxy-3';
|
|
21
2
|
import type { Application } from '../../../declarations';
|
|
22
3
|
type ProxyServer = ReturnType<typeof httpProxy.createProxyServer>;
|
|
@@ -2,8 +2,6 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.modelsSignalsSubscriptionsClient = exports.modelsSignalsSubscriptionsMethods = exports.modelsSignalsSubscriptionsPath = void 0;
|
|
4
4
|
exports.modelsSignalsSubscriptionsPath = 'models/signals/subscriptions';
|
|
5
|
-
// Find/get only over the wire — minting & revoking happen via internal calls
|
|
6
|
-
// from the traders patch hook. This keeps the ws_token off public APIs.
|
|
7
5
|
exports.modelsSignalsSubscriptionsMethods = ['find', 'get'];
|
|
8
6
|
const modelsSignalsSubscriptionsClient = (client) => {
|
|
9
7
|
const connection = client.get('connection');
|
|
@@ -12,4 +10,3 @@ const modelsSignalsSubscriptionsClient = (client) => {
|
|
|
12
10
|
});
|
|
13
11
|
};
|
|
14
12
|
exports.modelsSignalsSubscriptionsClient = modelsSignalsSubscriptionsClient;
|
|
15
|
-
//# sourceMappingURL=subscriptions.shared.js.map
|
|
@@ -1,12 +1,3 @@
|
|
|
1
1
|
import type { HookContext } from '@feathersjs/feathers';
|
|
2
|
-
/**
|
|
3
|
-
* Set userId for multi-tenancy on create operations
|
|
4
|
-
* Ensures userId always comes from authenticated user context
|
|
5
|
-
*/
|
|
6
2
|
export declare const setUserIdFromContext: () => (context: HookContext) => Promise<HookContext<import("@feathersjs/feathers").Application<any, any>, any>>;
|
|
7
|
-
/**
|
|
8
|
-
* Auto-populate objective fields using AWS Bedrock when only description is provided
|
|
9
|
-
* This hook runs before data validation and will populate title, icon, and objective
|
|
10
|
-
* using AI if they're not provided by the user
|
|
11
|
-
*/
|
|
12
3
|
export declare const autoPopulateObjectiveFields: () => (context: HookContext) => Promise<HookContext<import("@feathersjs/feathers").Application<any, any>, any>>;
|
|
@@ -2,17 +2,6 @@ import type { Application } from '../../declarations';
|
|
|
2
2
|
import { RestrictedService } from './restricted.class';
|
|
3
3
|
import { restrictedPath } from './restricted.shared';
|
|
4
4
|
export * from './restricted.class';
|
|
5
|
-
/**
|
|
6
|
-
* Restricted service with API key scope-based authorization.
|
|
7
|
-
*
|
|
8
|
-
* This service enforces the following scope requirements:
|
|
9
|
-
*
|
|
10
|
-
* - 'read' scope: Required for find and get operations
|
|
11
|
-
* - 'write' scope: Required for create and patch operations
|
|
12
|
-
* - 'admin' scope: Required for remove operations
|
|
13
|
-
*
|
|
14
|
-
* Note: API keys with 'admin' scope automatically have access to all operations.
|
|
15
|
-
*/
|
|
16
5
|
export declare const restricted: (app: Application) => void;
|
|
17
6
|
declare module '../../declarations' {
|
|
18
7
|
interface ServiceTypes {
|
|
@@ -1,9 +1,3 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Usage examples for the Series Performance service with integrated TimeSeries functionality
|
|
3
|
-
*
|
|
4
|
-
* This demonstrates how to use the FeathersJS service with custom hooks to get
|
|
5
|
-
* chart data and statistics from the timeseries performance collection.
|
|
6
|
-
*/
|
|
7
1
|
import type { Application } from '../../../declarations';
|
|
8
2
|
export declare class PerformanceServiceExamples {
|
|
9
3
|
static getChartData(app: Application, traderId: string, userId: string): Promise<import("@feathersjs/feathers").Paginated<{
|
|
@@ -2,7 +2,6 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.snapshotClient = exports.snapshotMethods = exports.snapshotPath = void 0;
|
|
4
4
|
exports.snapshotPath = 'snapshot';
|
|
5
|
-
// Read-only externally — create is internal (cron) only via _create
|
|
6
5
|
exports.snapshotMethods = ['find', 'get'];
|
|
7
6
|
const snapshotClient = (client) => {
|
|
8
7
|
const connection = client.get('connection');
|
|
@@ -11,4 +10,3 @@ const snapshotClient = (client) => {
|
|
|
11
10
|
});
|
|
12
11
|
};
|
|
13
12
|
exports.snapshotClient = snapshotClient;
|
|
14
|
-
//# sourceMappingURL=snapshot.shared.js.map
|
|
@@ -10,35 +10,12 @@ export interface StrategiesBacktestPreflightParams extends Params<StrategiesBack
|
|
|
10
10
|
export declare class StrategiesBacktestPreflightService<ServiceParams extends StrategiesBacktestPreflightParams = StrategiesBacktestPreflightParams> implements ServiceInterface<StrategiesBacktestPreflight, StrategiesBacktestPreflightData, ServiceParams, StrategiesBacktestPreflightPatch> {
|
|
11
11
|
options: StrategiesBacktestPreflightServiceOptions;
|
|
12
12
|
constructor(options: StrategiesBacktestPreflightServiceOptions);
|
|
13
|
-
/**
|
|
14
|
-
* Validates backtest readiness and returns structured feedback
|
|
15
|
-
* Query params: strategyId, traderId, exchangeId, start, end
|
|
16
|
-
*/
|
|
17
13
|
find(params?: ServiceParams): Promise<StrategiesBacktestPreflight[]>;
|
|
18
|
-
/**
|
|
19
|
-
* Auto-fixes preflight issues by downloading missing data
|
|
20
|
-
* Data params: strategyId, traderId, exchangeId, start, end, autoFix
|
|
21
|
-
*/
|
|
22
14
|
create(data: StrategiesBacktestPreflightData, params?: ServiceParams): Promise<StrategiesBacktestPreflight>;
|
|
23
|
-
/**
|
|
24
|
-
* Validates data availability for backtest
|
|
25
|
-
*/
|
|
26
15
|
private validateDataAvailability;
|
|
27
|
-
/**
|
|
28
|
-
* Validates a single pair's data file
|
|
29
|
-
*/
|
|
30
16
|
private validatePairFile;
|
|
31
|
-
/**
|
|
32
|
-
* Analyzes preflight issues to determine which pairs need data download
|
|
33
|
-
*/
|
|
34
17
|
private analyzeFixes;
|
|
35
|
-
/**
|
|
36
|
-
* Downloads missing data for specified pairs
|
|
37
|
-
*/
|
|
38
18
|
private downloadMissingData;
|
|
39
|
-
/**
|
|
40
|
-
* Copies downloaded data from exchange folder to trader folder
|
|
41
|
-
*/
|
|
42
19
|
private copyDownloadedDataToTraderFolder;
|
|
43
20
|
}
|
|
44
21
|
export declare const getOptions: (app: Application) => {
|
|
@@ -31,7 +31,6 @@ export declare const strategiesGenerateSchema: import("@feathersjs/typebox").TOb
|
|
|
31
31
|
days: import("@feathersjs/typebox").TNumber;
|
|
32
32
|
}>;
|
|
33
33
|
}>>;
|
|
34
|
-
/** Agenda.js job ID — for tracking / cancellation of the agent execution. */
|
|
35
34
|
agendaJobId: import("@feathersjs/typebox").TOptional<import("@feathersjs/typebox").TString<string>>;
|
|
36
35
|
}>;
|
|
37
36
|
export type StrategiesGenerate = Static<typeof strategiesGenerateSchema>;
|
|
@@ -130,7 +129,6 @@ export declare const strategiesGenerateDataSchema: import("@feathersjs/typebox")
|
|
|
130
129
|
days: import("@feathersjs/typebox").TNumber;
|
|
131
130
|
}>;
|
|
132
131
|
}>>;
|
|
133
|
-
/** Agenda.js job ID — for tracking / cancellation of the agent execution. */
|
|
134
132
|
agendaJobId: import("@feathersjs/typebox").TOptional<import("@feathersjs/typebox").TString<string>>;
|
|
135
133
|
}>, ["prompt", "context", "public", "auto"]>;
|
|
136
134
|
export type StrategiesGenerateData = Static<typeof strategiesGenerateDataSchema>;
|
|
@@ -197,7 +195,6 @@ export declare const strategiesGeneratePatchSchema: import("@feathersjs/typebox"
|
|
|
197
195
|
days: import("@feathersjs/typebox").TNumber;
|
|
198
196
|
}>;
|
|
199
197
|
}>>;
|
|
200
|
-
/** Agenda.js job ID — for tracking / cancellation of the agent execution. */
|
|
201
198
|
agendaJobId: import("@feathersjs/typebox").TOptional<import("@feathersjs/typebox").TString<string>>;
|
|
202
199
|
}>>;
|
|
203
200
|
export type StrategiesGeneratePatch = Static<typeof strategiesGeneratePatchSchema>;
|
|
@@ -264,7 +261,6 @@ export declare const strategiesGenerateQueryProperties: import("@feathersjs/type
|
|
|
264
261
|
days: import("@feathersjs/typebox").TNumber;
|
|
265
262
|
}>;
|
|
266
263
|
}>>;
|
|
267
|
-
/** Agenda.js job ID — for tracking / cancellation of the agent execution. */
|
|
268
264
|
agendaJobId: import("@feathersjs/typebox").TOptional<import("@feathersjs/typebox").TString<string>>;
|
|
269
265
|
}>, ["_id", "prompt", "status", "strategyId", "error", "currentStep", "createdAt"]>;
|
|
270
266
|
export declare const strategiesGenerateQuerySchema: import("@feathersjs/typebox").TIntersect<[import("@feathersjs/typebox").TIntersect<[import("@feathersjs/typebox").TPartial<import("@feathersjs/typebox").TObject<{
|
|
@@ -1,8 +1,2 @@
|
|
|
1
1
|
import type { HookContext } from '../../../declarations';
|
|
2
|
-
/**
|
|
3
|
-
* Generates the exchange configuration for hyperopting.
|
|
4
|
-
*
|
|
5
|
-
* @param {HookContext} context - The hook context.
|
|
6
|
-
* @returns {Promise<void>} - A promise that resolves when the exchange configuration is generated.
|
|
7
|
-
*/
|
|
8
2
|
export declare const hyperoptGenerateExchangeConfig: (context: HookContext) => Promise<void>;
|
|
@@ -1,7 +1,2 @@
|
|
|
1
1
|
import { HookContext } from '@feathersjs/feathers';
|
|
2
|
-
/**
|
|
3
|
-
* Custom populate hook for hyperopt service to handle cross-user exchange access
|
|
4
|
-
* This replaces the standard populate hook for exchange to handle cases where
|
|
5
|
-
* the exchange might belong to a different user than the one creating the hyperopt
|
|
6
|
-
*/
|
|
7
2
|
export declare const hyperoptPopulateExchange: (context: HookContext) => Promise<HookContext<import("@feathersjs/feathers").Application<any, any>, any>>;
|
|
@@ -1,9 +1,2 @@
|
|
|
1
1
|
import { HookContext } from '@feathersjs/feathers';
|
|
2
|
-
/**
|
|
3
|
-
* After-hook for the hyperopt service.
|
|
4
|
-
* When a hyperopt run succeeds and is profitable with enough trades, promotes
|
|
5
|
-
* the optimized strategy parameters as a community template with a confidence score.
|
|
6
|
-
*
|
|
7
|
-
* Runs independently of hyperoptPropagateResults so the two concerns are separated.
|
|
8
|
-
*/
|
|
9
2
|
export declare const hyperoptPromoteTemplate: (context: HookContext) => Promise<HookContext>;
|
package/lib/src/services/strategies/hyperopt/hyperopt-validate-exchange-whitelist.hooks.d.ts
CHANGED
|
@@ -1,10 +1,2 @@
|
|
|
1
1
|
import type { HookContext } from '../../../declarations';
|
|
2
|
-
/**
|
|
3
|
-
* Validates and sets default whitelist for exchange if empty to prevent execution failures.
|
|
4
|
-
* This hook ensures that the exchange has a valid whitelist for hyperopt execution by
|
|
5
|
-
* fetching top pairs by volume from the exchange.
|
|
6
|
-
*
|
|
7
|
-
* @param {HookContext} context - The hook context.
|
|
8
|
-
* @returns {Promise<void>} - A promise that resolves when the whitelist validation is complete.
|
|
9
|
-
*/
|
|
10
2
|
export declare const hyperoptValidateExchangeWhitelist: (context: HookContext) => Promise<void>;
|
|
@@ -1,9 +1,2 @@
|
|
|
1
1
|
import type { HookContext } from '../../../declarations';
|
|
2
|
-
/**
|
|
3
|
-
* Validates that historical data exists for the whitelisted pairs and interval.
|
|
4
|
-
* If data is missing, patches the exchange and triggers data download.
|
|
5
|
-
*
|
|
6
|
-
* @param {HookContext} context - The hook context.
|
|
7
|
-
* @returns {Promise<void>} - A promise that resolves when the data validation is complete.
|
|
8
|
-
*/
|
|
9
2
|
export declare const hyperoptValidateHistoricalData: (context: HookContext) => Promise<void>;
|
|
@@ -1,7 +1,2 @@
|
|
|
1
1
|
import type { HookContext } from '../../../declarations';
|
|
2
|
-
/**
|
|
3
|
-
* Validates that the trader's starting balance is sufficient for the stake amount
|
|
4
|
-
* Starting balance is calculated as: dry_run_wallet * tradable_balance_ratio
|
|
5
|
-
* This validation prevents hyperopt from running with invalid configurations
|
|
6
|
-
*/
|
|
7
2
|
export declare const hyperoptValidateStakeBalance: (context: HookContext) => Promise<HookContext>;
|
|
@@ -1,9 +1,2 @@
|
|
|
1
1
|
import type { HookContext } from '../../../declarations';
|
|
2
|
-
/**
|
|
3
|
-
* Validates and auto-corrects the trader's stake currency based on the exchange whitelist.
|
|
4
|
-
* This prevents freqtrade errors when stake currency is incompatible with the pair whitelist.
|
|
5
|
-
*
|
|
6
|
-
* The hook analyzes the exchange whitelist pairs and sets the stake currency to the most
|
|
7
|
-
* popular quote currency found in the pairs.
|
|
8
|
-
*/
|
|
9
2
|
export declare const hyperoptValidateStakeCurrency: (context: HookContext) => Promise<HookContext>;
|
|
@@ -1,7 +1,2 @@
|
|
|
1
1
|
import type { HookContext } from '../../../declarations';
|
|
2
|
-
/**
|
|
3
|
-
* Pre-validation hook for hyperopt — mirrors backtestValidate.
|
|
4
|
-
* Checks that trader, strategy, exchange exist and are properly configured
|
|
5
|
-
* before any expensive work (config generation, data copy, container launch).
|
|
6
|
-
*/
|
|
7
2
|
export declare const hyperoptValidate: (context: HookContext) => Promise<void>;
|