Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/NoFxAiOS/nofx
/ functions
Functions
2,846 in github.com/NoFxAiOS/nofx
⨍
Functions
2,846
◇
Types & classes
581
↓ 1 callers
Method
TestSetLeverage
TestSetLeverage Test setting leverage
trader/testutil/test_suite.go:180
↓ 1 callers
Method
TestSetMarginMode
TestSetMarginMode Test setting margin mode
trader/testutil/test_suite.go:214
↓ 1 callers
Method
TestSetStopLoss
============================================================ Stop-loss and take-profit tests =========================================================
trader/testutil/test_suite.go:510
↓ 1 callers
Method
TestSetTakeProfit
TestSetTakeProfit Test setting take-profit
trader/testutil/test_suite.go:550
↓ 1 callers
Function
ToChecksumAddress
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 callers
Function
TrackAIUsage
(event AIUsageEvent)
telemetry/experience.go:200
↓ 1 callers
Function
TrackTrade
(event TradeEvent)
telemetry/experience.go:105
↓ 1 callers
Method
Unbind
Get bound chat ID (0 if not bound)
store/telegram_config.go:43
↓ 1 callers
Method
Update
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 callers
Method
UpdateCustomPrompt
UpdateCustomPrompt updates custom prompt
store/trader.go:153
↓ 1 callers
Method
UpdatePositionExchangeInfo
UpdatePositionExchangeInfo updates exchange_id and exchange_type
store/position.go:291
↓ 1 callers
Method
UpdateShowInCompetition
UpdateShowInCompetition updates trader competition visibility
store/trader.go:101
↓ 1 callers
Method
UpdateWithName
(userID, id, name string, enabled bool, apiKey, customAPIURL, customModelName string)
store/ai_model.go:206
↓ 1 callers
Method
WithFrequencyPenalty
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 callers
Method
WithMaxTokens
WithMaxTokens sets maximum token count
mcp/request_builder.go:138
↓ 1 callers
Method
WithPresencePenalty
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 callers
Method
WithStopSequences
WithStopSequences sets stop sequences Model will stop generating when it generates one of these sequences
mcp/request_builder.go:174
↓ 1 callers
Method
WithTopP
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 callers
Function
WsConn
WsConn connect ws , read data from KlineCh and TickersCh
provider/coinank/coinank_api/kline_ws.go:23
↓ 1 callers
Function
X402BuildRequest
X402BuildRequest creates a POST request with Content-Type but no auth header.
mcp/payment/x402.go:570
↓ 1 callers
Function
X402CallFull
X402CallFull handles the x402 payment flow for the advanced Request path.
mcp/payment/x402.go:603
↓ 1 callers
Function
X402CallStream
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 callers
Function
X402DecodeHeader
── Shared x402 helpers ────────────────────────────────────────────────────── X402DecodeHeader decodes a base64-encoded x402 Payment-Required header,
mcp/payment/x402.go:162
↓ 1 callers
Function
X402SetAuthHeader
X402SetAuthHeader is a no-op — x402 providers authenticate via payment signing.
mcp/payment/x402.go:581
↓ 1 callers
Function
actionSide
(action: string)
web/src/components/terminal/ExecutionLog.tsx:37
↓ 1 callers
Method
adjustGrid
adjustGrid adjusts grid parameters
trader/auto_trader_grid_orders.go:227
↓ 1 callers
Function
apply
()
web/src/components/terminal/LiquidationMap.tsx:128
↓ 1 callers
Method
applyGridDirectionLocked
applyGridDirectionLocked adjusts grid level sides based on the current direction (caller must hold lock)
trader/auto_trader_grid_levels.go:414
↓ 1 callers
Function
applyProfile
(profile: (typeof profileOptions)[number])
web/src/pages/StrategyStudioPage.tsx:1674
↓ 1 callers
Function
arrayLooksLikeRows
(rows []any)
provider/vergex/client.go:818
↓ 1 callers
Method
authMiddleware
authMiddleware JWT authentication middleware
api/server.go:637
↓ 1 callers
Method
autoAdjustGrid
autoAdjustGrid automatically adjusts grid when heavily skewed
trader/auto_trader_grid_levels.go:228
↓ 1 callers
Function
baseAgentName
(name string)
api/handler_hyperliquid_wallet.go:93
↓ 1 callers
Function
baseLabel
(raw: string)
web/src/components/terminal/FlowMarkets.tsx:9
↓ 1 callers
Function
baseSymbol
(raw: string)
web/src/components/terminal/OrchestrationTopology.tsx:44
↓ 1 callers
Function
baseSymbol
(raw: string)
web/src/components/terminal/ExecutionLog.tsx:19
↓ 1 callers
Function
baseSymbol
(raw: string)
web/src/components/terminal/OrderBook.tsx:28
↓ 1 callers
Function
baseSymbol
(raw: string)
web/src/components/terminal/KlineChart.tsx:22
↓ 1 callers
Function
binValue
(bin: VergexHeatmapBin)
web/src/pages/StrategyStudioPage.tsx:792
↓ 1 callers
Method
buildAccountContext
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 callers
Function
buildClosedPosition
buildClosedPosition builds a closed position record from a closing trade
trader/position_rebuild.go:126
↓ 1 callers
Function
buildDomainSeparatorDynamic
buildDomainSeparatorDynamic builds the EIP-712 domain separator using runtime values.
mcp/payment/x402.go:768
↓ 1 callers
Method
buildGridContext
buildGridContext builds the context for AI grid decisions
trader/auto_trader_grid.go:465
↓ 1 callers
Function
buildGridSystemPromptEn
(config *store.GridStrategyConfig)
kernel/grid_engine.go:156
↓ 1 callers
Function
buildGridSystemPromptZh
(config *store.GridStrategyConfig)
kernel/grid_engine.go:104
↓ 1 callers
Function
buildGridUserPromptEn
(ctx *GridContext)
kernel/grid_engine.go:327
↓ 1 callers
Function
buildGridUserPromptZh
(ctx *GridContext)
kernel/grid_engine.go:216
↓ 1 callers
Method
buildSystemPromptEN
========== English Prompts ==========
kernel/prompt_builder.go:181
↓ 1 callers
Method
buildSystemPromptZH
========== Chinese Prompts (translated to English) ==========
kernel/prompt_builder.go:46
↓ 1 callers
Method
buildTradingContext
buildTradingContext builds trading context
trader/auto_trader_loop.go:429
↓ 1 callers
Function
buildTransferWithAuthHashDynamic
buildTransferWithAuthHashDynamic builds the struct hash for TransferWithAuthorization.
mcp/payment/x402.go:800
↓ 1 callers
Function
buildTypedData
( primaryType: string, fields: { name: string; type: string }[], message: Record<string, unknown> )
web/src/components/common/HyperliquidWalletConnect.tsx:180
↓ 1 callers
Function
buildUnifiedClaw402Config
()
web/src/pages/StrategyStudioPage.tsx:1404
↓ 1 callers
Method
buildVergexSystemPrompt
(accountEquity float64, variant string, lang Language, zh bool, singleSymbol bool, primarySymbol string)
kernel/engine_prompt.go:186
↓ 1 callers
Method
calculateATRBounds
calculateATRBounds calculates bounds using ATR
trader/auto_trader_grid_levels.go:24
↓ 1 callers
Method
calculateATRBoundsLocked
calculateATRBoundsLocked calculates bounds using ATR (caller must hold lock)
trader/auto_trader_grid_levels.go:341
↓ 1 callers
Function
calculateBollingerBands
( data: Kline[], period = 20, stdDev = 2 )
web/src/utils/indicators.ts:185
↓ 1 callers
Function
calculateEMAFromValues
( data: Array<{ time: number; value: number }>, period: number )
web/src/utils/indicators.ts:102
↓ 1 callers
Function
calculateMaxDrawdownFromPnls
calculateMaxDrawdownFromPnls calculates maximum drawdown
store/position_query.go:196
↓ 1 callers
Function
calculateSMA
(data: Kline[], period: number)
web/src/utils/indicators.ts:13
↓ 1 callers
Function
calculateSharpeRatioFromPnls
calculateSharpeRatioFromPnls calculates Sharpe ratio
store/position_query.go:171
↓ 1 callers
Method
calculateStreaks
calculateStreaks calculates win/loss streaks
store/position_history.go:120
↓ 1 callers
Function
calculateTimeframeSeries
calculateTimeframeSeries calculates series data for a single timeframe
market/data_klines.go:156
↓ 1 callers
Function
calculateXYZMarginUsed
(positions []xyzAssetPosition)
trader/hyperliquid/trader_account.go:252
↓ 1 callers
Function
calculateYDomain
()
web/src/components/charts/EquityChart.tsx:165
↓ 1 callers
Function
calculateYDomain
()
web/src/components/charts/ComparisonChart.tsx:229
↓ 1 callers
Method
callWithRequest
callWithRequest single AI API call (using Request object)
mcp/client.go:568
↓ 1 callers
Method
callWithRequestFull
callWithRequestFull single call that returns LLMResponse (content + tool calls).
mcp/client.go:535
↓ 1 callers
Method
cancelGridOrder
cancelGridOrder cancels a specific grid order
trader/auto_trader_grid_orders.go:154
↓ 1 callers
Method
cancelXyzOrder
cancelXyzOrder cancels a single xyz dex order by oid
trader/hyperliquid/trader_orders.go:527
↓ 1 callers
Function
canonicalUniverseSymbolForBase
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 callers
Method
checkAndExecuteStopLoss
checkAndExecuteStopLoss checks if any filled level has exceeded stop loss and closes it
trader/auto_trader_grid_orders.go:360
↓ 1 callers
Method
checkBoxBreakout
============================================================================ Regime Detection and Strategy Switching =================================
trader/auto_trader_grid_regime.go:16
↓ 1 callers
Method
checkBreakout
checkBreakout detects if price has broken out of grid range Returns breakout type and percentage beyond boundary
trader/auto_trader_grid.go:99
↓ 1 callers
Method
checkClaw402Balance
checkClaw402Balance checks USDC balance and logs warnings if low
trader/auto_trader_loop.go:760
↓ 1 callers
Method
checkDailyLossLimit
checkDailyLossLimit checks if daily loss exceeds limit Returns: (exceeded bool, dailyLossPct float64)
trader/auto_trader_grid.go:185
↓ 1 callers
Method
checkFalseBreakoutRecovery
checkFalseBreakoutRecovery checks if price has returned to box after breakout
trader/auto_trader_grid_regime.go:169
↓ 1 callers
Method
checkGridSkew
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 callers
Method
checkMaxDrawdown
checkMaxDrawdown checks if current drawdown exceeds maximum allowed Returns: (exceeded bool, currentDrawdown float64)
trader/auto_trader_grid.go:133
↓ 1 callers
Method
checkPositionDrawdown
checkPositionDrawdown checks position drawdown situation
trader/auto_trader_risk.go:37
↓ 1 callers
Method
checkTotalPositionLimit
============================================================================ Grid Order Placement and Management =====================================
trader/auto_trader_grid_orders.go:17
↓ 1 callers
Function
clampPct
(value: number)
web/src/pages/StrategyStudioPage.tsx:423
↓ 1 callers
Function
classifyRegimeLevel
============================================================================ Task 6: Regime Level Classification =====================================
trader/grid_regime.go:16
↓ 1 callers
Function
closeActionSide
(action string)
trader/auto_trader_throttle.go:48
↓ 1 callers
Method
closeAllPositions
closeAllPositions closes all open positions for the grid symbol
trader/auto_trader_grid_orders.go:324
↓ 1 callers
Method
closeThrottleReason
(decision kernel.Decision, ctx *kernel.Context)
trader/auto_trader_throttle.go:122
↓ 1 callers
Function
coalesce
(values ...string)
provider/vergex/client.go:965
↓ 1 callers
Function
compact
(n: number)
web/src/components/terminal/FlowMarkets.tsx:16
↓ 1 callers
Method
compact
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 callers
Function
connect
()
web/src/components/terminal/OrderBook.tsx:100
↓ 1 callers
Function
connect
()
web/src/components/terminal/KlineChart.tsx:75
↓ 1 callers
Function
contains
Helper function
mcp/client_test.go:413
↓ 1 callers
Function
convertQuery
convertQuery converts ? placeholders to $1, $2 for PostgreSQL and handles other database-specific syntax differences
store/driver.go:244
↓ 1 callers
Function
copyText
(value: string, label: string)
web/src/components/trader/AutopilotLaunchPanel.tsx:66
↓ 1 callers
Function
corsMiddleware
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 callers
Method
countRecentOpenOrders
(since time.Time)
trader/auto_trader_throttle.go:219
↓ 1 callers
Method
createOrderRecord
createOrderRecord creates an order record struct from order details
trader/auto_trader_decision.go:411
↓ 1 callers
Function
decodePossibleKey
decodePossibleKey tries to decode key using multiple encoding methods
crypto/crypto.go:134
↓ 1 callers
Function
depth_read
(conn *websocket.Conn, ch chan *WsResult[DepthV3])
provider/coinank/coinank_api/depth_ws.go:86
↓ 1 callers
Function
depth_ws
(ctx context.Context)
provider/coinank/coinank_api/depth_ws.go:72
← previous
next →
1,101–1,200 of 2,846, ranked by callers