MCPcopy Create free account

hub / github.com/NoFxAiOS/nofx / functions

Functions2,846 in github.com/NoFxAiOS/nofx

↓ 1,359 callersMethodErrorf
(format string, args ...any)
mcp/logger.go:10
↓ 890 callersFunctionInfof
(format string, args ...interface{})
logger/logger.go:153
↓ 589 callersFunctiont
( key: string, lang: Language, params?: Record<string, string | number> )
web/src/i18n/translations.ts:3995
↓ 151 callersMethodSet
(userID string, states map[string]ExchangeAccountState)
api/exchange_account_state.go:77
↓ 141 callersMethodError
()
hook/ip_hook.go:10
↓ 105 callersFunctionWarnf
(format string, args ...interface{})
logger/logger.go:157
↓ 100 callersMethodDo
(req *http.Request)
mcp/examples_test.go:225
↓ 100 callersMethodError
()
mcp/payment/claw402.go:35
↓ 93 callersMethodClose
Close closes database connection
store/store.go:311
↓ 87 callersMethodString
()
mcp/client.go:429
↓ 78 callersMethodAdd
Add appends a message and triggers compaction if threshold exceeded
telegram/session/memory.go:33
↓ 70 callersMethodRun
Run processes one user message through the native function-calling agent loop. Architecture: - LLM receives the api_request tool definition alongside
telegram/agent/agent.go:194
↓ 66 callersMethodFormat
(entry *logrus.Entry)
logger/logger.go:27
↓ 66 callersMethodOrder
Order gets order storage
store/store.go:271
↓ 62 callersMethodInfof
(format string, args ...any)
mcp/logger.go:8
↓ 60 callersMethodRun
Run runs the automatic trading main loop
trader/auto_trader.go:444
↓ 59 callersMethodlog
(level, format string, args ...any)
mcp/mock_test.go:54
↓ 52 callersFunctionSafeInternalError
SafeInternalError logs internal error and returns a generic message
api/errors.go:50
↓ 51 callersMethodGet
()
store/telegram_config.go:37
↓ 48 callersFunctionInfo
(args ...interface{})
logger/logger.go:141
↓ 48 callersFunctionNewClient
NewClient creates client (supports options pattern) Usage examples: // Basic usage (backward compatible) client := mcp.NewClient() // Custom log
mcp/client.go:113
↓ 45 callersMethodrouteWithSchema
routeWithSchema registers an HTTP route with full parameter schema documentation. schema is injected verbatim into the API docs seen by the LLM.
api/route_registry.go:28
↓ 41 callersFunctionNormalize
Normalize normalizes symbol For crypto: ensures it's a USDT trading pair For xyz dex assets (stocks, forex, commodities): uses xyz: prefix without USD
market/data.go:561
↓ 36 callersMethodCleanup
Cleanup Clean up resources
trader/lighter/trader.go:395
↓ 36 callersFunctiontext
(language: string, zh: string, en: string)
web/src/pages/StrategyStudioPage.tsx:79
↓ 34 callersMethodGetTrader
GetTrader retrieves a trader by ID
manager/trader_manager.go:56
↓ 33 callersFunctionErrorf
(format string, args ...interface{})
logger/logger.go:165
↓ 32 callersMethodScan
Scan implements sql.Scanner - called when reading from database Automatically decrypts the value
crypto/crypto.go:419
↓ 32 callersMethodroute
route registers an HTTP route with a one-line description.
api/route_registry.go:22
↓ 32 callersFunctiontestTime
testTime returns a deterministic timestamp offset by n minutes.
trader/position_rebuild_test.go:10
↓ 30 callersMethodTrader
Trader gets trader storage
store/store.go:221
↓ 30 callersFunctioncreateTestTrader
(t *testing.T)
trader/lighter/integration_test.go:51
↓ 30 callersFunctionskipIfNoEnv
(t *testing.T)
trader/lighter/integration_test.go:31
↓ 29 callersFunctionts
(entry: { zh: string; en: string; [k: string]: string }, lang: string)
web/src/i18n/strategy-translations.ts:291
↓ 29 callersFunctionuseLanguage
()
web/src/contexts/LanguageContext.tsx:35
↓ 28 callersFunctionWithLogger
============================================================ Dependency Injection Options ============================================================
mcp/options.go:19
↓ 27 callersMethodGetPositions
GetPositions Get all positions
trader/types/interface.go:48
↓ 27 callersFunctionParseFloatField
ParseFloatField parses a numeric string field from an exchange API response. An empty string is treated as zero, since exchanges commonly omit fields
trader/types/parse.go:13
↓ 27 callersFunctionSafeBadRequest
SafeBadRequest returns a safe bad request error For validation errors, we can be more specific since they're about user input
api/errors.go:57
↓ 27 callersFunctionWithAPIKey
============================================================ Provider Configuration Options ==========================================================
mcp/options.go:117
↓ 26 callersMethodProcessTrade
ProcessTrade processes a single trade and updates position accordingly tradeTimeMs is Unix milliseconds UTC
store/position_builder.go:29
↓ 26 callersMethodlogInfof
(format string, args ...interface{})
trader/auto_trader.go:37
↓ 26 callersFunctionrepeatStr
(s string, n int)
trader/binance/sync_verify_test.go:14
↓ 25 callersMethodPosition
Position gets position storage
store/store.go:241
↓ 25 callersMethoddoRequest
doRequest executes HTTP request
trader/kucoin/trader.go:196
↓ 25 callersMethoddoRequest
doRequest executes HTTP request
trader/bitget/trader.go:138
↓ 25 callersMethoddoRequest
doRequest executes HTTP request
trader/okx/trader.go:207
↓ 25 callersMethodlogWarnf
(format string, args ...interface{})
trader/auto_trader.go:42
↓ 24 callersFunctionGetDefaultStrategyConfig
GetDefaultStrategyConfig returns the default strategy configuration for the given language
store/strategy.go:953
↓ 24 callersFunctionfloatsClose
(a, b float64)
trader/position_rebuild_test.go:14
↓ 24 callersFunctionformatValue
formatValue formats a numeric value with sign and appropriate suffix
provider/nofxos/util.go:14
↓ 23 callersMethodCount
Count returns the total number of users
store/user.go:87
↓ 23 callersMethodGet
Get coinank openapi get request
provider/coinank/coinank_http.go:46
↓ 23 callersMethodWarnf
(format string, args ...any)
mcp/logger.go:9
↓ 22 callersMethodGetName
GetName gets trader name
trader/auto_trader.go:618
↓ 22 callersMethodList
List gets user's trader list
store/trader.go:82
↓ 22 callersFunctionnormalizeAddress
(address: string)
web/src/components/common/HyperliquidWalletConnect.tsx:96
↓ 22 callersMethodrequest
request Send HTTP request (with retry mechanism)
trader/aster/trader.go:329
↓ 21 callersMethodget
* GET request
web/src/lib/httpClient.ts:268
↓ 20 callersMethodCreateOrder
CreateOrder Create order (market or limit) - uses official SDK for signing
trader/lighter/trading.go:190
↓ 20 callersMethodDelete
Delete deletes trader and associated data
store/trader.go:163
↓ 20 callersMethodMustBuild
MustBuild builds request object, panics if failed Suitable for scenarios where build is guaranteed not to fail
mcp/request_builder.go:263
↓ 20 callersFunctionNewRequestBuilder
NewRequestBuilder creates request builder Usage example: request := NewRequestBuilder(). WithSystemPrompt("You are helpful"). WithUserPrompt("Hello")
mcp/request_builder.go:30
↓ 20 callersMethodStrategy
Strategy gets strategy storage
store/store.go:251
↓ 19 callersMethodAIModel
AIModel gets AI model storage
store/store.go:201
↓ 19 callersMethodGetBalance
GetBalance Get account balance
trader/types/interface.go:45
↓ 19 callersFunctionNewMockLogger
()
mcp/mock_test.go:31
↓ 19 callersFunctionSafeBadRequestWithDetails
(c *gin.Context, msg, errorKey string, errorParams map[string]string)
api/errors.go:61
↓ 19 callersMethodWithUserPrompt
WithUserPrompt adds user prompt (convenience method)
mcp/request_builder.go:66
↓ 19 callersFunctionformatTraderCreationError
(reason, nextStep string)
api/handler_trader.go:62
↓ 18 callersMethodCreate
Create creates user
store/user.go:62
↓ 18 callersFunctionWithHTTPClient
WithHTTPClient sets custom HTTP client. WARNING: The default client uses security.SafeHTTPClient() with SSRF protection (blocks private IPs, cloud me
mcp/options.go:34
↓ 18 callersFunctionformatFloatSlice
(values []float64)
kernel/engine_prompt.go:1289
↓ 17 callersMethodconvertSymbol
convertSymbol converts generic symbol to Bitget format e.g., BTCUSDT -> BTCUSDT
trader/bitget/trader.go:215
↓ 17 callersFunctionvalidatePassword
( pwd: string, confirmPwd: string )
web/src/components/auth/RegisterPage.test.tsx:93
↓ 16 callersFunctionDebugf
(format string, args ...interface{})
logger/logger.go:149
↓ 16 callersFunctionDefaultConfig
DefaultConfig returns default configuration
mcp/config.go:41
↓ 16 callersMethodGetMarketPrice
GetMarketPrice Get market price
trader/types/interface.go:69
↓ 16 callersMethodconvertSymbol
convertSymbol converts symbol format (e.g., BTCUSDT -> BTC_USDT)
trader/gate/trader.go:62
↓ 16 callersMethodconvertSymbol
convertSymbol converts generic symbol to OKX format e.g. BTCUSDT -> BTC-USDT-SWAP
trader/okx/trader.go:261
↓ 16 callersFunctionconvertSymbolToHyperliquid
convertSymbolToHyperliquid converts standard/display symbols to Hyperliquid format. Examples: "BTCUSDT" -> "BTC", "TSLA" -> "xyz:TSLA", "SAMSUNG-USDC"
trader/hyperliquid/trader.go:83
↓ 16 callersFunctionskipIfJurisdictionRestricted
skipIfJurisdictionRestricted checks if error is due to geographic restriction and skips the test if so (this is expected when running from restricted
trader/lighter/integration_test.go:45
↓ 15 callersMethodGetID
GetID gets trader ID
trader/auto_trader.go:607
↓ 15 callersFunctionNewMockHTTPClient
()
mcp/mock_test.go:130
↓ 15 callersFunctionNewPositionBuilder
NewPositionBuilder creates a new PositionBuilder
store/position_builder.go:21
↓ 15 callersFunctionSafeNotFound
SafeNotFound returns a generic not found error
api/errors.go:66
↓ 15 callersMethodToHTTPClient
ToHTTPClient converts to http.Client
mcp/mock_test.go:138
↓ 15 callersFunctionWithModel
WithModel sets model name
mcp/options.go:131
↓ 15 callersFunctionformatFloatSlice
formatFloatSlice formats float64 slice to string (using dynamic precision)
market/data.go:517
↓ 15 callersFunctiontoolCall
toolCall builds a mock LLM response that contains a single tool invocation.
telegram/agent/agent_test.go:62
↓ 14 callersMethodCallWithMessages
CallWithMessages template method - fixed retry flow (cannot be overridden)
mcp/client.go:170
↓ 14 callersMethodClose
Close websocket
provider/coinank/coinank_api/depth_ws.go:68
↓ 14 callersFunctionNewTraderManager
NewTraderManager creates a trader manager
manager/trader_manager.go:38
↓ 14 callersMethodTelegramConfig
TelegramConfig gets Telegram bot configuration storage
store/store.go:301
↓ 14 callersFunctionWithBaseURL
WithBaseURL sets base URL
mcp/options.go:124
↓ 14 callersFunctionWithProvider
WithProvider sets provider
mcp/options.go:138
↓ 14 callersMethodfilterExcludedCoins
filterExcludedCoins removes excluded coins from the candidates list
kernel/engine.go:507
↓ 14 callersMethodformatFloatWithPrecision
formatFloatWithPrecision Format float to string with specified precision (remove trailing zeros)
trader/aster/trader.go:199
↓ 14 callersFunctionformatMoney
(value: number | undefined)
web/src/pages/StrategyStudioPage.tsx:428
↓ 14 callersFunctionparseFloat
parseFloat parses float value
market/data.go:585
next →1–100 of 2,846, ranked by callers