MCPcopy Create free account

hub / github.com/NoFxAiOS/nofx / functions

Functions2,846 in github.com/NoFxAiOS/nofx

↓ 14 callersMethodrequest
* Generic JSON request with standardized response * System/network errors are already intercepted and shown via toast * Only business errors are
web/src/lib/httpClient.ts:218
↓ 14 callersFunctionskipIfNoLiveTest
(t *testing.T)
trader/binance/order_sync_test.go:11
↓ 14 callersFunctionuseAuth
()
web/src/contexts/AuthContext.tsx:297
↓ 13 callersMethodCreateFill
CreateFill creates fill record
store/order.go:186
↓ 13 callersFunctionIsXyzDexAsset
IsXyzDexAsset checks if a symbol is an xyz dex asset
market/data.go:542
↓ 13 callersMethodStop
Stop stops the automatic trading
trader/auto_trader.go:592
↓ 13 callersFunctioncn
(...inputs: ClassValue[])
web/src/lib/cn.ts:5
↓ 13 callersFunctioncontains
Helper functions
trader/binance/futures.go:130
↓ 13 callersMethodconvertSymbol
convertSymbol converts generic symbol to KuCoin format e.g. BTCUSDT -> XBTUSDTM (KuCoin uses XBT for BTC)
trader/kucoin/trader.go:261
↓ 13 callersFunctionhasSpecialChar
(pwd: string)
web/src/components/auth/RegisterPage.test.tsx:61
↓ 13 callersFunctionmapStringPairs
(kv ...string)
api/handler_trader.go:157
↓ 12 callersMethodExchange
Exchange gets exchange storage
store/store.go:211
↓ 12 callersFunctionNew
New creates an Agent for one chat session.
telegram/agent/agent.go:57
↓ 12 callersFunctionRun
Run starts a background loop calling syncFn at the given interval until stop is closed. After each consecutive failure the wait doubles (capped at max
trader/syncloop/syncloop.go:20
↓ 12 callersFunctioncopy
(text: string, label: string)
web/src/components/common/HyperliquidWalletConnect.tsx:89
↓ 12 callersMethodgetSzDecimals
getSzDecimals gets quantity precision for coin
trader/hyperliquid/trader.go:232
↓ 12 callersMethodgetTraderFromQuery
getTraderFromQuery resolves a trader from the ?trader_id= query parameter, strictly scoped to the authenticated caller. Ownership is always enforced
api/server.go:604
↓ 12 callersFunctionmarkdownCell
(text string)
provider/vergex/client.go:662
↓ 11 callersMethodCloseLong
CloseLong Close long position (quantity=0 means close all)
trader/types/interface.go:57
↓ 11 callersMethodGetOpenPositions
GetOpenPositions gets all open positions
store/position.go:332
↓ 11 callersMethodGetStatus
GetStatus gets system status (for API)
trader/auto_trader_decision.go:60
↓ 11 callersFunctionNewIndodaxTrader
NewIndodaxTrader creates a new Indodax trader instance
trader/indodax/trader.go:93
↓ 11 callersMethodUser
User gets user storage
store/store.go:191
↓ 11 callersFunctioncalculateEMA
calculateEMA calculates EMA
market/data_indicators.go:6
↓ 11 callersFunctioncreateKuCoinTestTrader
(t *testing.T)
trader/kucoin/order_sync_test.go:24
↓ 11 callersFunctionexchangeDisplayName
(exchange *store.Exchange)
api/handler_trader.go:91
↓ 11 callersFunctionformatNumber
(value: number, decimals: number = 2)
web/src/components/trader/PositionHistory.tsx:20
↓ 11 callersMethodgetContract
getContract fetches contract info with caching
trader/gate/trader.go:81
↓ 11 callersFunctiongetHashValue
(hash: number, position: number, max: number)
web/src/components/common/PunkAvatar.tsx:21
↓ 11 callersMethodgetInstrument
getInstrument gets instrument info
trader/okx/trader_positions.go:129
↓ 11 callersFunctionisStaleData
isStaleData detects stale data (consecutive price freeze) Fix DOGEUSDT-style issue: consecutive N periods with completely unchanged prices indicate da
market/data.go:651
↓ 11 callersFunctionleftPad32
leftPad32 pads a byte slice to 32 bytes on the left (ABI encoding).
mcp/payment/x402.go:868
↓ 11 callersMethodlogErrorf
(format string, args ...interface{})
trader/auto_trader.go:47
↓ 11 callersFunctionmockGetLLM
(llm *mockLLM)
telegram/agent/agent_test.go:83
↓ 11 callersFunctionnormalizeSymbol
(symbol: string)
web/src/pages/StrategyStudioPage.tsx:319
↓ 11 callersFunctiontr
(key: string, params?: Record<string, string | number>)
web/src/components/auth/LoginRequiredOverlay.tsx:21
↓ 10 callersMethodCallWithMessages
(systemPrompt, userPrompt string)
mcp/interface.go:17
↓ 10 callersMethodCloseShort
CloseShort Close short position (quantity=0 means close all)
trader/types/interface.go:60
↓ 10 callersFunctionGet
Get returns the global configuration
config/config.go:173
↓ 10 callersMethodGetOrderByExchangeID
GetOrderByExchangeID gets order by exchange order ID
store/order.go:215
↓ 10 callersFunctionGetPerpDexCoins
GetPerpDexCoins returns current tradable USDC perp assets for a given Hyperliquid dex, served from a TTL cache. When the upstream fetch fails (e.g. HT
provider/hyperliquid/coins.go:192
↓ 10 callersFunctionNewPromptBuilder
NewPromptBuilder creates a new prompt builder for the given language
kernel/prompt_builder.go:20
↓ 10 callersFunctionRebuildPositionsFromTrades
RebuildPositionsFromTrades reconstructs complete position records from trade history This is the unified algorithm used by all exchanges Algorithm: 1
trader/position_rebuild.go:46
↓ 10 callersMethodSave
Save bot token only (Web UI sets this)
store/telegram_config.go:39
↓ 10 callersFunctionValidateDecisionFormat
ValidateDecisionFormat validates that the decision format is correct
kernel/prompt_builder.go:334
↓ 10 callersFunctionWithMaxRetries
WithMaxRetries sets maximum retry count Usage example: client := mcp.NewClient(mcp.WithMaxRetries(5))
mcp/options.go:59
↓ 10 callersFunctionWithMaxTokens
============================================================ AI Parameter Options ============================================================ WithMax
mcp/options.go:83
↓ 10 callersFunctionbaseLabel
(raw?: string)
web/src/components/terminal/TerminalDashboard.tsx:54
↓ 10 callersFunctionfirstString
(obj map[string]any, keys ...string)
provider/vergex/client.go:831
↓ 10 callersMethodformatSize
formatSize formats contract size
trader/okx/trader.go:290
↓ 10 callersFunctionmin
(a, b int)
kernel/engine_analysis.go:429
↓ 10 callersFunctionnewIdleTrader
newIdleTrader returns a zero-value AutoTrader. It is safe to store in the manager map for map-semantics tests: GetStatus works on a zero value and Sto
manager/trader_manager_test.go:19
↓ 10 callersFunctiontextReply
textReply builds a mock LLM response with a plain-text final answer.
telegram/agent/agent_test.go:79
↓ 10 callersFunctiontraderLogTag
(traderID, traderName string)
manager/trader_manager.go:15
↓ 9 callersMethodClampLimits
ClampLimits enforces product-level limits on strategy config to prevent token overflow.
store/strategy.go:36
↓ 9 callersFunctionIsXYZAsset
IsXYZAsset checks if a symbol is on the xyz dex (stocks, forex, commodities). Detection is suffix-driven first, hardcoded-list second: 1. `xyz:` pref
provider/hyperliquid/kline.go:473
↓ 9 callersFunctionNewFuturesTrader
NewFuturesTrader creates futures trader
trader/binance/futures.go:65
↓ 9 callersFunctionNewGateTrader
NewGateTrader creates a new Gate trader instance
trader/gate/trader.go:35
↓ 9 callersFunctionNewStrategyEngine
NewStrategyEngine creates strategy execution engine. claw402WalletKey is optional — if provided, nofxos data requests are routed through claw402.
kernel/engine.go:197
↓ 9 callersFunctionRegisterProvider
RegisterProvider registers a provider factory function. Called by provider/payment sub-packages in their init() functions.
mcp/registry.go:8
↓ 9 callersMethodSetAuthHeader
(reqHeaders http.Header)
mcp/hooks.go:21
↓ 9 callersMethodSetLeverage
SetLeverage Set leverage
trader/types/interface.go:63
↓ 9 callersMethodStartOrderSync
StartOrderSync starts background order sync task for OKX
trader/okx/order_sync.go:276
↓ 9 callersFunctionWithDeepSeekConfig
============================================================ Combined Options (Convenience Methods) ==================================================
mcp/options.go:159
↓ 9 callersFunctionWithTimeout
============================================================ Timeout and Retry Options ============================================================ Wi
mcp/options.go:48
↓ 9 callersMethodallow
allow reports whether a request from key is permitted at time now, consuming one token when it is.
api/ratelimit.go:49
↓ 9 callersFunctioncalculateRSI
calculateRSI calculates RSI
market/data_indicators.go:42
↓ 9 callersMethodcancelAllGridOrders
cancelAllGridOrders cancels all grid orders
trader/auto_trader_grid_orders.go:181
↓ 9 callersFunctionconfigBadge
(label: string, active: boolean)
web/src/pages/SettingsPage.tsx:24
↓ 9 callersMethodconvertSymbol
convertSymbol converts standard symbol to Indodax format e.g. BTCIDR -> btc_idr, ETHIDR -> eth_idr
trader/indodax/trader.go:195
↓ 9 callersFunctioncreateBinanceTestTrader
(t *testing.T)
trader/binance/order_sync_test.go:26
↓ 9 callersMethoddoPrivateRequest
doPrivateRequest makes a signed private API POST request
trader/indodax/trader.go:147
↓ 9 callersFunctionfirstFloat
(obj map[string]any, keys ...string)
provider/vergex/client.go:851
↓ 9 callersFunctionformatPrice
(value: number | undefined)
web/src/pages/StrategyStudioPage.tsx:444
↓ 9 callersMethodgetPrecision
getPrecision Get symbol precision information
trader/aster/trader.go:88
↓ 9 callersFunctioninsertTrader
insertTrader places a trader directly into the manager's internal map, bypassing store loading (same-package access).
manager/trader_manager_test.go:25
↓ 9 callersFunctionlookupNormalized
(obj map[string]any, key string)
provider/vergex/client.go:899
↓ 9 callersFunctionrenderComponent
()
web/src/components/auth/RegistrationDisabled.test.tsx:33
↓ 9 callersMethodrequestsForPath
(path string)
trader/okx/trader_margin_mode_test.go:55
↓ 9 callersMethodrevertSymbol
revertSymbol converts symbol back to standard format (e.g., BTC_USDT -> BTCUSDT)
trader/gate/trader.go:76
↓ 9 callersMethodroundPriceToSigfigs
roundPriceToSigfigs rounds price to 5 significant figures Hyperliquid requires prices to use 5 significant figures
trader/hyperliquid/trader.go:269
↓ 9 callersMethodtradeThrottleReason
(decision kernel.Decision, ctx *kernel.Context, opensQueuedThisCycle int)
trader/auto_trader_throttle.go:74
↓ 8 callersMethodBuildUrl
── Shared request plumbing ─────────────────────────────────────────────
mcp/hooks.go:19
↓ 8 callersMethodCallWithRequest
============================================================ Builder Pattern API (Advanced Features) =================================================
mcp/client.go:454
↓ 8 callersMethodCancelOrder
CancelOrder cancels a specific order by ID
trader/types/interface.go:155
↓ 8 callersMethodError
()
provider/nofxos/client.go:147
↓ 8 callersMethodEstimateTokens
EstimateTokens estimates the total token count for a strategy configuration. This is a pure computation based on config fields — no network calls.
store/strategy.go:1324
↓ 8 callersMethodGetOpenOrders
GetOpenOrders Get open/pending orders from exchange Returns stop-loss, take-profit, and limit orders that haven't been filled
trader/types/interface.go:104
↓ 8 callersMethodGetPosition
GetPosition Get position for specified symbol
trader/lighter/account.go:283
↓ 8 callersMethodGetRequests
GetRequests gets all requests
mcp/mock_test.go:173
↓ 8 callersMethodGetStore
GetStore gets data store (for external access to decision records, etc.)
trader/auto_trader.go:680
↓ 8 callersMethodLoadUserTradersFromStore
LoadUserTradersFromStore loads traders from store for a specific user to memory
manager/trader_manager.go:443
↓ 8 callersFunctionMaskSensitiveString
MaskSensitiveString Mask sensitive strings, showing only first 4 and last 4 characters Used to mask API Key, Secret Key, Private Key and other sensiti
api/utils.go:7
↓ 8 callersFunctionNewClient
NewClient creates a new Hyperliquid client for mainnet
provider/hyperliquid/kline.go:54
↓ 8 callersFunctionNewPositionStore
NewPositionStore creates position storage instance
store/position.go:134
↓ 8 callersMethodRemoveTrader
RemoveTrader removes a trader from memory (does not affect database) Used to force reload when updating trader configuration If the trader is running,
manager/trader_manager.go:398
↓ 8 callersMethodSetAPIKey
(apiKey string, customURL string, customModel string)
mcp/interface.go:15
↓ 8 callersFunctionTradableSymbolForMarket
(marketType, symbol string)
provider/vergex/client.go:284
↓ 8 callersMethodUpdate
Update updates trader configuration
store/trader.go:108
↓ 8 callersFunctionbuildDashboardPath
(traderSlug?: string)
web/src/router/paths.ts:77
← previousnext →101–200 of 2,846, ranked by callers