MCPcopy Create free account

hub / github.com/NoFxAiOS/nofx / functions

Functions2,846 in github.com/NoFxAiOS/nofx

↓ 4 callersMethodfetchNetFlowRanking
(rankType, duration string, limit int, flowType, trade string)
provider/nofxos/netflow.go:98
↓ 4 callersMethodfetchOIRanking
(rankType, duration string, limit int)
provider/nofxos/oi.go:86
↓ 4 callersFunctionfixMissingQuotes
(jsonStr string)
kernel/engine_analysis.go:378
↓ 4 callersFunctionfmtUsd
(n: number)
web/src/components/terminal/RiskRadar.tsx:18
↓ 4 callersFunctionformatFieldDefEN
formatFieldDefEN formats a field definition in English
kernel/schema.go:545
↓ 4 callersFunctionformatFieldDefZH
formatFieldDefZH formats a field definition in Chinese
kernel/schema.go:532
↓ 4 callersFunctionformatPriceWithDynamicPrecision
formatPriceWithDynamicPrecision dynamically selects precision based on price range This perfectly supports all coins from ultra-low price meme coins (
market/data.go:487
↓ 4 callersFunctionformatSignedPct
(value: number | undefined)
web/src/pages/StrategyStudioPage.tsx:449
↓ 4 callersFunctionformatUSDC
(value?: number)
web/src/components/common/HyperliquidWalletConnect.tsx:153
↓ 4 callersMethodgetContract
getContract gets contract info
trader/kucoin/trader.go:284
↓ 4 callersFunctiongetKlinesFromCoinAnk
Note: Kline data now uses free/open API (coinank_api.Kline) which doesn't require authentication getKlinesFromCoinAnk fetches kline data from CoinAnk
market/data_klines.go:18
↓ 4 callersFunctiongetKlinesFromHyperliquid
getKlinesFromHyperliquid fetches kline data from Hyperliquid API for xyz dex assets
market/data_klines.go:116
↓ 4 callersMethodgetMarketIndex
getMarketIndex Get market index (convert from symbol) - dynamically fetch from API
trader/lighter/trading.go:503
↓ 4 callersMethodgetNonce
getNonce returns a unique incrementing nonce for each request
trader/indodax/trader.go:105
↓ 4 callersFunctiongetPreferredWalletProvider
()
web/src/components/common/HyperliquidWalletConnect.tsx:115
↓ 4 callersFunctionhumanizeTraderSetupReason
(reason string)
api/handler_trader.go:244
↓ 4 callersFunctionkeccak256String
(s string)
mcp/payment/x402.go:642
↓ 4 callersFunctionmetricPct
(value: number | undefined)
web/src/pages/StrategyStudioPage.tsx:455
↓ 4 callersFunctionmodelHasCredential
(model: AIModel)
web/src/pages/StrategyStudioPage.tsx:82
↓ 4 callersFunctionnewIPRateLimiter
newIPRateLimiter creates a limiter that allows bursts up to `burst` requests and then refills at `ratePerSec` tokens/second per client IP.
api/ratelimit.go:39
↓ 4 callersMethodnewVergexClientForRequest
(c *gin.Context)
api/handler_vergex.go:98
↓ 4 callersMethodparseOrderResult
(result *bybit.ServerResponse)
trader/bybit/trader.go:185
↓ 4 callersFunctionpatchAI
(patch: Partial<AIStrategyConfig>)
web/src/pages/StrategyStudioPage.tsx:1247
↓ 4 callersMethodplaceXyzOrder
placeXyzOrder places an order on the xyz dex (stocks, forex, commodities) Note: xyz dex orders use builder-deployed perpetuals and require different h
trader/hyperliquid/trader_orders.go:616
↓ 4 callersMethodpost
* POST request
web/src/lib/httpClient.ts:279
↓ 4 callersMethodrecordAndConfirmOrder
recordAndConfirmOrder polls order status for actual fill data and records position action: open_long, open_short, close_long, close_short entryPrice:
trader/auto_trader_decision.go:245
↓ 4 callersFunctionshortAddress
(address?: string)
web/src/components/common/HyperliquidWalletConnect.tsx:84
↓ 4 callersFunctionsideBarWidth
(value: number | undefined, maxValue: number)
web/src/pages/StrategyStudioPage.tsx:801
↓ 4 callersMethodsign
sign generates HMAC-SHA512 signature for request body
trader/indodax/trader.go:113
↓ 4 callersFunctiontraderCreationRequestError
(reason string)
api/handler_trader.go:69
↓ 4 callersFunctiontraderSetupReasonParams
(err error, fallback string, kv ...string)
api/handler_trader.go:249
↓ 4 callersMethodusesHyperliquidNativeUniverse
()
kernel/engine.go:247
↓ 4 callersFunctionwalletAddressFromPrivateKey
(privateKey string)
api/handler_onboarding.go:224
↓ 4 callersFunctionwithDefault
(value, fallback string)
api/handler_vergex.go:132
↓ 4 callersFunctionwithFallbackIfEmpty
(text string, raw json.RawMessage)
provider/vergex/client.go:691
↓ 4 callersFunctionwithStubbedPerpDexFetch
withStubbedPerpDexFetch swaps the live fetch function and resets the cache, restoring both when the test finishes.
provider/hyperliquid/perp_dex_cache_test.go:13
↓ 4 callersFunctiony
(v: number)
web/src/components/terminal/Candles.tsx:29
↓ 3 callersFunctionBaseCoinSymbols
BaseCoinSymbols get base coin from coinank free open api , all params is optional
provider/coinank/coinank_api/base_coin.go:11
↓ 3 callersMethodDecryptSensitiveData
(payload *EncryptedPayload)
crypto/crypto.go:355
↓ 3 callersMethodDirectionalCandidates
DirectionalCandidates returns bullish (long) and bearish (short) candidate symbols from the most recent Vergex signal ranking, each ordered by upstrea
kernel/engine.go:884
↓ 3 callersFunctionFormatAnalysisForAI
(analysis *MarketAnalysis)
provider/vergex/client.go:344
↓ 3 callersFunctionGenerateJWT
GenerateJWT generates JWT token
auth/auth.go:85
↓ 3 callersMethodGetAI500List
GetAI500List retrieves AI500 coin list with retry mechanism
provider/nofxos/ai500.go:34
↓ 3 callersFunctionGetBoxData
GetBoxData fetches 1h klines and calculates box data for a symbol
market/data_klines.go:404
↓ 3 callersMethodGetBuySellRatio
GetBuySellRatio returns the buy and sell ratio for this direction biasRatio is the ratio for biased directions (default 0.7 means 70%/30%)
market/types.go:243
↓ 3 callersMethodGetByEmail
GetByEmail gets user by email
store/user.go:67
↓ 3 callersMethodGetByID
GetByID gets user by ID
store/user.go:77
↓ 3 callersMethodGetClosedPositionsByTraderFilters
GetClosedPositionsByTraderFilters gets closed positions for explicit trader IDs and legacy trader ID patterns. Patterns are used only for same-user Au
store/position.go:425
↓ 3 callersFunctionGetContextLimit
GetContextLimit returns the context limit for a given provider
store/strategy.go:1287
↓ 3 callersMethodGetLanguage
Set UI language ("en" or "zh")
store/telegram_config.go:45
↓ 3 callersMethodGetLastFillTimeByExchange
GetLastFillTimeByExchange returns the most recent fill time (Unix ms) for a given exchange Used to recover sync state after service restart
store/order.go:406
↓ 3 callersMethodGetMarketPrice
GetMarketPrice gets the current market price for a symbol
trader/indodax/trader_orders.go:136
↓ 3 callersFunctionGetModelPrice
GetModelPrice returns the price per call for a given model
store/ai_charge.go:42
↓ 3 callersMethodGetOITopPositions
GetOITopPositions retrieves top OI increase positions (legacy compatibility)
provider/nofxos/oi.go:108
↓ 3 callersMethodGetPositions
GetPositions Get position information
trader/aster/trader_positions.go:12
↓ 3 callersFunctionGetProvider
GetProvider returns the singleton CoinProvider instance
provider/hyperliquid/coins.go:67
↓ 3 callersMethodGetSignalRanking
(ctx context.Context, q Query)
provider/vergex/client.go:104
↓ 3 callersMethodGetSystemPromptTemplate
GetSystemPromptTemplate gets current system prompt template name (from strategy config)
trader/auto_trader.go:653
↓ 3 callersMethodGetTopTradersData
GetTopTradersData retrieves top 5 traders data (for performance comparison)
manager/trader_manager.go:367
↓ 3 callersFunctionHashPassword
HashPassword hashes the password
auth/auth.go:73
↓ 3 callersFunctionHookExec
(key string, args ...any)
hook/hooks.go:14
↓ 3 callersFunctionInit
============================================================================ Initialization functions ================================================
logger/logger.go:66
↓ 3 callersMethodInitTables
InitTables initializes grid-related tables
store/grid.go:222
↓ 3 callersFunctionIsEnabled
()
telemetry/experience.go:96
↓ 3 callersFunctionNew
New creates default client (backward compatible) Deprecated: Recommend using NewClient(...opts) for better flexibility
mcp/client.go:90
↓ 3 callersFunctionNewBitgetTrader
NewBitgetTrader creates a Bitget trader
trader/bitget/trader.go:84
↓ 3 callersFunctionNewBybitTrader
NewBybitTrader creates a Bybit trader
trader/bybit/trader.go:43
↓ 3 callersFunctionNewOKXTrader
NewOKXTrader creates OKX trader
trader/okx/trader.go:112
↓ 3 callersFunctionNewTraderTestSuite
NewTraderTestSuite Create new base test suite
trader/testutil/test_suite.go:25
↓ 3 callersFunctionNewUserMessage
NewUserMessage creates a user message
mcp/request.go:91
↓ 3 callersFunctionNewWithConfig
NewWithConfig creates new Store instance with provided database configuration
store/store.go:69
↓ 3 callersMethodParseConfig
ParseConfig parse strategy configuration JSON
store/strategy.go:1215
↓ 3 callersFunctionParseSignalRanking
(body []byte)
provider/vergex/client.go:202
↓ 3 callersMethodPlaceLimitOrder
PlaceLimitOrder places a limit order at specified price Returns order ID and status
trader/types/interface.go:152
↓ 3 callersFunctionQueryUSDCBalance
QueryUSDCBalance queries USDC balance on Base chain. RPC / decode failures are surfaced as errors so callers can distinguish a real zero balance from
wallet/usdc.go:24
↓ 3 callersMethodReset
Reset clears short-term history (LongTerm preserved intentionally)
telegram/session/memory.go:58
↓ 3 callersFunctionSafeHTTPClient
SafeHTTPClient returns an HTTP client with SSRF protection It validates URLs and blocks requests to private networks
security/url_validator.go:158
↓ 3 callersFunctionSanitizeExchangeConfigForLog
SanitizeExchangeConfigForLog Sanitize exchange configuration for log output. Takes the same ExchangeConfigUpdate type used by the request handler so e
api/utils.go:39
↓ 3 callersMethodSetConfig
SetConfig set strategy configuration
store/strategy.go:1224
↓ 3 callersMethodSetLeverage
SetLeverage sets leverage (with smart detection and cooldown period)
trader/binance/futures_positions.go:120
↓ 3 callersMethodSetLeverage
SetLeverage sets leverage
trader/bybit/trader_orders.go:192
↓ 3 callersMethodSetLeverage
SetLeverage Set leverage (implements Trader interface) Lighter uses InitialMarginFraction to represent leverage: - InitialMarginFraction = (100 / leve
trader/lighter/trading.go:625
↓ 3 callersMethodSetLeverage
SetLeverage sets leverage
trader/bitget/trader_account.go:110
↓ 3 callersMethodSetLeverage
SetLeverage sets leverage
trader/hyperliquid/trader_positions.go:154
↓ 3 callersMethodSetLeverage
SetLeverage sets leverage
trader/okx/trader_account.go:116
↓ 3 callersMethodStopAll
StopAll stops all traders
manager/trader_manager.go:108
↓ 3 callersMethodString
String returns a safe string representation of TelegramConfig with the token masked.
store/telegram_config.go:26
↓ 3 callersMethodSubscribe
Subscribe subscribe depth
provider/coinank/coinank_api/depth_ws.go:32
↓ 3 callersMethodUpdate
Update updates exchange configuration by UUID
store/exchange.go:292
↓ 3 callersMethodUpdateInitialBalance
UpdateInitialBalance updates initial balance
store/trader.go:146
↓ 3 callersMethodUpdatePositionQuantityAndPrice
UpdatePositionQuantityAndPrice updates position quantity and recalculates entry price
store/position.go:213
↓ 3 callersMethodUpdateStatus
UpdateStatus updates trader running status
store/trader.go:94
↓ 3 callersFunctionWithRetryWaitBase
WithRetryWaitBase sets base retry wait duration Usage example: client := mcp.NewClient(mcp.WithRetryWaitBase(3 * time.Second))
mcp/options.go:69
↓ 3 callersMethodWithTemperature
============================================================ Parameter Control Methods ============================================================ Wi
mcp/request_builder.go:123
↓ 3 callersMethodWithToolChoice
WithToolChoice sets tool choice strategy - "auto": automatically choose whether to call tools - "none": don't call tools - Can also specify a specific
mcp/request_builder.go:215
↓ 3 callersFunctionXYZCategory
XYZCategory returns the NOFX product category for a Hyperliquid XYZ base symbol.
provider/hyperliquid/coins.go:34
↓ 3 callersFunctionadaptivePriceRound
adaptivePriceRound rounds a price based on its magnitude to preserve meaningful precision. For small prices (like meme coins), it preserves more decim
store/position.go:16
↓ 3 callersFunctionassertVergexSignalDefault
(t *testing.T, cfg StrategyConfig)
store/strategy_hyperliquid_defaults_test.go:37
↓ 3 callersFunctionbuildExchangeProbeTrader
(exchangeCfg *store.Exchange, userID string)
api/exchange_account_state.go:225
↓ 3 callersMethodbuildHTTPRequestWithContext
(ctx context.Context, url string, jsonData []byte)
mcp/client.go:349
← previousnext →401–500 of 2,846, ranked by callers