MCPcopy Create free account

hub / github.com/NoFxAiOS/nofx / functions

Functions2,846 in github.com/NoFxAiOS/nofx

↓ 5 callersMethodGetPositions
GetPositions gets all positions (with cache)
trader/binance/futures_positions.go:14
↓ 5 callersFunctionGetWithExchange
GetWithExchange retrieves market data for the specified token using exchange-specific data
market/data.go:34
↓ 5 callersMethodIsRetryableError
(err error)
mcp/hooks.go:36
↓ 5 callersFunctionMissingRequiredExchangeCredentialFields
(exchangeType, apiKey, secretKey, passphrase, hyperliquidWalletAddr, asterUser, asterSigner, asterPrivateKey,
store/visibility.go:5
↓ 5 callersFunctionNew
New creates new Store instance (SQLite mode for backward compatibility)
store/store.go:38
↓ 5 callersFunctionNewAIClientByProvider
NewAIClientByProvider creates an AIClient by provider name using the registry. Returns nil if the provider is not registered.
mcp/registry.go:14
↓ 5 callersFunctionNewClient
NewClient creates a new NofxOS API client
provider/nofxos/client.go:49
↓ 5 callersFunctionNewQwenClientWithOptions
NewQwenClientWithOptions creates Qwen client (supports options pattern)
mcp/provider/qwen.go:34
↓ 5 callersMethodNormalizeProductSchema
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 callersFunctionNormalizeSymbol
NormalizeSymbol normalizes coin symbol to XXXUSDT format
provider/nofxos/ai500.go:156
↓ 5 callersMethodOpenLong
OpenLong Open long position
trader/types/interface.go:51
↓ 5 callersFunctionQuerySymbol
(symbol string)
provider/vergex/client.go:320
↓ 5 callersFunctionQueryUSDCBalanceStr
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 callersMethodTransaction
Transaction executes transaction with GORM
store/store.go:385
↓ 5 callersMethodapplyAutopilotFullSizeOpen
(decision *kernel.Decision, equity float64)
trader/auto_trader_risk.go:242
↓ 5 callersFunctionapplyPeriodFilter
(query *gorm.DB, period string)
store/ai_charge.go:128
↓ 5 callersMethodclearCache
clearCache clears all caches
trader/gate/trader.go:107
↓ 5 callersFunctionconfirmBreakout
confirmBreakout updates breakout state and returns true if breakout is confirmed
trader/grid_regime.go:147
↓ 5 callersFunctionconfirmToast
( message: string, options: ConfirmOptions = {} )
web/src/lib/notify.tsx:23
↓ 5 callersMethodcreateDefaultStrategies
(userID string, lang string)
api/handler_user.go:223
↓ 5 callersFunctiondefaultCoinSource
( source?: Partial<CoinSourceConfig> )
web/src/pages/StrategyStudioPage.tsx:212
↓ 5 callersFunctiondefaultIndicators
( indicators?: Partial<IndicatorConfig> )
web/src/pages/StrategyStudioPage.tsx:245
↓ 5 callersFunctiondefaultRisk
(risk?: Partial<RiskControlConfig>)
web/src/pages/StrategyStudioPage.tsx:282
↓ 5 callersFunctiondetectBoxBreakout
============================================================================ Task 7: Breakout Detection ==============================================
trader/grid_regime.go:98
↓ 5 callersMethoddoRequest
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 callersMethodensureLongShortCoverage
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 callersFunctionfloatToWireStr
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 callersFunctionformatFlowValue
(v float64)
kernel/engine_prompt.go:1270
↓ 5 callersFunctionformatPrice
(price: number | undefined | null, minDecimals = 2)
web/src/utils/format.ts:17
↓ 5 callersFunctionformatTraderStartError
(reason, nextStep string)
api/handler_trader.go:316
↓ 5 callersFunctiongenOkxClOrdID
genOkxClOrdID generates OKX order ID
trader/okx/trader.go:98
↓ 5 callersFunctiongetBinanceTestCredentials
(t *testing.T)
trader/binance/order_sync_test.go:17
↓ 5 callersFunctiongetCurrentPageForPath
(pathname: string)
web/src/router/paths.ts:51
↓ 5 callersMethodgetMarketInfo
getMarketInfo Get market info including precision - dynamically fetch from API
trader/lighter/trading.go:482
↓ 5 callersFunctiongetShortName
(fullName: string)
web/src/components/trader/model-constants.ts:40
↓ 5 callersFunctionhandleJSONResponse
(res: Response)
web/src/lib/api/helpers.ts:22
↓ 5 callersFunctionmissingNamedFields
(fields ...namedField)
store/visibility.go:44
↓ 5 callersFunctionnormalizeSymbol
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 callersFunctionnum
(s: string)
web/src/components/terminal/FlowMarkets.tsx:12
↓ 5 callersFunctionpatchCoinSource
(patch: Partial<CoinSourceConfig>)
web/src/pages/StrategyStudioPage.tsx:1262
↓ 5 callersFunctionpct
(n: number)
web/src/components/terminal/RiskRadar.tsx:26
↓ 5 callersMethodrankParam
(sortBy coinank_enum.InstrumentAggSortBy, sortType coinank_enum.SortType, page int, size int)
provider/coinank/instrument_agg_rank.go:134
↓ 5 callersMethodsaveDecision
saveDecision saves AI decision log to database (only records AI input/output, for debugging)
trader/auto_trader_decision.go:37
↓ 5 callersMethodsubmitOrder
submitOrder Submit signed order to LIGHTER API using multipart/form-data
trader/lighter/trading.go:352
↓ 5 callersFunctionthrottleContext
(symbol, side string, heldFor time.Duration, pnlPct float64)
trader/auto_trader_throttle_test.go:10
↓ 5 callersFunctionvalidateTraderLeverageRange
(btcEthLeverage, altcoinLeverage int)
api/handler_trader.go:73
↓ 5 callersFunctionvergexDetailQueryCandidates
(query vergex.Query)
kernel/engine.go:1313
↓ 4 callersMethodAICharge
AICharge gets AI charge storage
store/store.go:291
↓ 4 callersMethodBuild
============================================================ Build Methods ============================================================ Build builds r
mcp/request_builder.go:225
↓ 4 callersMethodBuildSystemPrompt
============================================================================ Prompt Building - System Prompt =========================================
kernel/engine_prompt.go:18
↓ 4 callersMethodCancelAllOrders
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 callersMethodCancelAllOrders
CancelAllOrders cancels all pending orders for symbol
trader/kucoin/trader_orders.go:502
↓ 4 callersMethodCancelAllOrders
CancelAllOrders Cancel all orders (implements Trader interface)
trader/lighter/orders.go:60
↓ 4 callersMethodCancelAllOrders
CancelAllOrders Cancel all orders
trader/aster/trader_orders.go:532
↓ 4 callersMethodCancelAllOrders
CancelAllOrders cancels all pending orders for this coin
trader/hyperliquid/trader_orders.go:385
↓ 4 callersMethodCancelAllOrders
CancelAllOrders cancels all pending orders
trader/okx/trader_orders.go:548
↓ 4 callersFunctionDoX402Request
DoX402Request executes an HTTP request and handles the x402 v2 payment flow.
mcp/payment/x402.go:205
↓ 4 callersFunctionExportCalculateDonchian
ExportCalculateDonchian exports calculateDonchian for testing
market/data_indicators.go:228
↓ 4 callersFunctionFilterSignalRankingItems
(items []SignalRankItem, marketType string, limit int)
provider/vergex/client.go:232
↓ 4 callersFunctionFilterTradFiItems
(items []SignalRankItem, marketType string, limit int)
provider/vergex/client.go:225
↓ 4 callersMethodGetCommissionSymbols
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 callersMethodGetFullStatsByTraderFilters
GetFullStatsByTraderFilters gets complete trading statistics for explicit trader IDs plus optional legacy trader ID patterns.
store/position_query.go:64
↓ 4 callersMethodGetMarketPrice
GetMarketPrice Get market price (implements Trader interface)
trader/lighter/account.go:300
↓ 4 callersMethodGetMarketPrice
GetMarketPrice Get market price
trader/aster/trader_account.go:111
↓ 4 callersMethodGetMarketPrice
GetMarketPrice gets market price (supports both crypto and xyz dex assets)
trader/hyperliquid/trader_account.go:364
↓ 4 callersMethodGetPnLSymbols
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 callersMethodGetResult
()
hook/ip_hook.go:14
↓ 4 callersMethodGetTrades
GetTrades retrieves trade history from Lighter
trader/lighter/trader.go:451
↓ 4 callersMethodGormDB
GormDB returns the GORM database connection
store/store.go:322
↓ 4 callersMethodInvalidate
(userID string)
api/exchange_account_state.go:86
↓ 4 callersFunctionMarketSymbol
(marketType, symbol string)
provider/vergex/client.go:298
↓ 4 callersFunctionNewAsterTrader
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 callersFunctionNewKuCoinTrader
NewKuCoinTrader creates a new KuCoin trader instance
trader/kucoin/trader.go:98
↓ 4 callersFunctionNormalizeTimeframe
NormalizeTimeframe normalizes the incoming timeframe string (case-insensitive, no spaces), and validates if it's supported.
market/timeframe.go:26
↓ 4 callersFunctionNormalizeXYZAlias
(base string)
provider/hyperliquid/kline.go:329
↓ 4 callersMethodOpenShort
OpenShort Open short position
trader/types/interface.go:54
↓ 4 callersMethodParseMCPResponseFull
ParseMCPResponseFull extracts both text and tool calls.
mcp/hooks.go:34
↓ 4 callersFunctionQueryChain
(chain string)
provider/vergex/client.go:333
↓ 4 callersFunctionSafeError
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 callersMethodToTradeRecord
ToTradeRecord converts KuCoinTrade to types.TradeRecord
trader/kucoin/order_sync.go:255
↓ 4 callersMethodUpdateOrderStatus
UpdateOrderStatus updates order status
store/order.go:169
↓ 4 callersFunctionValidateURL
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 callersMethodWithSystemPrompt
============================================================ Message Building Methods ============================================================ Wit
mcp/request_builder.go:58
↓ 4 callersFunctionaddQueryDefaults
(params url.Values, q Query, includeMarket bool)
provider/vergex/client.go:150
↓ 4 callersMethodarrayBufferToBase64Url
(buffer: ArrayBuffer)
web/src/lib/crypto.ts:157
↓ 4 callersFunctionattachPublishConfig
(config *store.StrategyConfig, strategy *store.Strategy)
api/strategy.go:38
↓ 4 callersFunctionbaseForceTrader
()
trader/auto_trader_force_test.go:10
↓ 4 callersFunctionbinPrice
(bin: VergexHeatmapBin)
web/src/pages/StrategyStudioPage.tsx:781
↓ 4 callersFunctioncalculateDonchian
calculateDonchian calculates Donchian channel (highest high, lowest low) for given period
market/data_indicators.go:150
↓ 4 callersMethodcancelAlgoOrders
cancelAlgoOrders cancels algo orders
trader/okx/trader_orders.go:504
↓ 4 callersMethodcancelPlanOrders
cancelPlanOrders cancels plan orders
trader/bitget/trader_orders.go:344
↓ 4 callersFunctionclampHyperRankLimit
(limit int)
kernel/engine.go:646
↓ 4 callersMethodclearCache
Helper methods
trader/bybit/trader.go:175
↓ 4 callersMethodclearCache
clearCache clears all caches
trader/bitget/trader.go:303
↓ 4 callersMethodclearCache
clearCache clears cached data
trader/indodax/trader.go:293
↓ 4 callersMethodclosedPositionsByTraderFilters
(traderIDs []string, traderIDPatterns []string)
store/position.go:388
↓ 4 callersFunctiondescribeTraderStartError
(traderName string, err error)
api/handler_trader.go:303
↓ 4 callersMethoddoGET
(ctx context.Context, path string, params url.Values)
provider/vergex/client.go:167
↓ 4 callersFunctionestimateMessageTokens
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 callersMethodfetchCryptoConfig
()
web/src/lib/crypto.ts:41
← previousnext →301–400 of 2,846, ranked by callers