MCPcopy Create free account

hub / github.com/NoFxAiOS/nofx / functions

Functions2,846 in github.com/NoFxAiOS/nofx

↓ 8 callersFunctioncalculateIntradaySeries
calculateIntradaySeries calculates intraday series data
market/data_klines.go:308
↓ 8 callersMethoddelete
* DELETE request
web/src/lib/httpClient.ts:301
↓ 8 callersFunctionfloatEqual
floatEqual compares two floats with tolerance
trader/binance/sync_verify_test.go:410
↓ 8 callersFunctionfmtUsd
(n: number)
web/src/components/terminal/LiquidationMap.tsx:21
↓ 8 callersFunctionformatPrice
(price: number)
web/src/components/strategy/GridRiskPanel.tsx:78
↓ 8 callersMethodformatQuantity
formatQuantity Format quantity to correct precision and step size
trader/aster/trader.go:182
↓ 8 callersFunctionformatUSDAmount
(v float64)
provider/vergex/client.go:634
↓ 8 callersFunctionget
(ctx context.Context, path string, paramsMap map[string]string)
provider/coinank/coinank_api/kline.go:55
↓ 8 callersFunctiongetBrOrderID
getBrOrderID generates unique order ID (for futures contracts) Format: x-{BR_ID}{TIMESTAMP}{RANDOM} Futures limit is 32 characters, use this limit con
trader/binance/futures.go:22
↓ 8 callersFunctionhandleInputChange
(field: keyof FormState, value: any)
web/src/components/trader/TraderConfigModal.tsx:164
↓ 8 callersMethodmarginMode
()
trader/okx/trader.go:148
↓ 8 callersFunctionmockAPIServer
mockAPIServer creates a test HTTP server with configurable route handlers.
telegram/agent/agent_test.go:90
↓ 8 callersFunctionnewTestOKXTrader
(rt *recordingTransport, isCrossMargin bool)
trader/okx/trader_margin_mode_test.go:65
↓ 8 callersFunctionparseFloat
parseFloat parses a string to float64, returns 0 for empty string
trader/lighter/types.go:107
↓ 8 callersFunctionparseFloat
parseFloat safely parses a float from interface{}
trader/indodax/trader.go:301
↓ 8 callersFunctionsimplifyConfig
( config: StrategyConfig | null | undefined )
web/src/pages/StrategyStudioPage.tsx:300
↓ 8 callersFunctiontoFloat64
(v any)
provider/coinank/coinank_api/kline_ws.go:159
↓ 8 callersFunctionuniverseBaseKey
universeBaseKey returns the bare base ticker used for fuzzy candidate matching. The AI sometimes echoes a candidate as "QNTUSDC", "QNT-USDC", "QNTUSDT
trader/auto_trader_loop.go:330
↓ 8 callersFunctionwriteAPIError
(c *gin.Context, statusCode int, publicMsg, errorKey string, errorParams map[string]string)
api/errors.go:17
↓ 7 callersMethodBuildMCPRequestBody
(systemPrompt, userPrompt string)
mcp/hooks.go:16
↓ 7 callersMethodDecision
Decision gets decision log storage
store/store.go:231
↓ 7 callersMethodFormatQuantity
FormatQuantity formats quantity
trader/bybit/trader.go:150
↓ 7 callersMethodFormatQuantity
FormatQuantity formats quantity
trader/bitget/trader.go:291
↓ 7 callersMethodGetExchange
GetExchange gets exchange
trader/auto_trader.go:628
↓ 7 callersMethodGetOpenPositionBySymbol
GetOpenPositionBySymbol gets open position for specified symbol and direction
store/position.go:351
↓ 7 callersMethodGetTrades
GetTrades retrieves trade/fill records from KuCoin
trader/kucoin/order_sync.go:31
↓ 7 callersMethodInitTables
InitTables initializes position tables
store/position.go:144
↓ 7 callersMethodMarshalRequestBody
(requestBody map[string]any)
mcp/hooks.go:22
↓ 7 callersFunctionNewDeepSeekClientWithOptions
NewDeepSeekClientWithOptions creates DeepSeek client (supports options pattern)
mcp/provider/deepseek.go:29
↓ 7 callersFunctionSanitizeError
SanitizeError returns the error message if safe, otherwise returns a generic message
api/errors.go:118
↓ 7 callersMethodSetStopLoss
SetStopLoss Set stop-loss order
trader/types/interface.go:72
↓ 7 callersMethodSetSuccessResponse
SetSuccessResponse sets success response
mcp/mock_test.go:198
↓ 7 callersMethodSetTakeProfit
SetTakeProfit Set take-profit order
trader/types/interface.go:75
↓ 7 callersMethodSyncOrdersFromBinance
SyncOrdersFromBinance syncs Binance Futures trade history to local database Uses COMMISSION detection + fromId for efficient incremental sync Also cre
trader/binance/order_sync.go:25
↓ 7 callersFunctioncalculateATR
calculateATR calculates ATR
market/data_indicators.go:86
↓ 7 callersFunctioncalculateMACD
calculateMACD calculates MACD
market/data_indicators.go:28
↓ 7 callersMethodconvertSymbolBack
convertSymbolBack converts KuCoin format back to generic symbol e.g. XBTUSDTM -> BTCUSDT
trader/kucoin/trader.go:273
↓ 7 callersFunctionensureHyperliquidNativeStrategy
(traderName, exchangeType string, cfg *store.StrategyConfig)
manager/trader_manager.go:414
↓ 7 callersMethodexecute
execute calls the API and returns the response as a string for LLM consumption.
telegram/agent/apicall.go:135
↓ 7 callersFunctionfloatFromMap
(values map[string]interface{}, key string)
api/handler_competition.go:232
↓ 7 callersMethodformatPrice
formatPrice Format price to correct precision and tick size
trader/aster/trader.go:165
↓ 7 callersFunctiongenBitgetClientOid
genBitgetClientOid generates unique client order ID
trader/bitget/trader.go:314
↓ 7 callersFunctionnavigateInApp
(path: string)
web/src/components/common/HeaderBar.tsx:53
↓ 7 callersFunctionparseFloatOrZero
(value string)
api/handler_hyperliquid_wallet.go:388
↓ 7 callersMethodplaceOrderWithBuilderFee
(order hyperliquid.CreateOrderRequest)
trader/hyperliquid/trader_orders.go:26
↓ 7 callersFunctionpow10
pow10 returns 10^n as int64
trader/lighter/trading.go:851
↓ 7 callersMethodput
* PUT request
web/src/lib/httpClient.ts:290
↓ 7 callersFunctionroundDuration
(d time.Duration)
trader/auto_trader_throttle.go:279
↓ 7 callersMethodroundToSzDecimals
roundToSzDecimals rounds quantity to correct precision
trader/hyperliquid/trader.go:254
↓ 7 callersFunctiontrimFloat
(v float64, precision int)
provider/vergex/client.go:652
↓ 6 callersMethodBuildRequestBodyFromRequest
── Advanced (Request-object) path ────────────────────────────────────── BuildRequestBodyFromRequest converts a *Request into the provider's native wi
mcp/hooks.go:27
↓ 6 callersMethodEquity
Equity gets equity storage
store/store.go:261
↓ 6 callersFunctionFormatCoinForAPI
FormatCoinForAPI formats the coin name for Hyperliquid API. Stock perps need xyz:SYMBOL format, crypto uses plain symbol. Decision order: 1. `xyz:` p
provider/hyperliquid/kline.go:533
↓ 6 callersMethodGetActiveOrders
GetActiveOrders Get active orders
trader/lighter/orders.go:204
↓ 6 callersMethodGetCompetitionData
GetCompetitionData retrieves competition data (all traders across platform)
manager/trader_manager.go:199
↓ 6 callersMethodGetConfig
GetConfig gets complete strategy configuration
kernel/engine.go:282
↓ 6 callersMethodGetFullConfig
GetFullConfig gets trader full configuration
store/trader.go:172
↓ 6 callersMethodGetTraderIDs
GetTraderIDs retrieves all trader IDs
manager/trader_manager.go:80
↓ 6 callersMethodGetTradesForSymbol
GetTradesForSymbol retrieves trade history for a specific symbol This is more reliable than using Income API which may have delays
trader/binance/futures_account.go:163
↓ 6 callersFunctionGetWithTimeframes
GetWithTimeframes retrieves market data for specified multiple timeframes timeframes: list of timeframes, e.g. ["5m", "15m", "1h", "4h"] primaryTimefr
market/data.go:148
↓ 6 callersFunctionKline
Kline open free kline from coinank
provider/coinank/coinank_api/kline.go:19
↓ 6 callersFunctionNewLighterTraderV2
NewLighterTraderV2 Create new LIGHTER trader (using official SDK) Parameters: - walletAddr: Ethereum wallet address (required) - apiKeyPrivateKeyHex:
trader/lighter/trader.go:102
↓ 6 callersFunctionNewNoopLogger
NewNoopLogger creates no-op logger (for testing)
mcp/logger.go:22
↓ 6 callersFunctionNormalizeCoinBase
NormalizeCoinBase removes common suffixes to get base symbol
provider/hyperliquid/kline.go:501
↓ 6 callersMethodParseMCPResponse
ParseMCPResponse extracts the plain-text reply from a non-streaming response body.
mcp/hooks.go:31
↓ 6 callersMethodSetMarginMode
SetMarginMode Set position mode (true=cross margin, false=isolated margin)
trader/types/interface.go:66
↓ 6 callersFunctionWithTemperature
WithTemperature sets temperature parameter Usage example: client := mcp.NewClient(mcp.WithTemperature(0.7))
mcp/options.go:106
↓ 6 callersFunctioncontextFromRequest
(req *Request)
mcp/client.go:342
↓ 6 callersFunctioncreateIndodaxTestTrader
(t *testing.T)
trader/indodax/trader_test.go:23
↓ 6 callersFunctioneffectiveHyperliquidUnifiedAccount
(exchangeType string, requested *bool, fallback ...bool)
api/handler_exchange.go:152
↓ 6 callersFunctionenglishOnlyPromptSection
(section string)
kernel/engine_prompt.go:246
↓ 6 callersMethodensureAuthToken
ensureAuthToken Ensure authentication token is valid
trader/lighter/trader.go:376
↓ 6 callersFunctionfmtUsd
(n: number | undefined, signed = false)
web/src/components/terminal/TerminalDashboard.tsx:45
↓ 6 callersFunctiongetEnv
getEnv gets environment variable with default value
store/driver.go:235
↓ 6 callersFunctiongetTraderAvatar
(traderId: string, traderName: string)
web/src/components/common/PunkAvatar.tsx:340
↓ 6 callersFunctionnormalizeMarketType
(marketType string)
provider/vergex/client.go:914
↓ 6 callersFunctionnormalizedDecisionSymbol
(symbol string)
trader/auto_trader_throttle.go:70
↓ 6 callersMethodquantityToLots
quantityToLots converts quantity (in base asset) to lots
trader/kucoin/trader.go:350
↓ 6 callersFunctionsendMarkdownMsg
(bot *tgbotapi.BotAPI, chatID int64, text string)
telegram/bot.go:259
↓ 6 callersFunctionsendMsg
── Helpers ───────────────────────────────────────────────────────────────────
telegram/bot.go:254
↓ 6 callersFunctionsignalMarketType
(item: VergexSignalItem)
web/src/pages/StrategyStudioPage.tsx:327
↓ 6 callersFunctiontraderColor
(traderId: string)
web/src/components/charts/ComparisonChart.tsx:187
↓ 6 callersFunctiontruncateMessages
truncateMessages removes oldest non-system messages until estimated tokens fit within the context limit. Returns the truncated messages and the number
mcp/context_guard.go:42
↓ 6 callersFunctionx402Sleep
(ctx context.Context, d time.Duration)
mcp/payment/x402.go:45
↓ 5 callersMethodAddUserMessage
AddUserMessage adds user message
mcp/request_builder.go:79
↓ 5 callersMethodBuildRequest
(url string, jsonData []byte)
mcp/hooks.go:20
↓ 5 callersMethodBuildSystemPrompt
BuildSystemPrompt builds the system prompt
kernel/prompt_builder.go:25
↓ 5 callersMethodBuildUserPrompt
BuildUserPrompt builds the user prompt with full trading context
kernel/prompt_builder.go:33
↓ 5 callersMethodCancelAllOrders
CancelAllOrders Cancel all pending orders for this symbol
trader/types/interface.go:84
↓ 5 callersMethodClose
Close closes database connection
store/driver.go:99
↓ 5 callersMethodDB
DB gets underlying database connection (for legacy code compatibility) Deprecated: use GormDB() instead
store/store.go:355
↓ 5 callersMethodDebugf
(format string, args ...any)
mcp/logger.go:7
↓ 5 callersMethodError
()
security/url_validator.go:48
↓ 5 callersFunctionFatalf
(format string, args ...interface{})
logger/logger.go:173
↓ 5 callersMethodFormatQuantity
FormatQuantity formats quantity to correct precision
trader/binance/futures_positions.go:244
↓ 5 callersFunctionGetAI500ListCached
GetAI500ListCached returns the AI500 coin list served from a TTL cache. When the upstream fetch fails and stale data exists, the stale board is served
provider/nofxos/ai500_cache.go:31
↓ 5 callersMethodGetAIModel
GetAIModel gets AI model
trader/auto_trader.go:623
↓ 5 callersMethodGetAccountInfo
GetAccountInfo gets account information (for API)
trader/auto_trader_decision.go:98
↓ 5 callersMethodGetCandles
GetCandles fetches historical candlestick data for a symbol coin: symbol name (e.g., "BTC", "TSLA", "AAPL", "xyz:TSLA") interval: "1m", "5m", "15m", "
provider/hyperliquid/kline.go:77
↓ 5 callersMethodGetLoadError
GetLoadError returns the last load error for a trader
manager/trader_manager.go:49
← previousnext →201–300 of 2,846, ranked by callers