MCPcopy Create free account

hub / github.com/NoFxAiOS/nofx / functions

Functions2,846 in github.com/NoFxAiOS/nofx

FunctionDefaultClient
DefaultClient returns the singleton default client
provider/nofxos/client.go:37
MethodDelete
Delete removes a user-owned AI model configuration.
store/ai_model.go:351
MethodDelete
Delete delete a strategy
store/strategy.go:1094
MethodDeleteAll
DeleteAll deletes all users (reset system to uninitialized state)
store/user.go:116
MethodDeleteGridConfig
DeleteGridConfig deletes a grid configuration and all related data
store/grid.go:297
MethodDeleteGridLevels
DeleteGridLevels deletes all levels for an instance
store/grid.go:403
FunctionDeploymentHub
()
web/src/components/landing/core/DeploymentHub.tsx:5
FunctionDetailMetricCard
({ label, value, note, tone = 'neutral', }: { label: string value: string note?: string tone?:
web/src/pages/StrategyStudioPage.tsx:534
FunctionDirectionStatsCard
({ stat, language }: { stat: DirectionStats; language: Language })
web/src/components/trader/PositionHistory.tsx:155
MethodDriver
Driver returns database driver for abstraction (legacy)
store/store.go:327
MethodEnsureAdmin
EnsureAdmin ensures admin user exists
store/user.go:121
FunctionEquityChart
({ traderId, embedded = false }: EquityChartProps)
web/src/components/charts/EquityChart.tsx:39
FunctionError
(args ...interface{})
logger/logger.go:161
MethodErrorf
(format string, args ...any)
logger/logger.go:210
MethodErrorf
(format string, args ...any)
mcp/examples_test.go:89
MethodErrorf
(format string, args ...any)
mcp/logger.go:19
MethodErrorf
(format string, args ...any)
mcp/mock_test.go:50
FunctionExample_backward_compatible
============================================================ Example 1: Basic Usage (Backward Compatible) ============================================
mcp/examples_test.go:16
FunctionExample_custom_http_client
============================================================ Example 4: Custom HTTP Client ===========================================================
mcp/examples_test.go:120
FunctionExample_custom_logger
()
mcp/examples_test.go:93
FunctionExample_deepseek_backward_compatible
()
mcp/examples_test.go:26
FunctionExample_deepseek_new_api
============================================================ Example 5: DeepSeek Client (New API) ====================================================
mcp/examples_test.go:143
FunctionExample_environment_specific
============================================================ Example 9: Environment-Specific Configuration ===========================================
mcp/examples_test.go:246
FunctionExample_new_client_basic
============================================================ Example 2: New Recommended Usage (Options Pattern) ======================================
mcp/examples_test.go:39
FunctionExample_new_client_with_options
()
mcp/examples_test.go:56
FunctionExample_no_logger_for_testing
()
mcp/examples_test.go:106
FunctionExample_qwen_new_api
============================================================ Example 6: Qwen Client (New API) ========================================================
mcp/examples_test.go:165
FunctionExample_real_world_usage
============================================================ Example 10: Complete Real-World Example =================================================
mcp/examples_test.go:268
FunctionExample_testing_with_mock
()
mcp/examples_test.go:233
FunctionExample_trader_migration
============================================================ Example 7: Migration Example in trader/auto_trader.go ===================================
mcp/examples_test.go:186
FunctionExchangeCard
({ template, selected, onClick, disabled, }: { template: typeof SUPPORTED_EXCHANGE_TEMPLATES[0] se
web/src/components/trader/ExchangeConfigModal.tsx:100
FunctionExchangeConfigModal
({ allExchanges, editingExchangeId, initialExchangeType, onSave, onDelete, onClose, language, }:
web/src/components/trader/ExchangeConfigModal.tsx:149
FunctionExchangeImage
({ width = 24, height = 24, className, src, alt, })
web/src/components/common/ExchangeIcons.tsx:24
FunctionExecutionLog
({ decisions, height = 440 }: ExecutionLogProps)
web/src/components/terminal/ExecutionLog.tsx:104
FunctionExportCalculateATR
ExportCalculateATR exports calculateATR for testing
market/data_indicators.go:218
FunctionExportCalculateBOLL
ExportCalculateBOLL exports calculateBOLL for testing
market/data_indicators.go:223
FunctionExportCalculateEMA
========== Exported indicator calculation functions (for testing) ========== ExportCalculateEMA exports calculateEMA for testing
market/data_indicators.go:203
FunctionExportCalculateMACD
ExportCalculateMACD exports calculateMACD for testing
market/data_indicators.go:208
FunctionExportCalculateRSI
ExportCalculateRSI exports calculateRSI for testing
market/data_indicators.go:213
FunctionExtractAuthKey
ExtractAuthKey extracts auth key from a URL string
provider/nofxos/client.go:152
FunctionFAQContent
({ categories, language, onActiveItemChange, }: FAQContentProps)
web/src/components/faq/FAQContent.tsx:12
FunctionFAQLayout
({ language }: FAQLayoutProps)
web/src/components/faq/FAQLayout.tsx:15
FunctionFAQPage
()
web/src/pages/FAQPage.tsx:17
FunctionFAQSearchBar
({ searchTerm, onSearchChange, placeholder = 'Search FAQ...', }: FAQSearchBarProps)
web/src/components/faq/FAQSearchBar.tsx:9
FunctionFAQSidebar
({ categories, activeItemId, language, onItemClick, }: FAQSidebarProps)
web/src/components/faq/FAQSidebar.tsx:11
FunctionFallbackIcon
({ width = 24, height = 24, className, label, })
web/src/components/common/ExchangeIcons.tsx:55
FunctionFatal
(args ...interface{})
logger/logger.go:169
FunctionFeaturesSection
({ language }: FeaturesSectionProps)
web/src/components/landing/FeaturesSection.tsx:9
MethodFetchExternalData
FetchExternalData fetches external data sources
kernel/engine.go:938
MethodFetchMarketData
============================================================================ External & Quant Data ===================================================
kernel/engine.go:933
FunctionFlowMarkets
({ items, window = '1h' }: FlowMarketsProps)
web/src/components/terminal/FlowMarkets.tsx:35
FunctionFooterSection
({ language }: FooterSectionProps)
web/src/components/landing/FooterSection.tsx:9
FunctionForTrader
ForTrader returns a scope that filters by trader_id
store/gorm.go:116
FunctionForUser
============================================================================ Query Scopes - Reusable query helpers ===================================
store/gorm.go:109
MethodForceRefresh
ForceRefresh forces a refresh of the coin cache
provider/hyperliquid/coins.go:326
FunctionFormat
Format formats and outputs market data
market/data.go:346
FunctionFormatContextDataOnly
FormatContextDataOnly formats context data only, without schema (for use when schema is already present)
kernel/formatter.go:34
FunctionFormatQuantDataForAI
FormatQuantDataForAI formats single coin quant data for AI consumption
provider/nofxos/coin.go:107
MethodFormatQuantity
FormatQuantity formats quantity to correct precision
trader/kucoin/trader_orders.go:549
MethodFormatQuantity
FormatQuantity Format quantity to correct precision (implements Trader interface)
trader/lighter/account.go:369
MethodFormatQuantity
FormatQuantity Format quantity (implements Trader interface)
trader/aster/trader_orders.go:597
MethodFormatQuantity
FormatQuantity formats quantity to correct precision for Indodax
trader/indodax/trader_orders.go:229
MethodFormatQuantity
FormatQuantity formats quantity to correct precision
trader/hyperliquid/trader.go:222
MethodFormatQuantity
FormatQuantity formats quantity to correct precision
trader/gate/trader_orders.go:488
MethodFormatQuantity
FormatQuantity formats quantity (converts base asset quantity to contract count)
trader/okx/trader.go:278
FunctionFormulaRenderer
({ formula, displayMode = true }: FormulaRendererProps)
web/src/components/common/MetricTooltip.tsx:146
FunctionGaugeRow
({ zh, en, value, sub, fill, color, verdict, valueColor }: GaugeRowProps)
web/src/components/terminal/RiskRadar.tsx:359
MethodGenerateAndRegisterAPIKey
GenerateAndRegisterAPIKey Generate new API Key and register to LIGHTER Note: This requires L1 private key signature, so must be called with L1 private
trader/lighter/trader.go:342
FunctionGenerateDataKey
GenerateDataKey generates AES data encryption key Returns Base64 encoded 32-byte key
crypto/crypto.go:393
FunctionGenerateKeyPair
GenerateKeyPair generates RSA key pair (for key generation during initialization) Returns PEM format private key and public key
crypto/crypto.go:365
MethodGet
()
store/telegram_config.go:62
MethodGet
(userID string)
api/exchange_account_state.go:67
MethodGetAllLatestRecords
GetAllLatestRecords gets the latest N records for all traders
store/decision.go:209
MethodGetAllOpenPositions
GetAllOpenPositions gets all traders' open positions
store/position.go:446
MethodGetAllStatistics
GetAllStatistics gets statistics information for all traders
store/decision.go:281
MethodGetAllTradersLatest
GetAllTradersLatest gets latest equity for all traders (for leaderboards)
store/equity.go:97
MethodGetAnyEnabled
GetAnyEnabled returns the first enabled AI model across all users. Used by single-user features (e.g. Telegram bot) that need any working LLM client.
store/ai_model.go:166
MethodGetAuthKey
GetAuthKey returns the current auth key
provider/nofxos/client.go:90
MethodGetAvailableCoins
GetAvailableCoins retrieves all available coin symbols
provider/nofxos/ai500.go:137
MethodGetBalance
GetBalance gets account balance (with cache)
trader/binance/futures_account.go:13
MethodGetBalance
GetBalance gets account balance
trader/kucoin/trader_account.go:11
MethodGetBalance
GetBalance retrieves account balance
trader/bybit/trader_account.go:18
MethodGetBalance
GetBalance Get account balance
trader/aster/trader_account.go:16
MethodGetBalance
GetBalance gets account balance
trader/bitget/trader_account.go:14
MethodGetBalance
GetBalance gets account balance
trader/hyperliquid/trader_account.go:17
MethodGetBalance
GetBalance retrieves account balance
trader/gate/trader_account.go:14
MethodGetBalance
GetBalance gets account balance
trader/okx/trader_account.go:14
MethodGetBoundChatID
()
store/telegram_config.go:118
MethodGetByID
GetByID retrieves an AI model by ID only
store/ai_model.go:117
MethodGetByID
GetByID gets a specific exchange by UUID
store/exchange.go:207
MethodGetByID
GetByID gets a trader by ID without requiring userID (for public APIs)
store/trader.go:241
MethodGetClosedPnL
GetClosedPnL retrieves recent closing trades from Binance Futures Note: Binance does NOT have a position history API, only trade history. This returns
trader/binance/futures_account.go:63
MethodGetClosedPnL
GetClosedPnL gets closed position PnL records
trader/kucoin/trader_orders.go:605
MethodGetClosedPnL
GetClosedPnL retrieves closed position PnL records from Bybit via direct HTTP API
trader/bybit/trader_account.go:102
MethodGetClosedPnL
GetClosedPnL gets closed position PnL records from exchange LIGHTER does not have a direct closed PnL API, returns empty slice
trader/lighter/trader.go:402
MethodGetClosedPnL
GetClosedPnL gets recent closing trades from Aster Note: Aster does NOT have a position history API, only trade history. This returns individual closi
trader/aster/trader_account.go:140
MethodGetClosedPnL
GetClosedPnL retrieves closed position PnL records
trader/bitget/trader_positions.go:96
MethodGetClosedPnL
GetClosedPnL gets closed position PnL records (trade history)
trader/indodax/trader_account.go:163
MethodGetClosedPnL
GetClosedPnL gets recent closing trades from Hyperliquid Note: Hyperliquid does NOT have a position history API, only fill history. This returns indiv
trader/hyperliquid/trader_account.go:499
MethodGetClosedPnL
GetClosedPnL retrieves closed position PnL records
trader/gate/trader_account.go:135
← previousnext →1,701–1,800 of 2,846, ranked by callers