@cryptorobot.ai/client 1.26.0-dev.999 → 1.28.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/lib/src/client.d.ts +0 -8
- package/lib/src/client.js +0 -10
- package/lib/src/services/advisor/advisor.class.d.ts +2 -2
- package/lib/src/services/advisor/advisor.schema.d.ts +1 -1
- package/lib/src/services/advisor/advisor.shared.js +0 -1
- package/lib/src/services/advisor/messages/messages.class.d.ts +2 -2
- package/lib/src/services/advisor/messages/messages.schema.d.ts +144 -144
- package/lib/src/services/advisor/messages/messages.shared.js +0 -1
- package/lib/src/services/affiliates/affiliates.class.d.ts +2 -5
- package/lib/src/services/affiliates/affiliates.shared.js +0 -1
- package/lib/src/services/affiliates/clicks/clicks.class.d.ts +2 -2
- package/lib/src/services/affiliates/clicks/clicks.shared.js +0 -1
- package/lib/src/services/affiliates/comissions/comissions.class.d.ts +2 -2
- package/lib/src/services/affiliates/comissions/comissions.shared.js +0 -1
- package/lib/src/services/affiliates/contracts/contracts.class.d.ts +2 -2
- package/lib/src/services/affiliates/contracts/contracts.shared.js +0 -1
- package/lib/src/services/affiliates/coupons/coupons.class.d.ts +2 -2
- package/lib/src/services/affiliates/coupons/coupons.shared.js +0 -1
- package/lib/src/services/affiliates/links/links.class.d.ts +2 -2
- package/lib/src/services/affiliates/links/links.shared.js +7 -2
- package/lib/src/services/affiliates/payouts/payouts.class.d.ts +2 -2
- package/lib/src/services/affiliates/payouts/payouts.shared.js +0 -1
- package/lib/src/services/agents/agents.class.d.ts +2 -2
- package/lib/src/services/agents/agents.schema.d.ts +1 -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.class.d.ts +2 -2
- package/lib/src/services/agents/sessions/conversations/conversations.schema.d.ts +85 -3
- package/lib/src/services/agents/sessions/conversations/conversations.shared.js +0 -1
- package/lib/src/services/agents/sessions/sessions.class.d.ts +2 -2
- package/lib/src/services/agents/sessions/sessions.schema.d.ts +143 -143
- 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.class.d.ts +2 -2
- package/lib/src/services/autotune/studies/studies.shared.js +0 -1
- package/lib/src/services/autotune/trials/trials.class.d.ts +2 -2
- package/lib/src/services/autotune/trials/trials.shared.js +0 -1
- package/lib/src/services/autotune/usage/usage.class.d.ts +2 -2
- package/lib/src/services/autotune/usage/usage.schema.d.ts +3 -3
- 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.class.d.ts +2 -2
- package/lib/src/services/config/config.shared.js +0 -1
- package/lib/src/services/copilot/concerns/concerns.class.d.ts +2 -2
- package/lib/src/services/copilot/concerns/concerns.schema.d.ts +8 -8
- package/lib/src/services/copilot/concerns/concerns.shared.js +7 -2
- package/lib/src/services/copilot/decisions/decisions.class.d.ts +2 -2
- 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.class.d.ts +2 -2
- package/lib/src/services/copilot/recommendations/recommendations.hooks.d.ts +4 -0
- package/lib/src/services/copilot/recommendations/recommendations.shared.js +0 -1
- package/lib/src/services/currencies/currencies.class.d.ts +2 -2
- 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.class.d.ts +2 -2
- package/lib/src/services/emails/emails.shared.js +0 -1
- package/lib/src/services/events/events.class.d.ts +2 -2
- package/lib/src/services/events/events.shared.js +0 -1
- package/lib/src/services/events/triggers/triggers.class.d.ts +2 -2
- package/lib/src/services/events/triggers/triggers.shared.js +0 -1
- package/lib/src/services/events/types/types.class.d.ts +2 -2
- 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.class.d.ts +2 -2
- package/lib/src/services/exchanges/balance/balance.shared.js +0 -1
- package/lib/src/services/exchanges/deposits/deposits.class.d.ts +2 -2
- package/lib/src/services/exchanges/deposits/deposits.shared.js +0 -1
- package/lib/src/services/exchanges/deposits/sync/sync.class.d.ts +2 -2
- package/lib/src/services/exchanges/deposits/sync/sync.shared.js +1 -8
- package/lib/src/services/exchanges/download/download.class.d.ts +2 -2
- package/lib/src/services/exchanges/download/download.shared.js +0 -1
- package/lib/src/services/exchanges/download/webhooks/webhooks.class.d.ts +2 -2
- package/lib/src/services/exchanges/download/webhooks/webhooks.shared.js +0 -1
- package/lib/src/services/exchanges/exchanges.class.d.ts +2 -2
- package/lib/src/services/exchanges/exchanges.shared.js +0 -1
- package/lib/src/services/exchanges/ledger/ledger.class.d.ts +2 -2
- package/lib/src/services/exchanges/ledger/ledger.shared.js +7 -2
- package/lib/src/services/exchanges/ledger/sync/sync.class.d.ts +2 -2
- 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.class.d.ts +2 -2
- 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.class.d.ts +2 -2
- package/lib/src/services/exchanges/ticker/ticker.shared.js +0 -1
- package/lib/src/services/exchanges/transactions/sync/sync.class.d.ts +2 -2
- package/lib/src/services/exchanges/transactions/sync/sync.shared.js +0 -1
- package/lib/src/services/exchanges/transactions/transactions.class.d.ts +2 -2
- package/lib/src/services/exchanges/transactions/transactions.shared.js +0 -1
- package/lib/src/services/extensions/extensions.class.d.ts +2 -2
- package/lib/src/services/extensions/extensions.shared.js +0 -1
- package/lib/src/services/homepage/homepage.shared.d.ts +2 -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 +2 -14
- package/lib/src/services/insights/crypto-stress-index/crypto-stress-index.shared.js +0 -1
- package/lib/src/services/insights/etf-flow/etf-flow.class.d.ts +2 -2
- package/lib/src/services/insights/etf-flow/etf-flow.shared.js +7 -2
- package/lib/src/services/insights/fear-and-greed/fear-and-greed.class.d.ts +2 -2
- package/lib/src/services/insights/fear-and-greed/fear-and-greed.shared.js +0 -1
- package/lib/src/services/insights/global/global.class.d.ts +2 -2
- package/lib/src/services/insights/global/global.shared.js +0 -1
- package/lib/src/services/insights/insights.class.d.ts +2 -2
- 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 +2 -5
- package/lib/src/services/insights/news/news.shared.js +0 -1
- package/lib/src/services/keys/KeysService.d.ts +2 -2
- package/lib/src/services/keys/keys.class.d.ts +2 -2
- 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.class.d.ts +2 -2
- package/lib/src/services/marketplaces/marketplaces.shared.js +0 -1
- package/lib/src/services/markets/markets.class.d.ts +2 -2
- package/lib/src/services/markets/markets.shared.js +0 -1
- package/lib/src/services/messages/messages.class.d.ts +2 -2
- package/lib/src/services/messages/messages.shared.js +0 -1
- package/lib/src/services/models/pods/events/events.class.d.ts +2 -2
- package/lib/src/services/models/pods/events/events.schema.d.ts +3 -3
- package/lib/src/services/models/pods/events/events.shared.js +0 -1
- package/lib/src/services/models/pods/pods.class.d.ts +2 -2
- package/lib/src/services/models/pods/pods.shared.js +0 -1
- package/lib/src/services/models/presets/presets.class.d.ts +2 -2
- package/lib/src/services/models/presets/presets.shared.js +0 -1
- package/lib/src/services/models/signals/history/history.class.d.ts +2 -2
- 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.class.d.ts +2 -2
- package/lib/src/services/models/signals/signals.shared.js +0 -1
- package/lib/src/services/models/signals/subscriptions/subscriptions.class.d.ts +2 -2
- package/lib/src/services/models/signals/subscriptions/subscriptions.schema.d.ts +3 -3
- package/lib/src/services/models/signals/subscriptions/subscriptions.shared.js +0 -3
- package/lib/src/services/objectives/objectives.class.d.ts +2 -2
- 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.class.d.ts +2 -2
- 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.schema.d.ts +71 -71
- package/lib/src/services/security/events/security-events.shared.js +0 -1
- package/lib/src/services/series/balance/balance.class.d.ts +2 -2
- package/lib/src/services/series/balance/balance.shared.js +7 -2
- package/lib/src/services/series/performance/performance.class.d.ts +2 -2
- 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.class.d.ts +2 -2
- package/lib/src/services/snapshot/snapshot.schema.d.ts +1040 -336
- package/lib/src/services/snapshot/snapshot.shared.js +0 -2
- package/lib/src/services/store/items/items.class.d.ts +2 -2
- package/lib/src/services/store/items/items.shared.js +0 -1
- package/lib/src/services/strategies/ai/ai.class.d.ts +2 -2
- 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.class.d.ts +2 -2
- package/lib/src/services/strategies/backtest/backtest.schema.d.ts +234 -134
- 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.class.d.ts +2 -2
- 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.class.d.ts +2 -2
- package/lib/src/services/strategies/follow/follow.shared.js +0 -1
- package/lib/src/services/strategies/generate/generate.class.d.ts +2 -2
- package/lib/src/services/strategies/generate/generate.schema.d.ts +80 -84
- package/lib/src/services/strategies/generate/generate.shared.js +0 -1
- package/lib/src/services/strategies/history/history.class.d.ts +2 -2
- package/lib/src/services/strategies/history/history.schema.d.ts +152 -152
- 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.class.d.ts +2 -2
- package/lib/src/services/strategies/hyperopt/hyperopt.shared.js +0 -1
- package/lib/src/services/strategies/indicators/indicators.class.d.ts +2 -2
- package/lib/src/services/strategies/indicators/indicators.shared.js +0 -1
- package/lib/src/services/strategies/indicators/talib/talib.class.d.ts +2 -2
- 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.class.d.ts +2 -2
- package/lib/src/services/strategies/research/research.schema.d.ts +72 -87
- package/lib/src/services/strategies/research/research.shared.js +0 -1
- package/lib/src/services/strategies/strategies.class.d.ts +2 -2
- package/lib/src/services/strategies/strategies.schema.d.ts +455 -36
- package/lib/src/services/strategies/strategies.shared.js +0 -1
- package/lib/src/services/strategies/templates/templates.class.d.ts +2 -2
- package/lib/src/services/strategies/templates/templates.schema.d.ts +2464 -0
- 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.class.d.ts +2 -2
- package/lib/src/services/tasks/comments/comments.shared.js +0 -1
- package/lib/src/services/tasks/tasks.class.d.ts +2 -2
- package/lib/src/services/tasks/tasks.hooks.d.ts +0 -73
- package/lib/src/services/tasks/tasks.shared.js +0 -1
- package/lib/src/services/tax/research/research.class.d.ts +2 -2
- package/lib/src/services/tax/research/research.shared.js +7 -2
- package/lib/src/services/tax/sessions/conversations/conversations.class.d.ts +2 -2
- package/lib/src/services/tax/sessions/conversations/conversations.shared.js +0 -1
- package/lib/src/services/tax/sessions/sessions.class.d.ts +2 -2
- package/lib/src/services/tax/sessions/sessions.schema.d.ts +72 -72
- package/lib/src/services/tax/sessions/sessions.shared.js +7 -2
- 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.class.d.ts +2 -2
- package/lib/src/services/tokens/tokens.schema.d.ts +72 -72
- package/lib/src/services/tokens/tokens.shared.js +0 -1
- package/lib/src/services/traders/pods/api/api.class.d.ts +2 -2
- package/lib/src/services/traders/pods/api/api.schema.d.ts +496 -48
- 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.class.d.ts +2 -2
- package/lib/src/services/traders/pods/events/events.schema.d.ts +144 -144
- package/lib/src/services/traders/pods/events/events.shared.js +0 -1
- package/lib/src/services/traders/pods/pods.class.d.ts +2 -2
- package/lib/src/services/traders/pods/pods.schema.d.ts +621 -117
- package/lib/src/services/traders/pods/pods.shared.js +0 -1
- package/lib/src/services/traders/pods/webhooks/webhooks.class.d.ts +2 -2
- package/lib/src/services/traders/pods/webhooks/webhooks.schema.d.ts +144 -144
- package/lib/src/services/traders/pods/webhooks/webhooks.shared.js +0 -1
- package/lib/src/services/traders/traders.class.d.ts +2 -2
- package/lib/src/services/traders/traders.shared.js +0 -1
- package/lib/src/services/trades/trades.class.d.ts +2 -2
- package/lib/src/services/trades/trades.shared.js +0 -1
- package/lib/src/services/users/access/access.class.d.ts +2 -2
- package/lib/src/services/users/access/access.schema.d.ts +70 -70
- package/lib/src/services/users/access/access.shared.js +7 -2
- package/lib/src/services/users/marketing/campaigns/12-bot-no-trades.campaign.d.ts +3 -0
- package/lib/src/services/users/marketing/campaigns/13-trial-ending-cold.campaign.d.ts +3 -0
- package/lib/src/services/users/marketing/campaigns/14-trial-ending-engaged.campaign.d.ts +3 -0
- package/lib/src/services/users/marketing/campaigns/15-eve-followup-14d.campaign.d.ts +3 -0
- package/lib/src/services/users/marketing/campaigns/16-eve-followup-30d.campaign.d.ts +3 -0
- package/lib/src/services/users/marketing/campaigns/trial.context.d.ts +1 -11
- package/lib/src/services/users/marketing/marketing.class.d.ts +2 -6
- 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.class.d.ts +2 -2
- 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 +70 -78
- 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/services/advisor/advisor.hooks.d.ts +0 -9
- package/lib/src/services/agents/sessions/conversations/conversations.hooks.d.ts +0 -11
- package/lib/src/services/agents/sessions/sessions.hooks.d.ts +0 -11
- package/lib/src/services/tax/sessions/conversations/conversations.hooks.d.ts +0 -11
- package/lib/src/services/tax/sessions/sessions.hooks.d.ts +0 -11
|
@@ -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;
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import type { Params } from '@feathersjs/feathers';
|
|
2
2
|
import type { MongoDBAdapterOptions, MongoDBAdapterParams } from '@feathersjs/mongodb';
|
|
3
|
-
import {
|
|
3
|
+
import { MongoDBService } from '@feathersjs/mongodb';
|
|
4
4
|
import type { Application } from '../../../declarations';
|
|
5
5
|
import type { AutotuneStudy, AutotuneStudyData, AutotuneStudyPatch, AutotuneStudyQuery } from './studies.schema';
|
|
6
6
|
export type { AutotuneStudy, AutotuneStudyData, AutotuneStudyPatch, AutotuneStudyQuery };
|
|
7
7
|
export interface AutotuneStudiesParams extends MongoDBAdapterParams<AutotuneStudyQuery> {
|
|
8
8
|
user?: any;
|
|
9
9
|
}
|
|
10
|
-
export declare class AutotuneStudiesService<ServiceParams extends Params = AutotuneStudiesParams> extends
|
|
10
|
+
export declare class AutotuneStudiesService<ServiceParams extends Params = AutotuneStudiesParams> extends MongoDBService<AutotuneStudy, AutotuneStudyData, AutotuneStudiesParams, AutotuneStudyPatch> {
|
|
11
11
|
}
|
|
12
12
|
export declare const getOptions: (app: Application) => MongoDBAdapterOptions;
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import type { Params } from '@feathersjs/feathers';
|
|
2
2
|
import type { MongoDBAdapterOptions, MongoDBAdapterParams } from '@feathersjs/mongodb';
|
|
3
|
-
import {
|
|
3
|
+
import { MongoDBService } from '@feathersjs/mongodb';
|
|
4
4
|
import type { Application } from '../../../declarations';
|
|
5
5
|
import type { AutotuneTrial, AutotuneTrialData, AutotuneTrialPatch, AutotuneTrialQuery } from './trials.schema';
|
|
6
6
|
export type { AutotuneTrial, AutotuneTrialData, AutotuneTrialPatch, AutotuneTrialQuery };
|
|
7
7
|
export interface AutotuneTrialsParams extends MongoDBAdapterParams<AutotuneTrialQuery> {
|
|
8
8
|
user?: any;
|
|
9
9
|
}
|
|
10
|
-
export declare class AutotuneTrialsService<ServiceParams extends Params = AutotuneTrialsParams> extends
|
|
10
|
+
export declare class AutotuneTrialsService<ServiceParams extends Params = AutotuneTrialsParams> extends MongoDBService<AutotuneTrial, AutotuneTrialData, AutotuneTrialsParams, AutotuneTrialPatch> {
|
|
11
11
|
}
|
|
12
12
|
export declare const getOptions: (app: Application) => MongoDBAdapterOptions;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import type { Params } from '@feathersjs/feathers';
|
|
2
2
|
import type { MongoDBAdapterOptions, MongoDBAdapterParams } from '@feathersjs/mongodb';
|
|
3
|
-
import {
|
|
3
|
+
import { MongoDBService } from '@feathersjs/mongodb';
|
|
4
4
|
import type { Application } from '../../../declarations';
|
|
5
5
|
import type { AutotuneUsage, AutotuneUsageData, AutotuneUsagePatch, AutotuneUsageQuery } from './usage.schema';
|
|
6
6
|
export type { AutotuneUsage, AutotuneUsageData, AutotuneUsagePatch, AutotuneUsageQuery };
|
|
7
7
|
export interface AutotuneUsageParams extends MongoDBAdapterParams<AutotuneUsageQuery> {
|
|
8
8
|
}
|
|
9
|
-
export declare class AutotuneUsageService<ServiceParams extends Params = AutotuneUsageParams> extends
|
|
9
|
+
export declare class AutotuneUsageService<ServiceParams extends Params = AutotuneUsageParams> extends MongoDBService<AutotuneUsage, AutotuneUsageData, AutotuneUsageParams, AutotuneUsagePatch> {
|
|
10
10
|
}
|
|
11
11
|
export declare const getOptions: (app: Application) => MongoDBAdapterOptions;
|
|
@@ -61,9 +61,9 @@ export declare const autotuneUsageExternalResolver: import("@feathersjs/schema")
|
|
|
61
61
|
createdAt: any;
|
|
62
62
|
}, HookContext<AutotuneUsageService<import("./usage.class").AutotuneUsageParams>>>;
|
|
63
63
|
export declare const autotuneUsageDataSchema: import("@feathersjs/typebox").TObject<{
|
|
64
|
-
userId: import("@feathersjs/typebox").TUnion<[import("@feathersjs/typebox").
|
|
65
|
-
studyId: import("@feathersjs/typebox").TOptional<import("@feathersjs/typebox").TUnion<[import("@feathersjs/typebox").TUnion<[import("@feathersjs/typebox").TString<string>, import("@feathersjs/typebox").TObject<{}>]>, import("@feathersjs/typebox").
|
|
66
|
-
trialId: import("@feathersjs/typebox").TOptional<import("@feathersjs/typebox").TUnion<[import("@feathersjs/typebox").TUnion<[import("@feathersjs/typebox").TString<string>, import("@feathersjs/typebox").TObject<{}>]>, import("@feathersjs/typebox").
|
|
64
|
+
userId: import("@feathersjs/typebox").TUnion<[import("@feathersjs/typebox").TString<string>, import("@feathersjs/typebox").TObject<{}>]>;
|
|
65
|
+
studyId: import("@feathersjs/typebox").TOptional<import("@feathersjs/typebox").TUnion<[import("@feathersjs/typebox").TUnion<[import("@feathersjs/typebox").TString<string>, import("@feathersjs/typebox").TObject<{}>]>, import("@feathersjs/typebox").TNull]>>;
|
|
66
|
+
trialId: import("@feathersjs/typebox").TOptional<import("@feathersjs/typebox").TUnion<[import("@feathersjs/typebox").TUnion<[import("@feathersjs/typebox").TString<string>, import("@feathersjs/typebox").TObject<{}>]>, import("@feathersjs/typebox").TNull]>>;
|
|
67
67
|
provider: import("@feathersjs/typebox").TUnion<[import("@feathersjs/typebox").TLiteral<"batch">, import("@feathersjs/typebox").TLiteral<"docker">, import("@feathersjs/typebox").TLiteral<"ecs">, import("@feathersjs/typebox").TLiteral<"nomad">]>;
|
|
68
68
|
state: import("@feathersjs/typebox").TUnion<[import("@feathersjs/typebox").TLiteral<"reserved">, import("@feathersjs/typebox").TLiteral<"settled">, import("@feathersjs/typebox").TLiteral<"voided">]>;
|
|
69
69
|
source: import("@feathersjs/typebox").TUnion<[import("@feathersjs/typebox").TLiteral<"estimate">, import("@feathersjs/typebox").TLiteral<"aws-batch">, import("@feathersjs/typebox").TLiteral<"docker-events">, import("@feathersjs/typebox").TLiteral<"nomad-callback">, import("@feathersjs/typebox").TLiteral<"system">]>;
|
|
@@ -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>>>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { Params } from '@feathersjs/feathers';
|
|
2
2
|
import type { MongoDBAdapterOptions, MongoDBAdapterParams } from '@feathersjs/mongodb';
|
|
3
|
-
import {
|
|
3
|
+
import { MongoDBService } from '@feathersjs/mongodb';
|
|
4
4
|
import type { Application } from '../../declarations';
|
|
5
5
|
type Config = any;
|
|
6
6
|
type ConfigData = any;
|
|
@@ -9,6 +9,6 @@ type ConfigQuery = any;
|
|
|
9
9
|
export type { Config, ConfigData, ConfigPatch, ConfigQuery };
|
|
10
10
|
export interface ConfigParams extends MongoDBAdapterParams<ConfigQuery> {
|
|
11
11
|
}
|
|
12
|
-
export declare class ConfigService<ServiceParams extends Params = ConfigParams> extends
|
|
12
|
+
export declare class ConfigService<ServiceParams extends Params = ConfigParams> extends MongoDBService<Config, ConfigData, ConfigParams, ConfigPatch> {
|
|
13
13
|
}
|
|
14
14
|
export declare const getOptions: (app: Application) => MongoDBAdapterOptions;
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import type { Params } from '@feathersjs/feathers';
|
|
2
2
|
import type { MongoDBAdapterOptions, MongoDBAdapterParams } from '@feathersjs/mongodb';
|
|
3
|
-
import {
|
|
3
|
+
import { MongoDBService } from '@feathersjs/mongodb';
|
|
4
4
|
import type { Application } from '../../../declarations';
|
|
5
5
|
import type { CopilotConcerns, CopilotConcernsData, CopilotConcernsPatch, CopilotConcernsQuery } from './concerns.schema';
|
|
6
6
|
export type { CopilotConcerns, CopilotConcernsData, CopilotConcernsPatch, CopilotConcernsQuery };
|
|
7
7
|
export interface CopilotConcernsParams extends MongoDBAdapterParams<CopilotConcernsQuery> {
|
|
8
8
|
}
|
|
9
|
-
export declare class CopilotConcernsService<ServiceParams extends Params = CopilotConcernsParams> extends
|
|
9
|
+
export declare class CopilotConcernsService<ServiceParams extends Params = CopilotConcernsParams> extends MongoDBService<CopilotConcerns, CopilotConcernsData, CopilotConcernsParams, CopilotConcernsPatch> {
|
|
10
10
|
setup(): Promise<void>;
|
|
11
11
|
}
|
|
12
12
|
export declare const getOptions: (app: Application) => MongoDBAdapterOptions;
|
|
@@ -9,7 +9,7 @@ export declare const copilotConcernsSchema: import("@feathersjs/typebox").TObjec
|
|
|
9
9
|
title: import("@feathersjs/typebox").TString<string>;
|
|
10
10
|
description: import("@feathersjs/typebox").TString<string>;
|
|
11
11
|
severity: import("@feathersjs/typebox").TUnion<[import("@feathersjs/typebox").TLiteral<"info">, import("@feathersjs/typebox").TLiteral<"warning">, import("@feathersjs/typebox").TLiteral<"critical">]>;
|
|
12
|
-
traderId: import("@feathersjs/typebox").TOptional<import("@feathersjs/typebox").TString<string>>;
|
|
12
|
+
traderId: import("@feathersjs/typebox").TOptional<import("@feathersjs/typebox").TUnion<[import("@feathersjs/typebox").TString<string>, import("@feathersjs/typebox").TObject<{}>]>>;
|
|
13
13
|
value: import("@feathersjs/typebox").TOptional<import("@feathersjs/typebox").TNumber>;
|
|
14
14
|
status: import("@feathersjs/typebox").TUnion<[import("@feathersjs/typebox").TLiteral<"active">, import("@feathersjs/typebox").TLiteral<"resolved">, import("@feathersjs/typebox").TLiteral<"acknowledged">]>;
|
|
15
15
|
createdAt: import("@feathersjs/typebox").TString<"date-time">;
|
|
@@ -25,7 +25,7 @@ export declare const copilotConcernsResolver: import("@feathersjs/schema").Resol
|
|
|
25
25
|
title: string;
|
|
26
26
|
description: string;
|
|
27
27
|
severity: "critical" | "info" | "warning";
|
|
28
|
-
traderId?: string | undefined;
|
|
28
|
+
traderId?: string | {} | undefined;
|
|
29
29
|
value?: number | undefined;
|
|
30
30
|
status: "acknowledged" | "active" | "resolved";
|
|
31
31
|
createdAt: string;
|
|
@@ -39,7 +39,7 @@ export declare const copilotConcernsExternalResolver: import("@feathersjs/schema
|
|
|
39
39
|
title: string;
|
|
40
40
|
description: string;
|
|
41
41
|
severity: "critical" | "info" | "warning";
|
|
42
|
-
traderId?: string | undefined;
|
|
42
|
+
traderId?: string | {} | undefined;
|
|
43
43
|
value?: number | undefined;
|
|
44
44
|
status: "acknowledged" | "active" | "resolved";
|
|
45
45
|
createdAt: string;
|
|
@@ -53,7 +53,7 @@ export declare const copilotConcernsDataSchema: import("@feathersjs/typebox").TO
|
|
|
53
53
|
title: import("@feathersjs/typebox").TString<string>;
|
|
54
54
|
description: import("@feathersjs/typebox").TString<string>;
|
|
55
55
|
severity: import("@feathersjs/typebox").TUnion<[import("@feathersjs/typebox").TLiteral<"info">, import("@feathersjs/typebox").TLiteral<"warning">, import("@feathersjs/typebox").TLiteral<"critical">]>;
|
|
56
|
-
traderId: import("@feathersjs/typebox").TOptional<import("@feathersjs/typebox").TString<string>>;
|
|
56
|
+
traderId: import("@feathersjs/typebox").TOptional<import("@feathersjs/typebox").TUnion<[import("@feathersjs/typebox").TString<string>, import("@feathersjs/typebox").TObject<{}>]>>;
|
|
57
57
|
value: import("@feathersjs/typebox").TOptional<import("@feathersjs/typebox").TNumber>;
|
|
58
58
|
status: import("@feathersjs/typebox").TUnion<[import("@feathersjs/typebox").TLiteral<"active">, import("@feathersjs/typebox").TLiteral<"resolved">, import("@feathersjs/typebox").TLiteral<"acknowledged">]>;
|
|
59
59
|
createdAt: import("@feathersjs/typebox").TString<"date-time">;
|
|
@@ -69,7 +69,7 @@ export declare const copilotConcernsDataResolver: import("@feathersjs/schema").R
|
|
|
69
69
|
title: string;
|
|
70
70
|
description: string;
|
|
71
71
|
severity: "critical" | "info" | "warning";
|
|
72
|
-
traderId?: string | undefined;
|
|
72
|
+
traderId?: string | {} | undefined;
|
|
73
73
|
value?: number | undefined;
|
|
74
74
|
status: "acknowledged" | "active" | "resolved";
|
|
75
75
|
createdAt: string;
|
|
@@ -83,7 +83,7 @@ export declare const copilotConcernsPatchSchema: import("@feathersjs/typebox").T
|
|
|
83
83
|
title: import("@feathersjs/typebox").TString<string>;
|
|
84
84
|
description: import("@feathersjs/typebox").TString<string>;
|
|
85
85
|
severity: import("@feathersjs/typebox").TUnion<[import("@feathersjs/typebox").TLiteral<"info">, import("@feathersjs/typebox").TLiteral<"warning">, import("@feathersjs/typebox").TLiteral<"critical">]>;
|
|
86
|
-
traderId: import("@feathersjs/typebox").TOptional<import("@feathersjs/typebox").TString<string>>;
|
|
86
|
+
traderId: import("@feathersjs/typebox").TOptional<import("@feathersjs/typebox").TUnion<[import("@feathersjs/typebox").TString<string>, import("@feathersjs/typebox").TObject<{}>]>>;
|
|
87
87
|
value: import("@feathersjs/typebox").TOptional<import("@feathersjs/typebox").TNumber>;
|
|
88
88
|
status: import("@feathersjs/typebox").TUnion<[import("@feathersjs/typebox").TLiteral<"active">, import("@feathersjs/typebox").TLiteral<"resolved">, import("@feathersjs/typebox").TLiteral<"acknowledged">]>;
|
|
89
89
|
createdAt: import("@feathersjs/typebox").TString<"date-time">;
|
|
@@ -99,7 +99,7 @@ export declare const copilotConcernsPatchResolver: import("@feathersjs/schema").
|
|
|
99
99
|
title: string;
|
|
100
100
|
description: string;
|
|
101
101
|
severity: "critical" | "info" | "warning";
|
|
102
|
-
traderId?: string | undefined;
|
|
102
|
+
traderId?: string | {} | undefined;
|
|
103
103
|
value?: number | undefined;
|
|
104
104
|
status: "acknowledged" | "active" | "resolved";
|
|
105
105
|
createdAt: string;
|
|
@@ -113,7 +113,7 @@ export declare const copilotConcernsQueryProperties: import("@feathersjs/typebox
|
|
|
113
113
|
title: import("@feathersjs/typebox").TString<string>;
|
|
114
114
|
description: import("@feathersjs/typebox").TString<string>;
|
|
115
115
|
severity: import("@feathersjs/typebox").TUnion<[import("@feathersjs/typebox").TLiteral<"info">, import("@feathersjs/typebox").TLiteral<"warning">, import("@feathersjs/typebox").TLiteral<"critical">]>;
|
|
116
|
-
traderId: import("@feathersjs/typebox").TOptional<import("@feathersjs/typebox").TString<string>>;
|
|
116
|
+
traderId: import("@feathersjs/typebox").TOptional<import("@feathersjs/typebox").TUnion<[import("@feathersjs/typebox").TString<string>, import("@feathersjs/typebox").TObject<{}>]>>;
|
|
117
117
|
value: import("@feathersjs/typebox").TOptional<import("@feathersjs/typebox").TNumber>;
|
|
118
118
|
status: import("@feathersjs/typebox").TUnion<[import("@feathersjs/typebox").TLiteral<"active">, import("@feathersjs/typebox").TLiteral<"resolved">, import("@feathersjs/typebox").TLiteral<"acknowledged">]>;
|
|
119
119
|
createdAt: import("@feathersjs/typebox").TString<"date-time">;
|
|
@@ -2,7 +2,13 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.copilotConcernsClient = exports.copilotConcernsMethods = exports.copilotConcernsPath = void 0;
|
|
4
4
|
exports.copilotConcernsPath = 'copilot/concerns';
|
|
5
|
-
exports.copilotConcernsMethods = [
|
|
5
|
+
exports.copilotConcernsMethods = [
|
|
6
|
+
'find',
|
|
7
|
+
'get',
|
|
8
|
+
'create',
|
|
9
|
+
'patch',
|
|
10
|
+
'remove'
|
|
11
|
+
];
|
|
6
12
|
const copilotConcernsClient = (client) => {
|
|
7
13
|
const connection = client.get('connection');
|
|
8
14
|
client.use(exports.copilotConcernsPath, connection.service(exports.copilotConcernsPath), {
|
|
@@ -10,4 +16,3 @@ const copilotConcernsClient = (client) => {
|
|
|
10
16
|
});
|
|
11
17
|
};
|
|
12
18
|
exports.copilotConcernsClient = copilotConcernsClient;
|
|
13
|
-
//# sourceMappingURL=concerns.shared.js.map
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import type { Params } from '@feathersjs/feathers';
|
|
2
2
|
import type { MongoDBAdapterOptions, MongoDBAdapterParams } from '@feathersjs/mongodb';
|
|
3
|
-
import {
|
|
3
|
+
import { MongoDBService } from '@feathersjs/mongodb';
|
|
4
4
|
import type { Application } from '../../../declarations';
|
|
5
5
|
import type { CopilotDecisions, CopilotDecisionsData, CopilotDecisionsPatch, CopilotDecisionsQuery } from './decisions.schema';
|
|
6
6
|
export type { CopilotDecisions, CopilotDecisionsData, CopilotDecisionsPatch, CopilotDecisionsQuery };
|
|
7
7
|
export interface CopilotDecisionsParams extends MongoDBAdapterParams<CopilotDecisionsQuery> {
|
|
8
8
|
}
|
|
9
|
-
export declare class CopilotDecisionsService<ServiceParams extends Params = CopilotDecisionsParams> extends
|
|
9
|
+
export declare class CopilotDecisionsService<ServiceParams extends Params = CopilotDecisionsParams> extends MongoDBService<CopilotDecisions, CopilotDecisionsData, CopilotDecisionsParams, CopilotDecisionsPatch> {
|
|
10
10
|
setup(): Promise<void>;
|
|
11
11
|
}
|
|
12
12
|
export declare const getOptions: (app: Application) => MongoDBAdapterOptions;
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import type { Params } from '@feathersjs/feathers';
|
|
2
2
|
import type { MongoDBAdapterOptions, MongoDBAdapterParams } from '@feathersjs/mongodb';
|
|
3
|
-
import {
|
|
3
|
+
import { MongoDBService } from '@feathersjs/mongodb';
|
|
4
4
|
import type { Application } from '../../../declarations';
|
|
5
5
|
import type { CopilotRecommendations, CopilotRecommendationsData, CopilotRecommendationsPatch, CopilotRecommendationsQuery } from './recommendations.schema';
|
|
6
6
|
export type { CopilotRecommendations, CopilotRecommendationsData, CopilotRecommendationsPatch, CopilotRecommendationsQuery };
|
|
7
7
|
export interface CopilotRecommendationsParams extends MongoDBAdapterParams<CopilotRecommendationsQuery> {
|
|
8
8
|
}
|
|
9
|
-
export declare class CopilotRecommendationsService<ServiceParams extends Params = CopilotRecommendationsParams> extends
|
|
9
|
+
export declare class CopilotRecommendationsService<ServiceParams extends Params = CopilotRecommendationsParams> extends MongoDBService<CopilotRecommendations, CopilotRecommendationsData, CopilotRecommendationsParams, CopilotRecommendationsPatch> {
|
|
10
10
|
setup(): Promise<void>;
|
|
11
11
|
}
|
|
12
12
|
export declare const getOptions: (app: Application) => MongoDBAdapterOptions;
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
export declare const MAX_PENDING_RECOMMENDATIONS = 5;
|
|
2
|
+
export declare const RECOMMENDATION_EMAIL_COOLDOWN_MS: number;
|
|
3
|
+
export declare const enforcePendingCap: (context: any) => Promise<any>;
|
|
4
|
+
export declare const notifyOnRecommendationCreate: (context: any) => Promise<any>;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import type { Params } from '@feathersjs/feathers';
|
|
2
2
|
import type { MongoDBAdapterOptions, MongoDBAdapterParams } from '@feathersjs/mongodb';
|
|
3
|
-
import {
|
|
3
|
+
import { MongoDBService } from '@feathersjs/mongodb';
|
|
4
4
|
import type { Application } from '../../declarations';
|
|
5
5
|
import type { Currencies, CurrenciesData, CurrenciesPatch, CurrenciesQuery } from './currencies.schema';
|
|
6
6
|
export type { Currencies, CurrenciesData, CurrenciesPatch, CurrenciesQuery };
|
|
7
7
|
export interface CurrenciesParams extends MongoDBAdapterParams<CurrenciesQuery> {
|
|
8
8
|
}
|
|
9
|
-
export declare class CurrenciesService<ServiceParams extends Params = CurrenciesParams> extends
|
|
9
|
+
export declare class CurrenciesService<ServiceParams extends Params = CurrenciesParams> extends MongoDBService<Currencies, CurrenciesData, CurrenciesParams, CurrenciesPatch> {
|
|
10
10
|
}
|
|
11
11
|
export declare const getOptions: (app: Application) => MongoDBAdapterOptions;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import type { Params } from '@feathersjs/feathers';
|
|
2
2
|
import type { MongoDBAdapterOptions, MongoDBAdapterParams } from '@feathersjs/mongodb';
|
|
3
|
-
import {
|
|
3
|
+
import { MongoDBService } from '@feathersjs/mongodb';
|
|
4
4
|
import type { Application } from '../../declarations';
|
|
5
5
|
import type { Emails, EmailsData, EmailsPatch, EmailsQuery } from './emails.schema';
|
|
6
6
|
export type { Emails, EmailsData, EmailsPatch, EmailsQuery };
|
|
7
7
|
export interface EmailsParams extends MongoDBAdapterParams<EmailsQuery> {
|
|
8
8
|
}
|
|
9
|
-
export declare class EmailsService<ServiceParams extends Params = EmailsParams> extends
|
|
9
|
+
export declare class EmailsService<ServiceParams extends Params = EmailsParams> extends MongoDBService<Emails, EmailsData, EmailsParams, EmailsPatch> {
|
|
10
10
|
}
|
|
11
11
|
export declare const getOptions: (app: Application) => MongoDBAdapterOptions;
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import type { Params } from '@feathersjs/feathers';
|
|
2
2
|
import type { MongoDBAdapterOptions, MongoDBAdapterParams } from '@feathersjs/mongodb';
|
|
3
|
-
import {
|
|
3
|
+
import { MongoDBService } from '@feathersjs/mongodb';
|
|
4
4
|
import type { Application } from '../../declarations';
|
|
5
5
|
import type { Events, EventsData, EventsPatch, EventsQuery } from './events.schema';
|
|
6
6
|
export type { Events, EventsData, EventsPatch, EventsQuery };
|
|
7
7
|
export interface EventsParams extends MongoDBAdapterParams<EventsQuery> {
|
|
8
8
|
user?: any;
|
|
9
9
|
}
|
|
10
|
-
export declare class EventsService<ServiceParams extends Params = EventsParams> extends
|
|
10
|
+
export declare class EventsService<ServiceParams extends Params = EventsParams> extends MongoDBService<Events, EventsData, EventsParams, EventsPatch> {
|
|
11
11
|
}
|
|
12
12
|
export declare const getOptions: (app: Application) => MongoDBAdapterOptions;
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import type { Params } from '@feathersjs/feathers';
|
|
2
2
|
import type { MongoDBAdapterOptions, MongoDBAdapterParams } from '@feathersjs/mongodb';
|
|
3
|
-
import {
|
|
3
|
+
import { MongoDBService } from '@feathersjs/mongodb';
|
|
4
4
|
import type { Application } from '../../../declarations';
|
|
5
5
|
import type { EventsTriggers, EventsTriggersData, EventsTriggersPatch, EventsTriggersQuery } from './triggers.schema';
|
|
6
6
|
export type { EventsTriggers, EventsTriggersData, EventsTriggersPatch, EventsTriggersQuery };
|
|
7
7
|
export interface EventsTriggersParams extends MongoDBAdapterParams<EventsTriggersQuery> {
|
|
8
8
|
user?: any;
|
|
9
9
|
}
|
|
10
|
-
export declare class EventsTriggersService<ServiceParams extends Params = EventsTriggersParams> extends
|
|
10
|
+
export declare class EventsTriggersService<ServiceParams extends Params = EventsTriggersParams> extends MongoDBService<EventsTriggers, EventsTriggersData, EventsTriggersParams, EventsTriggersPatch> {
|
|
11
11
|
}
|
|
12
12
|
export declare const getOptions: (app: Application) => MongoDBAdapterOptions;
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import type { Params } from '@feathersjs/feathers';
|
|
2
2
|
import type { MongoDBAdapterOptions, MongoDBAdapterParams } from '@feathersjs/mongodb';
|
|
3
|
-
import {
|
|
3
|
+
import { MongoDBService } from '@feathersjs/mongodb';
|
|
4
4
|
import type { Application } from '../../../declarations';
|
|
5
5
|
import type { EventsTypes, EventsTypesData, EventsTypesPatch, EventsTypesQuery } from './types.schema';
|
|
6
6
|
export type { EventsTypes, EventsTypesData, EventsTypesPatch, EventsTypesQuery };
|
|
7
7
|
export interface EventsTypesParams extends MongoDBAdapterParams<EventsTypesQuery> {
|
|
8
8
|
user?: any;
|
|
9
9
|
}
|
|
10
|
-
export declare class EventsTypesService<ServiceParams extends Params = EventsTypesParams> extends
|
|
10
|
+
export declare class EventsTypesService<ServiceParams extends Params = EventsTypesParams> extends MongoDBService<EventsTypes, EventsTypesData, EventsTypesParams, EventsTypesPatch> {
|
|
11
11
|
}
|
|
12
12
|
export declare const getOptions: (app: Application) => MongoDBAdapterOptions;
|
|
@@ -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) => {
|