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
↓ 14 callers
Method
request
* 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 callers
Function
skipIfNoLiveTest
(t *testing.T)
trader/binance/order_sync_test.go:11
↓ 14 callers
Function
useAuth
()
web/src/contexts/AuthContext.tsx:297
↓ 13 callers
Method
CreateFill
CreateFill creates fill record
store/order.go:186
↓ 13 callers
Function
IsXyzDexAsset
IsXyzDexAsset checks if a symbol is an xyz dex asset
market/data.go:542
↓ 13 callers
Method
Stop
Stop stops the automatic trading
trader/auto_trader.go:592
↓ 13 callers
Function
cn
(...inputs: ClassValue[])
web/src/lib/cn.ts:5
↓ 13 callers
Function
contains
Helper functions
trader/binance/futures.go:130
↓ 13 callers
Method
convertSymbol
convertSymbol converts generic symbol to KuCoin format e.g. BTCUSDT -> XBTUSDTM (KuCoin uses XBT for BTC)
trader/kucoin/trader.go:261
↓ 13 callers
Function
hasSpecialChar
(pwd: string)
web/src/components/auth/RegisterPage.test.tsx:61
↓ 13 callers
Function
mapStringPairs
(kv ...string)
api/handler_trader.go:157
↓ 12 callers
Method
Exchange
Exchange gets exchange storage
store/store.go:211
↓ 12 callers
Function
New
New creates an Agent for one chat session.
telegram/agent/agent.go:57
↓ 12 callers
Function
Run
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 callers
Function
copy
(text: string, label: string)
web/src/components/common/HyperliquidWalletConnect.tsx:89
↓ 12 callers
Method
getSzDecimals
getSzDecimals gets quantity precision for coin
trader/hyperliquid/trader.go:232
↓ 12 callers
Method
getTraderFromQuery
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 callers
Function
markdownCell
(text string)
provider/vergex/client.go:662
↓ 11 callers
Method
CloseLong
CloseLong Close long position (quantity=0 means close all)
trader/types/interface.go:57
↓ 11 callers
Method
GetOpenPositions
GetOpenPositions gets all open positions
store/position.go:332
↓ 11 callers
Method
GetStatus
GetStatus gets system status (for API)
trader/auto_trader_decision.go:60
↓ 11 callers
Function
NewIndodaxTrader
NewIndodaxTrader creates a new Indodax trader instance
trader/indodax/trader.go:93
↓ 11 callers
Method
User
User gets user storage
store/store.go:191
↓ 11 callers
Function
calculateEMA
calculateEMA calculates EMA
market/data_indicators.go:6
↓ 11 callers
Function
createKuCoinTestTrader
(t *testing.T)
trader/kucoin/order_sync_test.go:24
↓ 11 callers
Function
exchangeDisplayName
(exchange *store.Exchange)
api/handler_trader.go:91
↓ 11 callers
Function
formatNumber
(value: number, decimals: number = 2)
web/src/components/trader/PositionHistory.tsx:20
↓ 11 callers
Method
getContract
getContract fetches contract info with caching
trader/gate/trader.go:81
↓ 11 callers
Function
getHashValue
(hash: number, position: number, max: number)
web/src/components/common/PunkAvatar.tsx:21
↓ 11 callers
Method
getInstrument
getInstrument gets instrument info
trader/okx/trader_positions.go:129
↓ 11 callers
Function
isStaleData
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 callers
Function
leftPad32
leftPad32 pads a byte slice to 32 bytes on the left (ABI encoding).
mcp/payment/x402.go:868
↓ 11 callers
Method
logErrorf
(format string, args ...interface{})
trader/auto_trader.go:47
↓ 11 callers
Function
mockGetLLM
(llm *mockLLM)
telegram/agent/agent_test.go:83
↓ 11 callers
Function
normalizeSymbol
(symbol: string)
web/src/pages/StrategyStudioPage.tsx:319
↓ 11 callers
Function
tr
(key: string, params?: Record<string, string | number>)
web/src/components/auth/LoginRequiredOverlay.tsx:21
↓ 10 callers
Method
CallWithMessages
(systemPrompt, userPrompt string)
mcp/interface.go:17
↓ 10 callers
Method
CloseShort
CloseShort Close short position (quantity=0 means close all)
trader/types/interface.go:60
↓ 10 callers
Function
Get
Get returns the global configuration
config/config.go:173
↓ 10 callers
Method
GetOrderByExchangeID
GetOrderByExchangeID gets order by exchange order ID
store/order.go:215
↓ 10 callers
Function
GetPerpDexCoins
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 callers
Function
NewPromptBuilder
NewPromptBuilder creates a new prompt builder for the given language
kernel/prompt_builder.go:20
↓ 10 callers
Function
RebuildPositionsFromTrades
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 callers
Method
Save
Save bot token only (Web UI sets this)
store/telegram_config.go:39
↓ 10 callers
Function
ValidateDecisionFormat
ValidateDecisionFormat validates that the decision format is correct
kernel/prompt_builder.go:334
↓ 10 callers
Function
WithMaxRetries
WithMaxRetries sets maximum retry count Usage example: client := mcp.NewClient(mcp.WithMaxRetries(5))
mcp/options.go:59
↓ 10 callers
Function
WithMaxTokens
============================================================ AI Parameter Options ============================================================ WithMax
mcp/options.go:83
↓ 10 callers
Function
baseLabel
(raw?: string)
web/src/components/terminal/TerminalDashboard.tsx:54
↓ 10 callers
Function
firstString
(obj map[string]any, keys ...string)
provider/vergex/client.go:831
↓ 10 callers
Method
formatSize
formatSize formats contract size
trader/okx/trader.go:290
↓ 10 callers
Function
min
(a, b int)
kernel/engine_analysis.go:429
↓ 10 callers
Function
newIdleTrader
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 callers
Function
textReply
textReply builds a mock LLM response with a plain-text final answer.
telegram/agent/agent_test.go:79
↓ 10 callers
Function
traderLogTag
(traderID, traderName string)
manager/trader_manager.go:15
↓ 9 callers
Method
ClampLimits
ClampLimits enforces product-level limits on strategy config to prevent token overflow.
store/strategy.go:36
↓ 9 callers
Function
IsXYZAsset
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 callers
Function
NewFuturesTrader
NewFuturesTrader creates futures trader
trader/binance/futures.go:65
↓ 9 callers
Function
NewGateTrader
NewGateTrader creates a new Gate trader instance
trader/gate/trader.go:35
↓ 9 callers
Function
NewStrategyEngine
NewStrategyEngine creates strategy execution engine. claw402WalletKey is optional — if provided, nofxos data requests are routed through claw402.
kernel/engine.go:197
↓ 9 callers
Function
RegisterProvider
RegisterProvider registers a provider factory function. Called by provider/payment sub-packages in their init() functions.
mcp/registry.go:8
↓ 9 callers
Method
SetAuthHeader
(reqHeaders http.Header)
mcp/hooks.go:21
↓ 9 callers
Method
SetLeverage
SetLeverage Set leverage
trader/types/interface.go:63
↓ 9 callers
Method
StartOrderSync
StartOrderSync starts background order sync task for OKX
trader/okx/order_sync.go:276
↓ 9 callers
Function
WithDeepSeekConfig
============================================================ Combined Options (Convenience Methods) ==================================================
mcp/options.go:159
↓ 9 callers
Function
WithTimeout
============================================================ Timeout and Retry Options ============================================================ Wi
mcp/options.go:48
↓ 9 callers
Method
allow
allow reports whether a request from key is permitted at time now, consuming one token when it is.
api/ratelimit.go:49
↓ 9 callers
Function
calculateRSI
calculateRSI calculates RSI
market/data_indicators.go:42
↓ 9 callers
Method
cancelAllGridOrders
cancelAllGridOrders cancels all grid orders
trader/auto_trader_grid_orders.go:181
↓ 9 callers
Function
configBadge
(label: string, active: boolean)
web/src/pages/SettingsPage.tsx:24
↓ 9 callers
Method
convertSymbol
convertSymbol converts standard symbol to Indodax format e.g. BTCIDR -> btc_idr, ETHIDR -> eth_idr
trader/indodax/trader.go:195
↓ 9 callers
Function
createBinanceTestTrader
(t *testing.T)
trader/binance/order_sync_test.go:26
↓ 9 callers
Method
doPrivateRequest
doPrivateRequest makes a signed private API POST request
trader/indodax/trader.go:147
↓ 9 callers
Function
firstFloat
(obj map[string]any, keys ...string)
provider/vergex/client.go:851
↓ 9 callers
Function
formatPrice
(value: number | undefined)
web/src/pages/StrategyStudioPage.tsx:444
↓ 9 callers
Method
getPrecision
getPrecision Get symbol precision information
trader/aster/trader.go:88
↓ 9 callers
Function
insertTrader
insertTrader places a trader directly into the manager's internal map, bypassing store loading (same-package access).
manager/trader_manager_test.go:25
↓ 9 callers
Function
lookupNormalized
(obj map[string]any, key string)
provider/vergex/client.go:899
↓ 9 callers
Function
renderComponent
()
web/src/components/auth/RegistrationDisabled.test.tsx:33
↓ 9 callers
Method
requestsForPath
(path string)
trader/okx/trader_margin_mode_test.go:55
↓ 9 callers
Method
revertSymbol
revertSymbol converts symbol back to standard format (e.g., BTC_USDT -> BTCUSDT)
trader/gate/trader.go:76
↓ 9 callers
Method
roundPriceToSigfigs
roundPriceToSigfigs rounds price to 5 significant figures Hyperliquid requires prices to use 5 significant figures
trader/hyperliquid/trader.go:269
↓ 9 callers
Method
tradeThrottleReason
(decision kernel.Decision, ctx *kernel.Context, opensQueuedThisCycle int)
trader/auto_trader_throttle.go:74
↓ 8 callers
Method
BuildUrl
── Shared request plumbing ─────────────────────────────────────────────
mcp/hooks.go:19
↓ 8 callers
Method
CallWithRequest
============================================================ Builder Pattern API (Advanced Features) =================================================
mcp/client.go:454
↓ 8 callers
Method
CancelOrder
CancelOrder cancels a specific order by ID
trader/types/interface.go:155
↓ 8 callers
Method
Error
()
provider/nofxos/client.go:147
↓ 8 callers
Method
EstimateTokens
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 callers
Method
GetOpenOrders
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 callers
Method
GetPosition
GetPosition Get position for specified symbol
trader/lighter/account.go:283
↓ 8 callers
Method
GetRequests
GetRequests gets all requests
mcp/mock_test.go:173
↓ 8 callers
Method
GetStore
GetStore gets data store (for external access to decision records, etc.)
trader/auto_trader.go:680
↓ 8 callers
Method
LoadUserTradersFromStore
LoadUserTradersFromStore loads traders from store for a specific user to memory
manager/trader_manager.go:443
↓ 8 callers
Function
MaskSensitiveString
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 callers
Function
NewClient
NewClient creates a new Hyperliquid client for mainnet
provider/hyperliquid/kline.go:54
↓ 8 callers
Function
NewPositionStore
NewPositionStore creates position storage instance
store/position.go:134
↓ 8 callers
Method
RemoveTrader
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 callers
Method
SetAPIKey
(apiKey string, customURL string, customModel string)
mcp/interface.go:15
↓ 8 callers
Function
TradableSymbolForMarket
(marketType, symbol string)
provider/vergex/client.go:284
↓ 8 callers
Method
Update
Update updates trader configuration
store/trader.go:108
↓ 8 callers
Function
buildDashboardPath
(traderSlug?: string)
web/src/router/paths.ts:77
← previous
next →
101–200 of 2,846, ranked by callers