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
↓ 8 callers
Function
calculateIntradaySeries
calculateIntradaySeries calculates intraday series data
market/data_klines.go:308
↓ 8 callers
Method
delete
* DELETE request
web/src/lib/httpClient.ts:301
↓ 8 callers
Function
floatEqual
floatEqual compares two floats with tolerance
trader/binance/sync_verify_test.go:410
↓ 8 callers
Function
fmtUsd
(n: number)
web/src/components/terminal/LiquidationMap.tsx:21
↓ 8 callers
Function
formatPrice
(price: number)
web/src/components/strategy/GridRiskPanel.tsx:78
↓ 8 callers
Method
formatQuantity
formatQuantity Format quantity to correct precision and step size
trader/aster/trader.go:182
↓ 8 callers
Function
formatUSDAmount
(v float64)
provider/vergex/client.go:634
↓ 8 callers
Function
get
(ctx context.Context, path string, paramsMap map[string]string)
provider/coinank/coinank_api/kline.go:55
↓ 8 callers
Function
getBrOrderID
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 callers
Function
handleInputChange
(field: keyof FormState, value: any)
web/src/components/trader/TraderConfigModal.tsx:164
↓ 8 callers
Method
marginMode
()
trader/okx/trader.go:148
↓ 8 callers
Function
mockAPIServer
mockAPIServer creates a test HTTP server with configurable route handlers.
telegram/agent/agent_test.go:90
↓ 8 callers
Function
newTestOKXTrader
(rt *recordingTransport, isCrossMargin bool)
trader/okx/trader_margin_mode_test.go:65
↓ 8 callers
Function
parseFloat
parseFloat parses a string to float64, returns 0 for empty string
trader/lighter/types.go:107
↓ 8 callers
Function
parseFloat
parseFloat safely parses a float from interface{}
trader/indodax/trader.go:301
↓ 8 callers
Function
simplifyConfig
( config: StrategyConfig | null | undefined )
web/src/pages/StrategyStudioPage.tsx:300
↓ 8 callers
Function
toFloat64
(v any)
provider/coinank/coinank_api/kline_ws.go:159
↓ 8 callers
Function
universeBaseKey
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 callers
Function
writeAPIError
(c *gin.Context, statusCode int, publicMsg, errorKey string, errorParams map[string]string)
api/errors.go:17
↓ 7 callers
Method
BuildMCPRequestBody
(systemPrompt, userPrompt string)
mcp/hooks.go:16
↓ 7 callers
Method
Decision
Decision gets decision log storage
store/store.go:231
↓ 7 callers
Method
FormatQuantity
FormatQuantity formats quantity
trader/bybit/trader.go:150
↓ 7 callers
Method
FormatQuantity
FormatQuantity formats quantity
trader/bitget/trader.go:291
↓ 7 callers
Method
GetExchange
GetExchange gets exchange
trader/auto_trader.go:628
↓ 7 callers
Method
GetOpenPositionBySymbol
GetOpenPositionBySymbol gets open position for specified symbol and direction
store/position.go:351
↓ 7 callers
Method
GetTrades
GetTrades retrieves trade/fill records from KuCoin
trader/kucoin/order_sync.go:31
↓ 7 callers
Method
InitTables
InitTables initializes position tables
store/position.go:144
↓ 7 callers
Method
MarshalRequestBody
(requestBody map[string]any)
mcp/hooks.go:22
↓ 7 callers
Function
NewDeepSeekClientWithOptions
NewDeepSeekClientWithOptions creates DeepSeek client (supports options pattern)
mcp/provider/deepseek.go:29
↓ 7 callers
Function
SanitizeError
SanitizeError returns the error message if safe, otherwise returns a generic message
api/errors.go:118
↓ 7 callers
Method
SetStopLoss
SetStopLoss Set stop-loss order
trader/types/interface.go:72
↓ 7 callers
Method
SetSuccessResponse
SetSuccessResponse sets success response
mcp/mock_test.go:198
↓ 7 callers
Method
SetTakeProfit
SetTakeProfit Set take-profit order
trader/types/interface.go:75
↓ 7 callers
Method
SyncOrdersFromBinance
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 callers
Function
calculateATR
calculateATR calculates ATR
market/data_indicators.go:86
↓ 7 callers
Function
calculateMACD
calculateMACD calculates MACD
market/data_indicators.go:28
↓ 7 callers
Method
convertSymbolBack
convertSymbolBack converts KuCoin format back to generic symbol e.g. XBTUSDTM -> BTCUSDT
trader/kucoin/trader.go:273
↓ 7 callers
Function
ensureHyperliquidNativeStrategy
(traderName, exchangeType string, cfg *store.StrategyConfig)
manager/trader_manager.go:414
↓ 7 callers
Method
execute
execute calls the API and returns the response as a string for LLM consumption.
telegram/agent/apicall.go:135
↓ 7 callers
Function
floatFromMap
(values map[string]interface{}, key string)
api/handler_competition.go:232
↓ 7 callers
Method
formatPrice
formatPrice Format price to correct precision and tick size
trader/aster/trader.go:165
↓ 7 callers
Function
genBitgetClientOid
genBitgetClientOid generates unique client order ID
trader/bitget/trader.go:314
↓ 7 callers
Function
navigateInApp
(path: string)
web/src/components/common/HeaderBar.tsx:53
↓ 7 callers
Function
parseFloatOrZero
(value string)
api/handler_hyperliquid_wallet.go:388
↓ 7 callers
Method
placeOrderWithBuilderFee
(order hyperliquid.CreateOrderRequest)
trader/hyperliquid/trader_orders.go:26
↓ 7 callers
Function
pow10
pow10 returns 10^n as int64
trader/lighter/trading.go:851
↓ 7 callers
Method
put
* PUT request
web/src/lib/httpClient.ts:290
↓ 7 callers
Function
roundDuration
(d time.Duration)
trader/auto_trader_throttle.go:279
↓ 7 callers
Method
roundToSzDecimals
roundToSzDecimals rounds quantity to correct precision
trader/hyperliquid/trader.go:254
↓ 7 callers
Function
trimFloat
(v float64, precision int)
provider/vergex/client.go:652
↓ 6 callers
Method
BuildRequestBodyFromRequest
── Advanced (Request-object) path ────────────────────────────────────── BuildRequestBodyFromRequest converts a *Request into the provider's native wi
mcp/hooks.go:27
↓ 6 callers
Method
Equity
Equity gets equity storage
store/store.go:261
↓ 6 callers
Function
FormatCoinForAPI
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 callers
Method
GetActiveOrders
GetActiveOrders Get active orders
trader/lighter/orders.go:204
↓ 6 callers
Method
GetCompetitionData
GetCompetitionData retrieves competition data (all traders across platform)
manager/trader_manager.go:199
↓ 6 callers
Method
GetConfig
GetConfig gets complete strategy configuration
kernel/engine.go:282
↓ 6 callers
Method
GetFullConfig
GetFullConfig gets trader full configuration
store/trader.go:172
↓ 6 callers
Method
GetTraderIDs
GetTraderIDs retrieves all trader IDs
manager/trader_manager.go:80
↓ 6 callers
Method
GetTradesForSymbol
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 callers
Function
GetWithTimeframes
GetWithTimeframes retrieves market data for specified multiple timeframes timeframes: list of timeframes, e.g. ["5m", "15m", "1h", "4h"] primaryTimefr
market/data.go:148
↓ 6 callers
Function
Kline
Kline open free kline from coinank
provider/coinank/coinank_api/kline.go:19
↓ 6 callers
Function
NewLighterTraderV2
NewLighterTraderV2 Create new LIGHTER trader (using official SDK) Parameters: - walletAddr: Ethereum wallet address (required) - apiKeyPrivateKeyHex:
trader/lighter/trader.go:102
↓ 6 callers
Function
NewNoopLogger
NewNoopLogger creates no-op logger (for testing)
mcp/logger.go:22
↓ 6 callers
Function
NormalizeCoinBase
NormalizeCoinBase removes common suffixes to get base symbol
provider/hyperliquid/kline.go:501
↓ 6 callers
Method
ParseMCPResponse
ParseMCPResponse extracts the plain-text reply from a non-streaming response body.
mcp/hooks.go:31
↓ 6 callers
Method
SetMarginMode
SetMarginMode Set position mode (true=cross margin, false=isolated margin)
trader/types/interface.go:66
↓ 6 callers
Function
WithTemperature
WithTemperature sets temperature parameter Usage example: client := mcp.NewClient(mcp.WithTemperature(0.7))
mcp/options.go:106
↓ 6 callers
Function
contextFromRequest
(req *Request)
mcp/client.go:342
↓ 6 callers
Function
createIndodaxTestTrader
(t *testing.T)
trader/indodax/trader_test.go:23
↓ 6 callers
Function
effectiveHyperliquidUnifiedAccount
(exchangeType string, requested *bool, fallback ...bool)
api/handler_exchange.go:152
↓ 6 callers
Function
englishOnlyPromptSection
(section string)
kernel/engine_prompt.go:246
↓ 6 callers
Method
ensureAuthToken
ensureAuthToken Ensure authentication token is valid
trader/lighter/trader.go:376
↓ 6 callers
Function
fmtUsd
(n: number | undefined, signed = false)
web/src/components/terminal/TerminalDashboard.tsx:45
↓ 6 callers
Function
getEnv
getEnv gets environment variable with default value
store/driver.go:235
↓ 6 callers
Function
getTraderAvatar
(traderId: string, traderName: string)
web/src/components/common/PunkAvatar.tsx:340
↓ 6 callers
Function
normalizeMarketType
(marketType string)
provider/vergex/client.go:914
↓ 6 callers
Function
normalizedDecisionSymbol
(symbol string)
trader/auto_trader_throttle.go:70
↓ 6 callers
Method
quantityToLots
quantityToLots converts quantity (in base asset) to lots
trader/kucoin/trader.go:350
↓ 6 callers
Function
sendMarkdownMsg
(bot *tgbotapi.BotAPI, chatID int64, text string)
telegram/bot.go:259
↓ 6 callers
Function
sendMsg
── Helpers ───────────────────────────────────────────────────────────────────
telegram/bot.go:254
↓ 6 callers
Function
signalMarketType
(item: VergexSignalItem)
web/src/pages/StrategyStudioPage.tsx:327
↓ 6 callers
Function
traderColor
(traderId: string)
web/src/components/charts/ComparisonChart.tsx:187
↓ 6 callers
Function
truncateMessages
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 callers
Function
x402Sleep
(ctx context.Context, d time.Duration)
mcp/payment/x402.go:45
↓ 5 callers
Method
AddUserMessage
AddUserMessage adds user message
mcp/request_builder.go:79
↓ 5 callers
Method
BuildRequest
(url string, jsonData []byte)
mcp/hooks.go:20
↓ 5 callers
Method
BuildSystemPrompt
BuildSystemPrompt builds the system prompt
kernel/prompt_builder.go:25
↓ 5 callers
Method
BuildUserPrompt
BuildUserPrompt builds the user prompt with full trading context
kernel/prompt_builder.go:33
↓ 5 callers
Method
CancelAllOrders
CancelAllOrders Cancel all pending orders for this symbol
trader/types/interface.go:84
↓ 5 callers
Method
Close
Close closes database connection
store/driver.go:99
↓ 5 callers
Method
DB
DB gets underlying database connection (for legacy code compatibility) Deprecated: use GormDB() instead
store/store.go:355
↓ 5 callers
Method
Debugf
(format string, args ...any)
mcp/logger.go:7
↓ 5 callers
Method
Error
()
security/url_validator.go:48
↓ 5 callers
Function
Fatalf
(format string, args ...interface{})
logger/logger.go:173
↓ 5 callers
Method
FormatQuantity
FormatQuantity formats quantity to correct precision
trader/binance/futures_positions.go:244
↓ 5 callers
Function
GetAI500ListCached
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 callers
Method
GetAIModel
GetAIModel gets AI model
trader/auto_trader.go:623
↓ 5 callers
Method
GetAccountInfo
GetAccountInfo gets account information (for API)
trader/auto_trader_decision.go:98
↓ 5 callers
Method
GetCandles
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 callers
Method
GetLoadError
GetLoadError returns the last load error for a trader
manager/trader_manager.go:49
← previous
next →
201–300 of 2,846, ranked by callers