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
↓ 5 callers
Method
GetPositions
GetPositions gets all positions (with cache)
trader/binance/futures_positions.go:14
↓ 5 callers
Function
GetWithExchange
GetWithExchange retrieves market data for the specified token using exchange-specific data
market/data.go:34
↓ 5 callers
Method
IsRetryableError
(err error)
mcp/hooks.go:36
↓ 5 callers
Function
MissingRequiredExchangeCredentialFields
(exchangeType, apiKey, secretKey, passphrase, hyperliquidWalletAddr, asterUser, asterSigner, asterPrivateKey,
store/visibility.go:5
↓ 5 callers
Function
New
New creates new Store instance (SQLite mode for backward compatibility)
store/store.go:38
↓ 5 callers
Function
NewAIClientByProvider
NewAIClientByProvider creates an AIClient by provider name using the registry. Returns nil if the provider is not registered.
mcp/registry.go:14
↓ 5 callers
Function
NewClient
NewClient creates a new NofxOS API client
provider/nofxos/client.go:49
↓ 5 callers
Function
NewQwenClientWithOptions
NewQwenClientWithOptions creates Qwen client (supports options pattern)
mcp/provider/qwen.go:34
↓ 5 callers
Method
NormalizeProductSchema
NormalizeProductSchema keeps saved strategy JSON aligned with the product editor schema. LLMs may emit user-facing labels such as "AI500"; persistence
store/strategy.go:140
↓ 5 callers
Function
NormalizeSymbol
NormalizeSymbol normalizes coin symbol to XXXUSDT format
provider/nofxos/ai500.go:156
↓ 5 callers
Method
OpenLong
OpenLong Open long position
trader/types/interface.go:51
↓ 5 callers
Function
QuerySymbol
(symbol string)
provider/vergex/client.go:320
↓ 5 callers
Function
QueryUSDCBalanceStr
QueryUSDCBalanceStr is the display-oriented counterpart to QueryUSDCBalance: it swallows errors and returns "0.00" so UI handlers always have a string
wallet/usdc.go:31
↓ 5 callers
Method
Transaction
Transaction executes transaction with GORM
store/store.go:385
↓ 5 callers
Method
applyAutopilotFullSizeOpen
(decision *kernel.Decision, equity float64)
trader/auto_trader_risk.go:242
↓ 5 callers
Function
applyPeriodFilter
(query *gorm.DB, period string)
store/ai_charge.go:128
↓ 5 callers
Method
clearCache
clearCache clears all caches
trader/gate/trader.go:107
↓ 5 callers
Function
confirmBreakout
confirmBreakout updates breakout state and returns true if breakout is confirmed
trader/grid_regime.go:147
↓ 5 callers
Function
confirmToast
( message: string, options: ConfirmOptions = {} )
web/src/lib/notify.tsx:23
↓ 5 callers
Method
createDefaultStrategies
(userID string, lang string)
api/handler_user.go:223
↓ 5 callers
Function
defaultCoinSource
( source?: Partial<CoinSourceConfig> )
web/src/pages/StrategyStudioPage.tsx:212
↓ 5 callers
Function
defaultIndicators
( indicators?: Partial<IndicatorConfig> )
web/src/pages/StrategyStudioPage.tsx:245
↓ 5 callers
Function
defaultRisk
(risk?: Partial<RiskControlConfig>)
web/src/pages/StrategyStudioPage.tsx:282
↓ 5 callers
Function
detectBoxBreakout
============================================================================ Task 7: Breakout Detection ==============================================
trader/grid_regime.go:98
↓ 5 callers
Method
doRequest
doRequest performs an HTTP GET request with authentication. If claw402 client is configured, routes through claw402 payment gateway instead.
provider/nofxos/client.go:98
↓ 5 callers
Method
ensureLongShortCoverage
ensureLongShortCoverage keeps a balanced book each cycle: it fills toward roughly half the MaxPositions slots long and half short. The AI still drives
trader/auto_trader_force.go:23
↓ 5 callers
Function
floatToWireStr
floatToWireStr converts a float to wire format string (8 decimal places, trimmed zeros) This matches the SDK's floatToWire function
trader/hyperliquid/trader_orders.go:602
↓ 5 callers
Function
formatFlowValue
(v float64)
kernel/engine_prompt.go:1270
↓ 5 callers
Function
formatPrice
(price: number | undefined | null, minDecimals = 2)
web/src/utils/format.ts:17
↓ 5 callers
Function
formatTraderStartError
(reason, nextStep string)
api/handler_trader.go:316
↓ 5 callers
Function
genOkxClOrdID
genOkxClOrdID generates OKX order ID
trader/okx/trader.go:98
↓ 5 callers
Function
getBinanceTestCredentials
(t *testing.T)
trader/binance/order_sync_test.go:17
↓ 5 callers
Function
getCurrentPageForPath
(pathname: string)
web/src/router/paths.ts:51
↓ 5 callers
Method
getMarketInfo
getMarketInfo Get market info including precision - dynamically fetch from API
trader/lighter/trading.go:482
↓ 5 callers
Function
getShortName
(fullName: string)
web/src/components/trader/model-constants.ts:40
↓ 5 callers
Function
handleJSONResponse
(res: Response)
web/src/lib/api/helpers.ts:22
↓ 5 callers
Function
missingNamedFields
(fields ...namedField)
store/visibility.go:44
↓ 5 callers
Function
normalizeSymbol
normalizeSymbol Convert NOFX symbol format to Lighter format NOFX uses "BTC-PERP", "BTCUSDT", etc. Lighter uses "BTC", "ETH", etc.
trader/lighter/trading.go:471
↓ 5 callers
Function
num
(s: string)
web/src/components/terminal/FlowMarkets.tsx:12
↓ 5 callers
Function
patchCoinSource
(patch: Partial<CoinSourceConfig>)
web/src/pages/StrategyStudioPage.tsx:1262
↓ 5 callers
Function
pct
(n: number)
web/src/components/terminal/RiskRadar.tsx:26
↓ 5 callers
Method
rankParam
(sortBy coinank_enum.InstrumentAggSortBy, sortType coinank_enum.SortType, page int, size int)
provider/coinank/instrument_agg_rank.go:134
↓ 5 callers
Method
saveDecision
saveDecision saves AI decision log to database (only records AI input/output, for debugging)
trader/auto_trader_decision.go:37
↓ 5 callers
Method
submitOrder
submitOrder Submit signed order to LIGHTER API using multipart/form-data
trader/lighter/trading.go:352
↓ 5 callers
Function
throttleContext
(symbol, side string, heldFor time.Duration, pnlPct float64)
trader/auto_trader_throttle_test.go:10
↓ 5 callers
Function
validateTraderLeverageRange
(btcEthLeverage, altcoinLeverage int)
api/handler_trader.go:73
↓ 5 callers
Function
vergexDetailQueryCandidates
(query vergex.Query)
kernel/engine.go:1313
↓ 4 callers
Method
AICharge
AICharge gets AI charge storage
store/store.go:291
↓ 4 callers
Method
Build
============================================================ Build Methods ============================================================ Build builds r
mcp/request_builder.go:225
↓ 4 callers
Method
BuildSystemPrompt
============================================================================ Prompt Building - System Prompt =========================================
kernel/engine_prompt.go:18
↓ 4 callers
Method
CancelAllOrders
CancelAllOrders cancels all pending orders for this symbol Now uses both legacy API and new Algo Order API
trader/binance/futures_orders.go:387
↓ 4 callers
Method
CancelAllOrders
CancelAllOrders cancels all pending orders for symbol
trader/kucoin/trader_orders.go:502
↓ 4 callers
Method
CancelAllOrders
CancelAllOrders Cancel all orders (implements Trader interface)
trader/lighter/orders.go:60
↓ 4 callers
Method
CancelAllOrders
CancelAllOrders Cancel all orders
trader/aster/trader_orders.go:532
↓ 4 callers
Method
CancelAllOrders
CancelAllOrders cancels all pending orders for this coin
trader/hyperliquid/trader_orders.go:385
↓ 4 callers
Method
CancelAllOrders
CancelAllOrders cancels all pending orders
trader/okx/trader_orders.go:548
↓ 4 callers
Function
DoX402Request
DoX402Request executes an HTTP request and handles the x402 v2 payment flow.
mcp/payment/x402.go:205
↓ 4 callers
Function
ExportCalculateDonchian
ExportCalculateDonchian exports calculateDonchian for testing
market/data_indicators.go:228
↓ 4 callers
Function
FilterSignalRankingItems
(items []SignalRankItem, marketType string, limit int)
provider/vergex/client.go:232
↓ 4 callers
Function
FilterTradFiItems
(items []SignalRankItem, marketType string, limit int)
provider/vergex/client.go:225
↓ 4 callers
Method
GetCommissionSymbols
GetCommissionSymbols returns symbols that have new commission records since lastSyncTime COMMISSION income is generated for every trade, so this is mo
trader/binance/futures_account.go:249
↓ 4 callers
Method
GetFullStatsByTraderFilters
GetFullStatsByTraderFilters gets complete trading statistics for explicit trader IDs plus optional legacy trader ID patterns.
store/position_query.go:64
↓ 4 callers
Method
GetMarketPrice
GetMarketPrice Get market price (implements Trader interface)
trader/lighter/account.go:300
↓ 4 callers
Method
GetMarketPrice
GetMarketPrice Get market price
trader/aster/trader_account.go:111
↓ 4 callers
Method
GetMarketPrice
GetMarketPrice gets market price (supports both crypto and xyz dex assets)
trader/hyperliquid/trader_account.go:364
↓ 4 callers
Method
GetPnLSymbols
GetPnLSymbols returns symbols that have REALIZED_PNL records since lastSyncTime This is a fallback when COMMISSION detection fails (VIP users, BNB fee
trader/binance/futures_account.go:276
↓ 4 callers
Method
GetResult
()
hook/ip_hook.go:14
↓ 4 callers
Method
GetTrades
GetTrades retrieves trade history from Lighter
trader/lighter/trader.go:451
↓ 4 callers
Method
GormDB
GormDB returns the GORM database connection
store/store.go:322
↓ 4 callers
Method
Invalidate
(userID string)
api/exchange_account_state.go:86
↓ 4 callers
Function
MarketSymbol
(marketType, symbol string)
provider/vergex/client.go:298
↓ 4 callers
Function
NewAsterTrader
NewAsterTrader Create Aster trader user: Main wallet address (login address) signer: API wallet address (obtained from https://www.asterdex.com/en/api
trader/aster/trader.go:52
↓ 4 callers
Function
NewKuCoinTrader
NewKuCoinTrader creates a new KuCoin trader instance
trader/kucoin/trader.go:98
↓ 4 callers
Function
NormalizeTimeframe
NormalizeTimeframe normalizes the incoming timeframe string (case-insensitive, no spaces), and validates if it's supported.
market/timeframe.go:26
↓ 4 callers
Function
NormalizeXYZAlias
(base string)
provider/hyperliquid/kline.go:329
↓ 4 callers
Method
OpenShort
OpenShort Open short position
trader/types/interface.go:54
↓ 4 callers
Method
ParseMCPResponseFull
ParseMCPResponseFull extracts both text and tool calls.
mcp/hooks.go:34
↓ 4 callers
Function
QueryChain
(chain string)
provider/vergex/client.go:333
↓ 4 callers
Function
SafeError
SafeError returns a safe error message without exposing internal details It logs the actual error for debugging but returns a generic message to the c
api/errors.go:32
↓ 4 callers
Method
ToTradeRecord
ToTradeRecord converts KuCoinTrade to types.TradeRecord
trader/kucoin/order_sync.go:255
↓ 4 callers
Method
UpdateOrderStatus
UpdateOrderStatus updates order status
store/order.go:169
↓ 4 callers
Function
ValidateURL
ValidateURL checks if a URL is safe to request (not pointing to internal networks) Returns an error if the URL is potentially dangerous
security/url_validator.go:85
↓ 4 callers
Method
WithSystemPrompt
============================================================ Message Building Methods ============================================================ Wit
mcp/request_builder.go:58
↓ 4 callers
Function
addQueryDefaults
(params url.Values, q Query, includeMarket bool)
provider/vergex/client.go:150
↓ 4 callers
Method
arrayBufferToBase64Url
(buffer: ArrayBuffer)
web/src/lib/crypto.ts:157
↓ 4 callers
Function
attachPublishConfig
(config *store.StrategyConfig, strategy *store.Strategy)
api/strategy.go:38
↓ 4 callers
Function
baseForceTrader
()
trader/auto_trader_force_test.go:10
↓ 4 callers
Function
binPrice
(bin: VergexHeatmapBin)
web/src/pages/StrategyStudioPage.tsx:781
↓ 4 callers
Function
calculateDonchian
calculateDonchian calculates Donchian channel (highest high, lowest low) for given period
market/data_indicators.go:150
↓ 4 callers
Method
cancelAlgoOrders
cancelAlgoOrders cancels algo orders
trader/okx/trader_orders.go:504
↓ 4 callers
Method
cancelPlanOrders
cancelPlanOrders cancels plan orders
trader/bitget/trader_orders.go:344
↓ 4 callers
Function
clampHyperRankLimit
(limit int)
kernel/engine.go:646
↓ 4 callers
Method
clearCache
Helper methods
trader/bybit/trader.go:175
↓ 4 callers
Method
clearCache
clearCache clears all caches
trader/bitget/trader.go:303
↓ 4 callers
Method
clearCache
clearCache clears cached data
trader/indodax/trader.go:293
↓ 4 callers
Method
closedPositionsByTraderFilters
(traderIDs []string, traderIDPatterns []string)
store/position.go:388
↓ 4 callers
Function
describeTraderStartError
(traderName string, err error)
api/handler_trader.go:303
↓ 4 callers
Method
doGET
(ctx context.Context, path string, params url.Values)
provider/vergex/client.go:167
↓ 4 callers
Function
estimateMessageTokens
estimateMessageTokens estimates the token count for a list of chat messages. Uses ~3 chars per token heuristic (conservative for mixed CJK/English tex
mcp/context_guard.go:11
↓ 4 callers
Method
fetchCryptoConfig
()
web/src/lib/crypto.ts:41
← previous
next →
301–400 of 2,846, ranked by callers