MCPcopy Create free account

hub / github.com/NoFxAiOS/nofx / functions

Functions2,846 in github.com/NoFxAiOS/nofx

↓ 1 callersMethodTestSetLeverage
TestSetLeverage Test setting leverage
trader/testutil/test_suite.go:180
↓ 1 callersMethodTestSetMarginMode
TestSetMarginMode Test setting margin mode
trader/testutil/test_suite.go:214
↓ 1 callersMethodTestSetStopLoss
============================================================ Stop-loss and take-profit tests =========================================================
trader/testutil/test_suite.go:510
↓ 1 callersMethodTestSetTakeProfit
TestSetTakeProfit Test setting take-profit
trader/testutil/test_suite.go:550
↓ 1 callersFunctionToChecksumAddress
ToChecksumAddress converts an Ethereum address to EIP-55 checksum format This is required for Lighter API which is case-sensitive for addresses
trader/lighter/types.go:118
↓ 1 callersFunctionTrackAIUsage
(event AIUsageEvent)
telemetry/experience.go:200
↓ 1 callersFunctionTrackTrade
(event TradeEvent)
telemetry/experience.go:105
↓ 1 callersMethodUnbind
Get bound chat ID (0 if not bound)
store/telegram_config.go:43
↓ 1 callersMethodUpdate
Update updates AI model, creates if not exists IMPORTANT: If apiKey is empty string, the existing API key will be preserved (not overwritten)
store/ai_model.go:202
↓ 1 callersMethodUpdateCustomPrompt
UpdateCustomPrompt updates custom prompt
store/trader.go:153
↓ 1 callersMethodUpdatePositionExchangeInfo
UpdatePositionExchangeInfo updates exchange_id and exchange_type
store/position.go:291
↓ 1 callersMethodUpdateShowInCompetition
UpdateShowInCompetition updates trader competition visibility
store/trader.go:101
↓ 1 callersMethodUpdateWithName
(userID, id, name string, enabled bool, apiKey, customAPIURL, customModelName string)
store/ai_model.go:206
↓ 1 callersMethodWithFrequencyPenalty
WithFrequencyPenalty sets frequency penalty (-2 to 2) Positive values penalize tokens based on their frequency in the text, reducing repetition
mcp/request_builder.go:156
↓ 1 callersMethodWithMaxTokens
WithMaxTokens sets maximum token count
mcp/request_builder.go:138
↓ 1 callersMethodWithPresencePenalty
WithPresencePenalty sets presence penalty (-2 to 2) Positive values penalize tokens based on whether they appear in the text, increasing topic diversi
mcp/request_builder.go:165
↓ 1 callersMethodWithStopSequences
WithStopSequences sets stop sequences Model will stop generating when it generates one of these sequences
mcp/request_builder.go:174
↓ 1 callersMethodWithTopP
WithTopP sets top-p nucleus sampling parameter (0-1) Controls the range of tokens considered, smaller values (e.g. 0.1) make output more focused
mcp/request_builder.go:147
↓ 1 callersFunctionWsConn
WsConn connect ws , read data from KlineCh and TickersCh
provider/coinank/coinank_api/kline_ws.go:23
↓ 1 callersFunctionX402BuildRequest
X402BuildRequest creates a POST request with Content-Type but no auth header.
mcp/payment/x402.go:570
↓ 1 callersFunctionX402CallFull
X402CallFull handles the x402 payment flow for the advanced Request path.
mcp/payment/x402.go:603
↓ 1 callersFunctionX402CallStream
X402CallStream handles the x402 payment flow with streaming for the simple Call path. It adds "stream": true to the request body and uses ParseSSEStre
mcp/payment/x402.go:482
↓ 1 callersFunctionX402DecodeHeader
── Shared x402 helpers ────────────────────────────────────────────────────── X402DecodeHeader decodes a base64-encoded x402 Payment-Required header,
mcp/payment/x402.go:162
↓ 1 callersFunctionX402SetAuthHeader
X402SetAuthHeader is a no-op — x402 providers authenticate via payment signing.
mcp/payment/x402.go:581
↓ 1 callersFunctionactionSide
(action: string)
web/src/components/terminal/ExecutionLog.tsx:37
↓ 1 callersMethodadjustGrid
adjustGrid adjusts grid parameters
trader/auto_trader_grid_orders.go:227
↓ 1 callersFunctionapply
()
web/src/components/terminal/LiquidationMap.tsx:128
↓ 1 callersMethodapplyGridDirectionLocked
applyGridDirectionLocked adjusts grid level sides based on the current direction (caller must hold lock)
trader/auto_trader_grid_levels.go:414
↓ 1 callersFunctionapplyProfile
(profile: (typeof profileOptions)[number])
web/src/pages/StrategyStudioPage.tsx:1674
↓ 1 callersFunctionarrayLooksLikeRows
(rows []any)
provider/vergex/client.go:818
↓ 1 callersMethodauthMiddleware
authMiddleware JWT authentication middleware
api/server.go:637
↓ 1 callersMethodautoAdjustGrid
autoAdjustGrid automatically adjusts grid when heavily skewed
trader/auto_trader_grid_levels.go:228
↓ 1 callersFunctionbaseAgentName
(name string)
api/handler_hyperliquid_wallet.go:93
↓ 1 callersFunctionbaseLabel
(raw: string)
web/src/components/terminal/FlowMarkets.tsx:9
↓ 1 callersFunctionbaseSymbol
(raw: string)
web/src/components/terminal/OrchestrationTopology.tsx:44
↓ 1 callersFunctionbaseSymbol
(raw: string)
web/src/components/terminal/ExecutionLog.tsx:19
↓ 1 callersFunctionbaseSymbol
(raw: string)
web/src/components/terminal/OrderBook.tsx:28
↓ 1 callersFunctionbaseSymbol
(raw: string)
web/src/components/terminal/KlineChart.tsx:22
↓ 1 callersFunctionbinValue
(bin: VergexHeatmapBin)
web/src/pages/StrategyStudioPage.tsx:792
↓ 1 callersMethodbuildAccountContext
buildAccountContext fetches the live account state (models, exchanges, strategies, traders, and per-trader account summary + statistics) and returns i
telegram/agent/agent.go:77
↓ 1 callersFunctionbuildClosedPosition
buildClosedPosition builds a closed position record from a closing trade
trader/position_rebuild.go:126
↓ 1 callersFunctionbuildDomainSeparatorDynamic
buildDomainSeparatorDynamic builds the EIP-712 domain separator using runtime values.
mcp/payment/x402.go:768
↓ 1 callersMethodbuildGridContext
buildGridContext builds the context for AI grid decisions
trader/auto_trader_grid.go:465
↓ 1 callersFunctionbuildGridSystemPromptEn
(config *store.GridStrategyConfig)
kernel/grid_engine.go:156
↓ 1 callersFunctionbuildGridSystemPromptZh
(config *store.GridStrategyConfig)
kernel/grid_engine.go:104
↓ 1 callersFunctionbuildGridUserPromptEn
(ctx *GridContext)
kernel/grid_engine.go:327
↓ 1 callersFunctionbuildGridUserPromptZh
(ctx *GridContext)
kernel/grid_engine.go:216
↓ 1 callersMethodbuildSystemPromptEN
========== English Prompts ==========
kernel/prompt_builder.go:181
↓ 1 callersMethodbuildSystemPromptZH
========== Chinese Prompts (translated to English) ==========
kernel/prompt_builder.go:46
↓ 1 callersMethodbuildTradingContext
buildTradingContext builds trading context
trader/auto_trader_loop.go:429
↓ 1 callersFunctionbuildTransferWithAuthHashDynamic
buildTransferWithAuthHashDynamic builds the struct hash for TransferWithAuthorization.
mcp/payment/x402.go:800
↓ 1 callersFunctionbuildTypedData
( primaryType: string, fields: { name: string; type: string }[], message: Record<string, unknown> )
web/src/components/common/HyperliquidWalletConnect.tsx:180
↓ 1 callersFunctionbuildUnifiedClaw402Config
()
web/src/pages/StrategyStudioPage.tsx:1404
↓ 1 callersMethodbuildVergexSystemPrompt
(accountEquity float64, variant string, lang Language, zh bool, singleSymbol bool, primarySymbol string)
kernel/engine_prompt.go:186
↓ 1 callersMethodcalculateATRBounds
calculateATRBounds calculates bounds using ATR
trader/auto_trader_grid_levels.go:24
↓ 1 callersMethodcalculateATRBoundsLocked
calculateATRBoundsLocked calculates bounds using ATR (caller must hold lock)
trader/auto_trader_grid_levels.go:341
↓ 1 callersFunctioncalculateBollingerBands
( data: Kline[], period = 20, stdDev = 2 )
web/src/utils/indicators.ts:185
↓ 1 callersFunctioncalculateEMAFromValues
( data: Array<{ time: number; value: number }>, period: number )
web/src/utils/indicators.ts:102
↓ 1 callersFunctioncalculateMaxDrawdownFromPnls
calculateMaxDrawdownFromPnls calculates maximum drawdown
store/position_query.go:196
↓ 1 callersFunctioncalculateSMA
(data: Kline[], period: number)
web/src/utils/indicators.ts:13
↓ 1 callersFunctioncalculateSharpeRatioFromPnls
calculateSharpeRatioFromPnls calculates Sharpe ratio
store/position_query.go:171
↓ 1 callersMethodcalculateStreaks
calculateStreaks calculates win/loss streaks
store/position_history.go:120
↓ 1 callersFunctioncalculateTimeframeSeries
calculateTimeframeSeries calculates series data for a single timeframe
market/data_klines.go:156
↓ 1 callersFunctioncalculateXYZMarginUsed
(positions []xyzAssetPosition)
trader/hyperliquid/trader_account.go:252
↓ 1 callersFunctioncalculateYDomain
()
web/src/components/charts/EquityChart.tsx:165
↓ 1 callersFunctioncalculateYDomain
()
web/src/components/charts/ComparisonChart.tsx:229
↓ 1 callersMethodcallWithRequest
callWithRequest single AI API call (using Request object)
mcp/client.go:568
↓ 1 callersMethodcallWithRequestFull
callWithRequestFull single call that returns LLMResponse (content + tool calls).
mcp/client.go:535
↓ 1 callersMethodcancelGridOrder
cancelGridOrder cancels a specific grid order
trader/auto_trader_grid_orders.go:154
↓ 1 callersMethodcancelXyzOrder
cancelXyzOrder cancels a single xyz dex order by oid
trader/hyperliquid/trader_orders.go:527
↓ 1 callersFunctioncanonicalUniverseSymbolForBase
canonicalUniverseSymbolForBase finds the canonical candidate or position symbol that has the given base. Used to rewrite an AI decision's symbol (e.g.
trader/auto_trader_loop.go:414
↓ 1 callersMethodcheckAndExecuteStopLoss
checkAndExecuteStopLoss checks if any filled level has exceeded stop loss and closes it
trader/auto_trader_grid_orders.go:360
↓ 1 callersMethodcheckBoxBreakout
============================================================================ Regime Detection and Strategy Switching =================================
trader/auto_trader_grid_regime.go:16
↓ 1 callersMethodcheckBreakout
checkBreakout detects if price has broken out of grid range Returns breakout type and percentage beyond boundary
trader/auto_trader_grid.go:99
↓ 1 callersMethodcheckClaw402Balance
checkClaw402Balance checks USDC balance and logs warnings if low
trader/auto_trader_loop.go:760
↓ 1 callersMethodcheckDailyLossLimit
checkDailyLossLimit checks if daily loss exceeds limit Returns: (exceeded bool, dailyLossPct float64)
trader/auto_trader_grid.go:185
↓ 1 callersMethodcheckFalseBreakoutRecovery
checkFalseBreakoutRecovery checks if price has returned to box after breakout
trader/auto_trader_grid_regime.go:169
↓ 1 callersMethodcheckGridSkew
checkGridSkew checks if grid is heavily skewed (too many fills on one side) Returns: (skewed bool, buyFilledCount int, sellFilledCount int)
trader/auto_trader_grid_levels.go:186
↓ 1 callersMethodcheckMaxDrawdown
checkMaxDrawdown checks if current drawdown exceeds maximum allowed Returns: (exceeded bool, currentDrawdown float64)
trader/auto_trader_grid.go:133
↓ 1 callersMethodcheckPositionDrawdown
checkPositionDrawdown checks position drawdown situation
trader/auto_trader_risk.go:37
↓ 1 callersMethodcheckTotalPositionLimit
============================================================================ Grid Order Placement and Management =====================================
trader/auto_trader_grid_orders.go:17
↓ 1 callersFunctionclampPct
(value: number)
web/src/pages/StrategyStudioPage.tsx:423
↓ 1 callersFunctionclassifyRegimeLevel
============================================================================ Task 6: Regime Level Classification =====================================
trader/grid_regime.go:16
↓ 1 callersFunctioncloseActionSide
(action string)
trader/auto_trader_throttle.go:48
↓ 1 callersMethodcloseAllPositions
closeAllPositions closes all open positions for the grid symbol
trader/auto_trader_grid_orders.go:324
↓ 1 callersMethodcloseThrottleReason
(decision kernel.Decision, ctx *kernel.Context)
trader/auto_trader_throttle.go:122
↓ 1 callersFunctioncoalesce
(values ...string)
provider/vergex/client.go:965
↓ 1 callersFunctioncompact
(n: number)
web/src/components/terminal/FlowMarkets.tsx:16
↓ 1 callersMethodcompact
compact summarizes short-term history into long-term memory. This runs silently - the user never sees it happen. If LLM call fails, short-term is pres
telegram/session/memory.go:79
↓ 1 callersFunctionconnect
()
web/src/components/terminal/OrderBook.tsx:100
↓ 1 callersFunctionconnect
()
web/src/components/terminal/KlineChart.tsx:75
↓ 1 callersFunctioncontains
Helper function
mcp/client_test.go:413
↓ 1 callersFunctionconvertQuery
convertQuery converts ? placeholders to $1, $2 for PostgreSQL and handles other database-specific syntax differences
store/driver.go:244
↓ 1 callersFunctioncopyText
(value: string, label: string)
web/src/components/trader/AutopilotLaunchPanel.tsx:66
↓ 1 callersFunctioncorsMiddleware
corsMiddleware returns a CORS handler. Origins come from CORS_ALLOWED_ORIGINS (comma-separated). The literal value "*" enables permissive mode — DO NO
api/server.go:69
↓ 1 callersMethodcountRecentOpenOrders
(since time.Time)
trader/auto_trader_throttle.go:219
↓ 1 callersMethodcreateOrderRecord
createOrderRecord creates an order record struct from order details
trader/auto_trader_decision.go:411
↓ 1 callersFunctiondecodePossibleKey
decodePossibleKey tries to decode key using multiple encoding methods
crypto/crypto.go:134
↓ 1 callersFunctiondepth_read
(conn *websocket.Conn, ch chan *WsResult[DepthV3])
provider/coinank/coinank_api/depth_ws.go:86
↓ 1 callersFunctiondepth_ws
(ctx context.Context)
provider/coinank/coinank_api/depth_ws.go:72
← previousnext →1,101–1,200 of 2,846, ranked by callers