@cryptorobot.ai/client 1.26.0-dev.1003 → 1.26.0-dev.1004
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
package/lib/src/client.d.ts
CHANGED
|
@@ -249,12 +249,4 @@ export interface Configuration {
|
|
|
249
249
|
export interface ServiceTypes {
|
|
250
250
|
}
|
|
251
251
|
export type ClientApplication = Application<ServiceTypes, Configuration>;
|
|
252
|
-
/**
|
|
253
|
-
* Returns a typed client for the backend app.
|
|
254
|
-
*
|
|
255
|
-
* @param connection The REST or Socket.io Feathers client connection
|
|
256
|
-
* @param authenticationOptions Additional settings for the authentication client
|
|
257
|
-
* @returns The Feathers client application
|
|
258
|
-
* @see https://dove.feathersjs.com/api/client.html
|
|
259
|
-
*/
|
|
260
252
|
export declare const createClient: <Configuration = any>(connection: TransportConnection<ServiceTypes>, authenticationOptions?: Partial<AuthenticationClientOptions>) => ClientApplication;
|
package/lib/src/client.js
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
/* istanbul ignore file */
|
|
3
2
|
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
4
3
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
5
4
|
};
|
|
@@ -128,14 +127,6 @@ const exchanges_shared_1 = require("./services/exchanges/exchanges.shared");
|
|
|
128
127
|
const custom_shared_1 = require("./services/custom/custom.shared");
|
|
129
128
|
const messages_shared_2 = require("./services/messages/messages.shared");
|
|
130
129
|
const users_shared_1 = require("./services/users/users.shared");
|
|
131
|
-
/**
|
|
132
|
-
* Returns a typed client for the backend app.
|
|
133
|
-
*
|
|
134
|
-
* @param connection The REST or Socket.io Feathers client connection
|
|
135
|
-
* @param authenticationOptions Additional settings for the authentication client
|
|
136
|
-
* @returns The Feathers client application
|
|
137
|
-
* @see https://dove.feathersjs.com/api/client.html
|
|
138
|
-
*/
|
|
139
130
|
const createClient = (connection, authenticationOptions = {}) => {
|
|
140
131
|
const client = (0, feathers_1.feathers)();
|
|
141
132
|
client.configure(connection);
|
|
@@ -266,4 +257,3 @@ const createClient = (connection, authenticationOptions = {}) => {
|
|
|
266
257
|
return client;
|
|
267
258
|
};
|
|
268
259
|
exports.createClient = createClient;
|
|
269
|
-
//# sourceMappingURL=client.js.map
|
|
@@ -1,9 +1,3 @@
|
|
|
1
1
|
import type { HookContext } from '../../declarations';
|
|
2
|
-
/**
|
|
3
|
-
* Convert ObjectId instances to strings in data to match schema expectations
|
|
4
|
-
*/
|
|
5
2
|
export declare const convertObjectIdsInData: (context: HookContext) => Promise<HookContext>;
|
|
6
|
-
/**
|
|
7
|
-
* Convert ObjectId instances to strings in query parameters
|
|
8
|
-
*/
|
|
9
3
|
export declare const convertObjectIdsInQuery: (context: HookContext) => Promise<HookContext>;
|
|
@@ -10,9 +10,6 @@ export interface AffiliatesParams extends MongoDBAdapterParams<AffiliatesQuery>
|
|
|
10
10
|
export declare class AffiliatesService<ServiceParams extends Params = AffiliatesParams> extends FlexibleMongoDBService<Affiliates, AffiliatesData, AffiliatesParams, AffiliatesPatch> {
|
|
11
11
|
app: Application;
|
|
12
12
|
setup(app: Application): void;
|
|
13
|
-
/**
|
|
14
|
-
* Dashboard endpoint: aggregates clicks, referrals, commissions and payouts for an affiliate
|
|
15
|
-
*/
|
|
16
13
|
dashboard(affiliateId: Id, params?: ServiceParams): Promise<any>;
|
|
17
14
|
}
|
|
18
15
|
export declare const getOptions: (app: Application) => MongoDBAdapterOptions;
|
|
@@ -1,11 +1,3 @@
|
|
|
1
1
|
import type { HookContext } from '@feathersjs/feathers';
|
|
2
|
-
/**
|
|
3
|
-
* Convert ObjectId fields to strings in query parameters
|
|
4
|
-
* This ensures ObjectIds are converted to strings before schema validation
|
|
5
|
-
*/
|
|
6
2
|
export declare const convertObjectIdsInQuery: () => (context: HookContext) => Promise<HookContext<import("@feathersjs/feathers").Application<any, any>, any>>;
|
|
7
|
-
/**
|
|
8
|
-
* Convert ObjectId fields to strings in data (userId and agentId)
|
|
9
|
-
* This ensures ObjectIds are converted to strings before schema validation
|
|
10
|
-
*/
|
|
11
3
|
export declare const convertObjectIdsInData: () => (context: HookContext) => Promise<HookContext<import("@feathersjs/feathers").Application<any, any>, any>>;
|
|
@@ -1,11 +1,3 @@
|
|
|
1
1
|
import type { HookContext } from '@feathersjs/feathers';
|
|
2
|
-
/**
|
|
3
|
-
* Convert ObjectId fields to strings in query parameters
|
|
4
|
-
* This ensures ObjectIds are converted to strings before schema validation
|
|
5
|
-
*/
|
|
6
2
|
export declare const convertObjectIdsInQuery: () => (context: HookContext) => Promise<HookContext<import("@feathersjs/feathers").Application<any, any>, any>>;
|
|
7
|
-
/**
|
|
8
|
-
* Convert ObjectId fields to strings in data (agentId)
|
|
9
|
-
* This ensures ObjectIds are converted to strings before schema validation
|
|
10
|
-
*/
|
|
11
3
|
export declare const convertObjectIdsInData: () => (context: HookContext) => Promise<HookContext<import("@feathersjs/feathers").Application<any, any>, any>>;
|
|
@@ -1,5 +1,2 @@
|
|
|
1
1
|
import type { HookContext } from '../../declarations';
|
|
2
|
-
/**
|
|
3
|
-
* Update EventBridge rules with agent information when an agent is created or updated with triggers
|
|
4
|
-
*/
|
|
5
2
|
export declare const updateTriggerRulesWithAgentInfo: (context: HookContext<any>) => Promise<HookContext<any>>;
|
|
@@ -1,6 +1,4 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.authManagementPath = void 0;
|
|
4
|
-
// For more information about this file see https://dove.feathersjs.com/guides/cli/service.shared.html
|
|
5
4
|
exports.authManagementPath = 'auth-management';
|
|
6
|
-
//# sourceMappingURL=auth-management.shared.js.map
|
|
@@ -1,42 +1,3 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Map Optuna trial.params onto a preset template before models/presets.create.
|
|
3
|
-
*
|
|
4
|
-
* Supported param keys:
|
|
5
|
-
* train_period_days → trainingWindow
|
|
6
|
-
* backtest_period_days → backtestPeriodDays (FreqAI walk-forward retrain cadence)
|
|
7
|
-
* label_period_candles → labelPeriodCandles
|
|
8
|
-
* include_shifted_candles → includeShiftedCandles
|
|
9
|
-
* entry_threshold → entryThreshold
|
|
10
|
-
* exit_threshold → exitThreshold
|
|
11
|
-
* model → model (categorical: lightgbm|xgboost|catboost)
|
|
12
|
-
* Strongly recommended to PIN model per study
|
|
13
|
-
* rather than search across families — see
|
|
14
|
-
* buildModelHyperparamSpace() in the create-study
|
|
15
|
-
* dialog. Cross-family search pollutes the score:
|
|
16
|
-
* num_leaves applied to catboost is silently
|
|
17
|
-
* ignored.
|
|
18
|
-
* timeframe → timeframes: [val] (legacy single tf, categorical: 5m|15m|1h)
|
|
19
|
-
* timeframes → timeframes: val (multi-tf combinations, e.g. ['5m','15m'])
|
|
20
|
-
* stoploss → stoploss (negative float, strategy class var)
|
|
21
|
-
* trailing_stop → trailingStop (boolean)
|
|
22
|
-
* trailing_stop_positive → trailingStopPositive
|
|
23
|
-
* trailing_stop_positive_offset → trailingStopPositiveOffset
|
|
24
|
-
* roi_0 / roi_decay_minutes → roi0 / roiDecayMinutes (minimal_roi table)
|
|
25
|
-
* max_open_trades → maxOpenTrades (top-level FT config)
|
|
26
|
-
* DI_threshold / di_threshold → freqaiDIThreshold (drift-detection cutoff)
|
|
27
|
-
* weight_factor → freqaiWeightFactor (recency weighting)
|
|
28
|
-
* noise_standard_deviation → freqaiNoiseStd (regularization)
|
|
29
|
-
* principal_component_analysis → freqaiPCA (boolean)
|
|
30
|
-
* test_size → freqaiTestSize (validation split fraction)
|
|
31
|
-
* fit_live_predictions_candles → fitLivePredictionsCandles
|
|
32
|
-
* use_<indicator> → indicators[] (booleans collected, e.g. use_rsi=true)
|
|
33
|
-
* <anything else> → modelTrainingParameters[<key>] (lightgbm/xgb hyperparams)
|
|
34
|
-
*
|
|
35
|
-
* Throws `InsufficientIndicatorsError` when the trial picked fewer than 2
|
|
36
|
-
* indicators *and* the search space contained at least one `use_*` flag.
|
|
37
|
-
* Caller (autotune/trials) catches this and marks the trial PRUNED so Optuna
|
|
38
|
-
* doesn't learn a fake score against a substituted indicator set.
|
|
39
|
-
*/
|
|
40
1
|
export declare class InsufficientIndicatorsError extends Error {
|
|
41
2
|
readonly picked: string[];
|
|
42
3
|
constructor(picked: string[]);
|
|
@@ -2,9 +2,6 @@ export interface OptunaTrialSuggestion {
|
|
|
2
2
|
trialNumber: number;
|
|
3
3
|
params: Record<string, any>;
|
|
4
4
|
}
|
|
5
|
-
/** Idempotent: creates the study if it doesn't exist (load_if_exists=True). */
|
|
6
5
|
export declare function optunaInit(storage: string, studyName: string, searchSpace: any[]): Promise<void>;
|
|
7
|
-
/** Asks Optuna for N new trial suggestions. */
|
|
8
6
|
export declare function optunaAsk(storage: string, studyName: string, n: number): Promise<OptunaTrialSuggestion[]>;
|
|
9
|
-
/** Reports a trial score back to Optuna. Use score=null/undefined to mark a trial as failed/pruned. */
|
|
10
7
|
export declare function optunaTell(storage: string, studyName: string, trialNumber: number, score: number | null): Promise<void>;
|
|
@@ -1,36 +1,11 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Composite score for a backtest result — signed so Optuna can rank both winners and losers.
|
|
3
|
-
*
|
|
4
|
-
* Formula: totalReturn × (0.5 + 0.5·PSR) × ddPenalty × modelQualityWeight
|
|
5
|
-
* - totalReturn (signed): captures direction (win/loss) and magnitude
|
|
6
|
-
* - PSR (Probabilistic Sharpe Ratio) ∈ [0,1]: trade-quality weight; floors at 0 for negative sharpe
|
|
7
|
-
* The (0.5 + 0.5·PSR) blend keeps losing strategies on a comparable scale (50% weight floor)
|
|
8
|
-
* so Optuna can still differentiate between "less bad" and "worse" losers.
|
|
9
|
-
* - ddPenalty = 1 / (1 + |maxDrawdown|): extra discount for drawdown
|
|
10
|
-
* - modelQualityWeight ∈ [0.5, 1.5]: optional, only applied when caller passes a
|
|
11
|
-
* FreqAI training metric (validation R² or similar). Catches "lucky backtest,
|
|
12
|
-
* terrible model" trials that would otherwise score high. Default 1.0 (no-op)
|
|
13
|
-
* keeps the function backwards-compatible with callers that don't have access
|
|
14
|
-
* to the model metadata.
|
|
15
|
-
*
|
|
16
|
-
* Higher is better. Returns null when results are insufficient to score.
|
|
17
|
-
*/
|
|
18
1
|
export interface BacktestResults {
|
|
19
2
|
sharpe?: number;
|
|
20
3
|
totalReturn?: number;
|
|
21
4
|
maxDrawdown?: number;
|
|
22
5
|
tradesCount?: number;
|
|
23
|
-
/** Alternate spelling produced by ModelPresetHelper.parseResults — accept both. */
|
|
24
6
|
tradeCount?: number;
|
|
25
7
|
profitFactor?: number;
|
|
26
8
|
winRate?: number;
|
|
27
|
-
/**
|
|
28
|
-
* Optional FreqAI training-time validation metric averaged across pairs.
|
|
29
|
-
* Typically a proxy for R² on the held-out validation split (the
|
|
30
|
-
* `data_split_parameters.test_size` slice). Values in [0,1] are interpreted
|
|
31
|
-
* as fractions; values outside are clamped before being mapped to a weight.
|
|
32
|
-
* When absent or non-finite, the score is unchanged (weight = 1.0).
|
|
33
|
-
*/
|
|
34
9
|
modelValidationScore?: number;
|
|
35
10
|
[key: string]: any;
|
|
36
11
|
}
|
|
@@ -1,6 +1,4 @@
|
|
|
1
1
|
import type { Application } from '../../declarations';
|
|
2
2
|
export declare const AUTOTUNE_DB_FILENAME = "optuna.db";
|
|
3
|
-
/** Returns the absolute filesystem path to the shared sqlite db, ensuring the parent dir exists. */
|
|
4
3
|
export declare function getAutotuneDbPath(app: Application): string;
|
|
5
|
-
/** Returns the Optuna RDB storage URL (sqlite:///<absolute path>). */
|
|
6
4
|
export declare function getAutotuneOptunaUrl(app: Application): string;
|
|
@@ -18,9 +18,6 @@ export declare class ChangelogService<ServiceParams extends ChangelogParams = Ch
|
|
|
18
18
|
options: ChangelogServiceOptions;
|
|
19
19
|
constructor(options: ChangelogServiceOptions);
|
|
20
20
|
find(params?: ServiceParams): Promise<Changelog[]>;
|
|
21
|
-
/**
|
|
22
|
-
* Parse changelog content from markdown string using remark
|
|
23
|
-
*/
|
|
24
21
|
private parseChangelogContent;
|
|
25
22
|
get(id: Id, _params?: ServiceParams): Promise<Changelog>;
|
|
26
23
|
create(data: ChangelogData, params?: ServiceParams): Promise<Changelog>;
|
|
@@ -1,27 +1,9 @@
|
|
|
1
1
|
import type { Changelog } from './changelog.schema';
|
|
2
|
-
/**
|
|
3
|
-
* Helper functions for working with changelog data
|
|
4
|
-
*/
|
|
5
2
|
export declare class ChangelogHelper {
|
|
6
|
-
/**
|
|
7
|
-
* Format changelog data for display in frontend
|
|
8
|
-
*/
|
|
9
3
|
static formatForDisplay(releases: Changelog[]): any[];
|
|
10
|
-
/**
|
|
11
|
-
* Filter releases by type
|
|
12
|
-
*/
|
|
13
4
|
static filterByReleaseType(releases: Changelog[], releaseType: 'major' | 'minor' | 'patch'): Changelog[];
|
|
14
|
-
/**
|
|
15
|
-
* Filter releases by date range
|
|
16
|
-
*/
|
|
17
5
|
static filterByDateRange(releases: Changelog[], startDate: Date, endDate: Date): Changelog[];
|
|
18
|
-
/**
|
|
19
|
-
* Get releases by scope (e.g., all releases that affect 'traders' scope)
|
|
20
|
-
*/
|
|
21
6
|
static filterByScope(releases: Changelog[], scope: string): Changelog[];
|
|
22
|
-
/**
|
|
23
|
-
* Get statistics about releases
|
|
24
|
-
*/
|
|
25
7
|
static getStatistics(releases: Changelog[]): {
|
|
26
8
|
total: number;
|
|
27
9
|
major: number;
|
|
@@ -32,17 +14,8 @@ export declare class ChangelogHelper {
|
|
|
32
14
|
commitsByScope: Record<string, number>;
|
|
33
15
|
averageCommitsPerRelease: number;
|
|
34
16
|
};
|
|
35
|
-
/**
|
|
36
|
-
* Search releases by text (in commit messages or scopes)
|
|
37
|
-
*/
|
|
38
17
|
static searchReleases(releases: Changelog[], searchTerm: string): Changelog[];
|
|
39
|
-
/**
|
|
40
|
-
* Generate markdown summary from changelog data
|
|
41
|
-
*/
|
|
42
18
|
static generateMarkdownSummary(releases: Changelog[], maxReleases?: number): string;
|
|
43
|
-
/**
|
|
44
|
-
* Validate changelog data structure
|
|
45
|
-
*/
|
|
46
19
|
static validateChangelog(data: any): {
|
|
47
20
|
isValid: boolean;
|
|
48
21
|
errors: string[];
|
|
@@ -1,8 +1,4 @@
|
|
|
1
1
|
import { HookContext } from '@feathersjs/feathers';
|
|
2
2
|
import type { Application } from '../../../declarations';
|
|
3
3
|
import type { ChangelogService } from '../changelog.class';
|
|
4
|
-
/**
|
|
5
|
-
* Hook to handle parsing CHANGELOG.md file when parseFromFile query parameter is used
|
|
6
|
-
* This hook will skip the normal database operation and return parsed markdown data
|
|
7
|
-
*/
|
|
8
4
|
export declare const parseChangelogFromFile: (context: HookContext<Application, ChangelogService>) => Promise<HookContext<Application, ChangelogService<import("../changelog.class").ChangelogParams>>>;
|
|
@@ -10,18 +10,8 @@ export interface ExchangesArbSignalsParams extends Params<ExchangesArbSignalsQue
|
|
|
10
10
|
export declare class ExchangesArbSignalsService<ServiceParams extends ExchangesArbSignalsParams = ExchangesArbSignalsParams> implements ServiceInterface<ExchangesArbSignals, ExchangesArbSignalsData, ServiceParams> {
|
|
11
11
|
options: ExchangesArbSignalsServiceOptions;
|
|
12
12
|
constructor(options: ExchangesArbSignalsServiceOptions);
|
|
13
|
-
/**
|
|
14
|
-
* find() — returns the latest arb signals snapshot from the analysis worker.
|
|
15
|
-
*/
|
|
16
13
|
find(_params?: ServiceParams): Promise<ExchangesArbSignals>;
|
|
17
|
-
/**
|
|
18
|
-
* create() — subscribe to the arb:signals Feathers channel.
|
|
19
|
-
* Joins the Socket.IO connection so it receives real-time push updates.
|
|
20
|
-
*/
|
|
21
14
|
create(_data: ExchangesArbSignalsData, params?: ServiceParams): Promise<any>;
|
|
22
|
-
/**
|
|
23
|
-
* remove() — unsubscribe from the arb:signals channel.
|
|
24
|
-
*/
|
|
25
15
|
remove(_id: NullableId, params?: ServiceParams): Promise<any>;
|
|
26
16
|
}
|
|
27
17
|
export declare const getOptions: (app: Application) => {
|
|
@@ -7,19 +7,9 @@ export interface ExchangesArbitrageOpportunitiesServiceOptions {
|
|
|
7
7
|
}
|
|
8
8
|
export interface ExchangesArbitrageOpportunitiesParams extends Params<ExchangesArbitrageOpportunitiesQuery> {
|
|
9
9
|
}
|
|
10
|
-
/**
|
|
11
|
-
* Reads closed paper-trade opportunities from the Valkey sorted set.
|
|
12
|
-
* Supports: find() with optional `since` (epoch ms) and `$limit` query params.
|
|
13
|
-
*/
|
|
14
10
|
export declare class ExchangesArbitrageOpportunitiesService<ServiceParams extends ExchangesArbitrageOpportunitiesParams = ExchangesArbitrageOpportunitiesParams> implements ServiceInterface<ExchangesArbitrageOpportunities, ExchangesArbitrageOpportunitiesData, ServiceParams> {
|
|
15
11
|
options: ExchangesArbitrageOpportunitiesServiceOptions;
|
|
16
12
|
constructor(options: ExchangesArbitrageOpportunitiesServiceOptions);
|
|
17
|
-
/**
|
|
18
|
-
* find() — return closed paper trades from Valkey.
|
|
19
|
-
* Query params:
|
|
20
|
-
* since — epoch ms (default: 7 days ago)
|
|
21
|
-
* $limit — max results (default 500, max 2000)
|
|
22
|
-
*/
|
|
23
13
|
find(params?: ServiceParams): Promise<ExchangesArbitrageOpportunities>;
|
|
24
14
|
}
|
|
25
15
|
export declare const getOptions: (app: Application) => {
|
|
@@ -10,11 +10,6 @@ export interface ExchangesMarketsStatsParams extends Params<ExchangesMarketsStat
|
|
|
10
10
|
export declare class ExchangesMarketsStatsService<ServiceParams extends ExchangesMarketsStatsParams = ExchangesMarketsStatsParams> implements ServiceInterface<ExchangesMarketsStats, ExchangesMarketsStatsData, ServiceParams> {
|
|
11
11
|
options: ExchangesMarketsStatsServiceOptions;
|
|
12
12
|
constructor(options: ExchangesMarketsStatsServiceOptions);
|
|
13
|
-
/**
|
|
14
|
-
* find() — returns realtime per-symbol stats (24h volume + listing date) for the
|
|
15
|
-
* requested exchange. Wrapped through the shared cache helper so we hit CCXT at
|
|
16
|
-
* most once per `CACHE_TTL_MS` per exchange across all instances.
|
|
17
|
-
*/
|
|
18
13
|
find(params?: ServiceParams): Promise<ExchangesMarketsStats>;
|
|
19
14
|
private _fetch;
|
|
20
15
|
}
|