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
↓ 4 callers
Method
fetchNetFlowRanking
(rankType, duration string, limit int, flowType, trade string)
provider/nofxos/netflow.go:98
↓ 4 callers
Method
fetchOIRanking
(rankType, duration string, limit int)
provider/nofxos/oi.go:86
↓ 4 callers
Function
fixMissingQuotes
(jsonStr string)
kernel/engine_analysis.go:378
↓ 4 callers
Function
fmtUsd
(n: number)
web/src/components/terminal/RiskRadar.tsx:18
↓ 4 callers
Function
formatFieldDefEN
formatFieldDefEN formats a field definition in English
kernel/schema.go:545
↓ 4 callers
Function
formatFieldDefZH
formatFieldDefZH formats a field definition in Chinese
kernel/schema.go:532
↓ 4 callers
Function
formatPriceWithDynamicPrecision
formatPriceWithDynamicPrecision dynamically selects precision based on price range This perfectly supports all coins from ultra-low price meme coins (
market/data.go:487
↓ 4 callers
Function
formatSignedPct
(value: number | undefined)
web/src/pages/StrategyStudioPage.tsx:449
↓ 4 callers
Function
formatUSDC
(value?: number)
web/src/components/common/HyperliquidWalletConnect.tsx:153
↓ 4 callers
Method
getContract
getContract gets contract info
trader/kucoin/trader.go:284
↓ 4 callers
Function
getKlinesFromCoinAnk
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 callers
Function
getKlinesFromHyperliquid
getKlinesFromHyperliquid fetches kline data from Hyperliquid API for xyz dex assets
market/data_klines.go:116
↓ 4 callers
Method
getMarketIndex
getMarketIndex Get market index (convert from symbol) - dynamically fetch from API
trader/lighter/trading.go:503
↓ 4 callers
Method
getNonce
getNonce returns a unique incrementing nonce for each request
trader/indodax/trader.go:105
↓ 4 callers
Function
getPreferredWalletProvider
()
web/src/components/common/HyperliquidWalletConnect.tsx:115
↓ 4 callers
Function
humanizeTraderSetupReason
(reason string)
api/handler_trader.go:244
↓ 4 callers
Function
keccak256String
(s string)
mcp/payment/x402.go:642
↓ 4 callers
Function
metricPct
(value: number | undefined)
web/src/pages/StrategyStudioPage.tsx:455
↓ 4 callers
Function
modelHasCredential
(model: AIModel)
web/src/pages/StrategyStudioPage.tsx:82
↓ 4 callers
Function
newIPRateLimiter
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 callers
Method
newVergexClientForRequest
(c *gin.Context)
api/handler_vergex.go:98
↓ 4 callers
Method
parseOrderResult
(result *bybit.ServerResponse)
trader/bybit/trader.go:185
↓ 4 callers
Function
patchAI
(patch: Partial<AIStrategyConfig>)
web/src/pages/StrategyStudioPage.tsx:1247
↓ 4 callers
Method
placeXyzOrder
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 callers
Method
post
* POST request
web/src/lib/httpClient.ts:279
↓ 4 callers
Method
recordAndConfirmOrder
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 callers
Function
shortAddress
(address?: string)
web/src/components/common/HyperliquidWalletConnect.tsx:84
↓ 4 callers
Function
sideBarWidth
(value: number | undefined, maxValue: number)
web/src/pages/StrategyStudioPage.tsx:801
↓ 4 callers
Method
sign
sign generates HMAC-SHA512 signature for request body
trader/indodax/trader.go:113
↓ 4 callers
Function
traderCreationRequestError
(reason string)
api/handler_trader.go:69
↓ 4 callers
Function
traderSetupReasonParams
(err error, fallback string, kv ...string)
api/handler_trader.go:249
↓ 4 callers
Method
usesHyperliquidNativeUniverse
()
kernel/engine.go:247
↓ 4 callers
Function
walletAddressFromPrivateKey
(privateKey string)
api/handler_onboarding.go:224
↓ 4 callers
Function
withDefault
(value, fallback string)
api/handler_vergex.go:132
↓ 4 callers
Function
withFallbackIfEmpty
(text string, raw json.RawMessage)
provider/vergex/client.go:691
↓ 4 callers
Function
withStubbedPerpDexFetch
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 callers
Function
y
(v: number)
web/src/components/terminal/Candles.tsx:29
↓ 3 callers
Function
BaseCoinSymbols
BaseCoinSymbols get base coin from coinank free open api , all params is optional
provider/coinank/coinank_api/base_coin.go:11
↓ 3 callers
Method
DecryptSensitiveData
(payload *EncryptedPayload)
crypto/crypto.go:355
↓ 3 callers
Method
DirectionalCandidates
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 callers
Function
FormatAnalysisForAI
(analysis *MarketAnalysis)
provider/vergex/client.go:344
↓ 3 callers
Function
GenerateJWT
GenerateJWT generates JWT token
auth/auth.go:85
↓ 3 callers
Method
GetAI500List
GetAI500List retrieves AI500 coin list with retry mechanism
provider/nofxos/ai500.go:34
↓ 3 callers
Function
GetBoxData
GetBoxData fetches 1h klines and calculates box data for a symbol
market/data_klines.go:404
↓ 3 callers
Method
GetBuySellRatio
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 callers
Method
GetByEmail
GetByEmail gets user by email
store/user.go:67
↓ 3 callers
Method
GetByID
GetByID gets user by ID
store/user.go:77
↓ 3 callers
Method
GetClosedPositionsByTraderFilters
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 callers
Function
GetContextLimit
GetContextLimit returns the context limit for a given provider
store/strategy.go:1287
↓ 3 callers
Method
GetLanguage
Set UI language ("en" or "zh")
store/telegram_config.go:45
↓ 3 callers
Method
GetLastFillTimeByExchange
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 callers
Method
GetMarketPrice
GetMarketPrice gets the current market price for a symbol
trader/indodax/trader_orders.go:136
↓ 3 callers
Function
GetModelPrice
GetModelPrice returns the price per call for a given model
store/ai_charge.go:42
↓ 3 callers
Method
GetOITopPositions
GetOITopPositions retrieves top OI increase positions (legacy compatibility)
provider/nofxos/oi.go:108
↓ 3 callers
Method
GetPositions
GetPositions Get position information
trader/aster/trader_positions.go:12
↓ 3 callers
Function
GetProvider
GetProvider returns the singleton CoinProvider instance
provider/hyperliquid/coins.go:67
↓ 3 callers
Method
GetSignalRanking
(ctx context.Context, q Query)
provider/vergex/client.go:104
↓ 3 callers
Method
GetSystemPromptTemplate
GetSystemPromptTemplate gets current system prompt template name (from strategy config)
trader/auto_trader.go:653
↓ 3 callers
Method
GetTopTradersData
GetTopTradersData retrieves top 5 traders data (for performance comparison)
manager/trader_manager.go:367
↓ 3 callers
Function
HashPassword
HashPassword hashes the password
auth/auth.go:73
↓ 3 callers
Function
HookExec
(key string, args ...any)
hook/hooks.go:14
↓ 3 callers
Function
Init
============================================================================ Initialization functions ================================================
logger/logger.go:66
↓ 3 callers
Method
InitTables
InitTables initializes grid-related tables
store/grid.go:222
↓ 3 callers
Function
IsEnabled
()
telemetry/experience.go:96
↓ 3 callers
Function
New
New creates default client (backward compatible) Deprecated: Recommend using NewClient(...opts) for better flexibility
mcp/client.go:90
↓ 3 callers
Function
NewBitgetTrader
NewBitgetTrader creates a Bitget trader
trader/bitget/trader.go:84
↓ 3 callers
Function
NewBybitTrader
NewBybitTrader creates a Bybit trader
trader/bybit/trader.go:43
↓ 3 callers
Function
NewOKXTrader
NewOKXTrader creates OKX trader
trader/okx/trader.go:112
↓ 3 callers
Function
NewTraderTestSuite
NewTraderTestSuite Create new base test suite
trader/testutil/test_suite.go:25
↓ 3 callers
Function
NewUserMessage
NewUserMessage creates a user message
mcp/request.go:91
↓ 3 callers
Function
NewWithConfig
NewWithConfig creates new Store instance with provided database configuration
store/store.go:69
↓ 3 callers
Method
ParseConfig
ParseConfig parse strategy configuration JSON
store/strategy.go:1215
↓ 3 callers
Function
ParseSignalRanking
(body []byte)
provider/vergex/client.go:202
↓ 3 callers
Method
PlaceLimitOrder
PlaceLimitOrder places a limit order at specified price Returns order ID and status
trader/types/interface.go:152
↓ 3 callers
Function
QueryUSDCBalance
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 callers
Method
Reset
Reset clears short-term history (LongTerm preserved intentionally)
telegram/session/memory.go:58
↓ 3 callers
Function
SafeHTTPClient
SafeHTTPClient returns an HTTP client with SSRF protection It validates URLs and blocks requests to private networks
security/url_validator.go:158
↓ 3 callers
Function
SanitizeExchangeConfigForLog
SanitizeExchangeConfigForLog Sanitize exchange configuration for log output. Takes the same ExchangeConfigUpdate type used by the request handler so e
api/utils.go:39
↓ 3 callers
Method
SetConfig
SetConfig set strategy configuration
store/strategy.go:1224
↓ 3 callers
Method
SetLeverage
SetLeverage sets leverage (with smart detection and cooldown period)
trader/binance/futures_positions.go:120
↓ 3 callers
Method
SetLeverage
SetLeverage sets leverage
trader/bybit/trader_orders.go:192
↓ 3 callers
Method
SetLeverage
SetLeverage Set leverage (implements Trader interface) Lighter uses InitialMarginFraction to represent leverage: - InitialMarginFraction = (100 / leve
trader/lighter/trading.go:625
↓ 3 callers
Method
SetLeverage
SetLeverage sets leverage
trader/bitget/trader_account.go:110
↓ 3 callers
Method
SetLeverage
SetLeverage sets leverage
trader/hyperliquid/trader_positions.go:154
↓ 3 callers
Method
SetLeverage
SetLeverage sets leverage
trader/okx/trader_account.go:116
↓ 3 callers
Method
StopAll
StopAll stops all traders
manager/trader_manager.go:108
↓ 3 callers
Method
String
String returns a safe string representation of TelegramConfig with the token masked.
store/telegram_config.go:26
↓ 3 callers
Method
Subscribe
Subscribe subscribe depth
provider/coinank/coinank_api/depth_ws.go:32
↓ 3 callers
Method
Update
Update updates exchange configuration by UUID
store/exchange.go:292
↓ 3 callers
Method
UpdateInitialBalance
UpdateInitialBalance updates initial balance
store/trader.go:146
↓ 3 callers
Method
UpdatePositionQuantityAndPrice
UpdatePositionQuantityAndPrice updates position quantity and recalculates entry price
store/position.go:213
↓ 3 callers
Method
UpdateStatus
UpdateStatus updates trader running status
store/trader.go:94
↓ 3 callers
Function
WithRetryWaitBase
WithRetryWaitBase sets base retry wait duration Usage example: client := mcp.NewClient(mcp.WithRetryWaitBase(3 * time.Second))
mcp/options.go:69
↓ 3 callers
Method
WithTemperature
============================================================ Parameter Control Methods ============================================================ Wi
mcp/request_builder.go:123
↓ 3 callers
Method
WithToolChoice
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 callers
Function
XYZCategory
XYZCategory returns the NOFX product category for a Hyperliquid XYZ base symbol.
provider/hyperliquid/coins.go:34
↓ 3 callers
Function
adaptivePriceRound
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 callers
Function
assertVergexSignalDefault
(t *testing.T, cfg StrategyConfig)
store/strategy_hyperliquid_defaults_test.go:37
↓ 3 callers
Function
buildExchangeProbeTrader
(exchangeCfg *store.Exchange, userID string)
api/exchange_account_state.go:225
↓ 3 callers
Method
buildHTTPRequestWithContext
(ctx context.Context, url string, jsonData []byte)
mcp/client.go:349
← previous
next →
401–500 of 2,846, ranked by callers