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
↓ 2 callers
Method
ExistsWithExchangePositionID
ExistsWithExchangePositionID checks if a position exists
store/position.go:464
↓ 2 callers
Method
FetchNetFlowRankingData
FetchNetFlowRankingData fetches market-wide NetFlow ranking data
kernel/engine.go:1425
↓ 2 callers
Method
FetchOIRankingData
FetchOIRankingData fetches market-wide OI ranking data
kernel/engine.go:1390
↓ 2 callers
Method
FetchPriceRankingData
FetchPriceRankingData fetches market-wide price ranking data (gainers/losers)
kernel/engine.go:1461
↓ 2 callers
Method
FetchQuantDataBatch
FetchQuantDataBatch batch fetches quantitative data
kernel/engine.go:1092
↓ 2 callers
Method
FetchVergexDataBatch
(ctx context.Context, symbols []string)
kernel/engine.go:1113
↓ 2 callers
Function
FormatDecisionExample
========== Helper Functions ========== FormatDecisionExample formats a decision example (for documentation)
kernel/prompt_builder.go:317
↓ 2 callers
Function
FormatOIRankingForAI
FormatOIRankingForAI formats OI ranking data for AI consumption
provider/nofxos/oi.go:158
↓ 2 callers
Method
GetAllCoins
GetAllCoins returns all available Hyperliquid perp coins
provider/hyperliquid/coins.go:259
↓ 2 callers
Method
GetAllMidsWithDex
GetAllMidsWithDex fetches current mid prices for a specific dex
provider/hyperliquid/kline.go:150
↓ 2 callers
Method
GetAllTraders
GetAllTraders retrieves all traders
manager/trader_manager.go:68
↓ 2 callers
Method
GetClosedPnL
GetClosedPnL Get closed position PnL records from exchange startTime: start time for query (usually last sync time) limit: max number of records to re
trader/types/interface.go:100
↓ 2 callers
Method
GetClosedPositions
GetClosedPositions gets closed positions
store/position.go:384
↓ 2 callers
Method
GetCoinData
GetCoinData retrieves quantitative data for a single coin
provider/nofxos/coin.go:54
↓ 2 callers
Method
GetCostLiquidationHeatmap
(ctx context.Context, q Query)
provider/vergex/client.go:123
↓ 2 callers
Method
GetDefault
GetDefault retrieves the default enabled AI model
store/ai_model.go:131
↓ 2 callers
Method
GetDirectionStatsByTraderFilters
GetDirectionStatsByTraderFilters analyzes long vs short performance for explicit trader IDs plus optional legacy trader ID patterns.
store/position_query.go:386
↓ 2 callers
Function
GetFullDecisionWithStrategy
GetFullDecisionWithStrategy uses StrategyEngine to get AI decision (unified prompt generation)
kernel/engine_analysis.go:45
↓ 2 callers
Method
GetFullStats
GetFullStats gets complete trading statistics
store/position_query.go:58
↓ 2 callers
Method
GetLanguage
GetLanguage returns the language from config or falls back to auto-detection
kernel/engine.go:269
↓ 2 callers
Method
GetLatest
GetLatest gets the latest N equity records for specified trader (sorted in ascending chronological order: old to new)
store/equity.go:66
↓ 2 callers
Method
GetLatestRecords
GetLatestRecords gets the latest N records for specified trader (sorted by time in ascending order: old to new)
store/decision.go:185
↓ 2 callers
Method
GetLogsByLevel
GetLogsByLevel gets logs by specified level
mcp/mock_test.go:79
↓ 2 callers
Method
GetMarketPrice
GetMarketPrice retrieves market price
trader/bybit/trader_orders.go:245
↓ 2 callers
Method
GetMaxTradeIDsByExchange
GetMaxTradeIDsByExchange returns max trade ID for each symbol for a given exchange
store/order.go:372
↓ 2 callers
Method
GetOILowPositions
GetOILowPositions retrieves OI decrease positions (for short opportunities)
provider/nofxos/oi.go:133
↓ 2 callers
Method
GetOpenPositionByExchangePositionID
GetOpenPositionByExchangePositionID gets an OPEN position by exchange_position_id
store/position.go:480
↓ 2 callers
Method
GetOrderStatus
GetOrderStatus Get order status Returns: status(FILLED/NEW/CANCELED), avgPrice, executedQty, commission
trader/types/interface.go:94
↓ 2 callers
Method
GetPositions
GetPositions gets all positions
trader/kucoin/trader_positions.go:10
↓ 2 callers
Method
GetPositions
GetPositions retrieves all positions
trader/bybit/trader_positions.go:13
↓ 2 callers
Method
GetPositions
GetPositions gets all positions
trader/bitget/trader_positions.go:12
↓ 2 callers
Method
GetPositions
GetPositions gets all positions (including xyz dex positions)
trader/hyperliquid/trader_positions.go:11
↓ 2 callers
Method
GetPositions
GetPositions retrieves all open positions
trader/gate/trader_account.go:59
↓ 2 callers
Method
GetPositions
GetPositions gets all positions
trader/okx/trader_positions.go:12
↓ 2 callers
Method
GetPositionsRaw
GetPositionsRaw Get all positions (returns raw type)
trader/lighter/account.go:202
↓ 2 callers
Method
GetRecentTrades
GetRecentTrades retrieves recent trades (faster, no pagination)
trader/kucoin/order_sync.go:163
↓ 2 callers
Function
GetSchemaPrompt
========== Prompt Generation Functions ========== GetSchemaPrompt generates schema description text for AI prompts
kernel/schema.go:446
↓ 2 callers
Method
GetSignalLab
(ctx context.Context, q Query)
provider/vergex/client.go:114
↓ 2 callers
Method
GetSymbolStatsByTraderFilters
GetSymbolStatsByTraderFilters gets per-symbol trading statistics for explicit trader IDs plus optional legacy trader ID patterns.
store/position_query.go:240
↓ 2 callers
Method
GetTrades
GetTrades retrieves trade history from Aster
trader/aster/trader_account.go:211
↓ 2 callers
Method
GetTrades
GetTrades retrieves trade history from Hyperliquid
trader/hyperliquid/trader_account.go:550
↓ 2 callers
Method
HasDataKey
()
crypto/crypto.go:167
↓ 2 callers
Function
Init
Init initializes global configuration (from .env). Prefer MustInit from main.
config/config.go:67
↓ 2 callers
Function
InitGorm
InitGorm initializes GORM with SQLite
store/gorm.go:22
↓ 2 callers
Method
InitializeGrid
============================================================================ AutoTrader Grid Lifecycle ===============================================
trader/auto_trader_grid.go:289
↓ 2 callers
Method
InvalidatePositionCache
InvalidatePositionCache clears the position cache
trader/kucoin/trader_positions.go:110
↓ 2 callers
Method
InvalidatePositionCache
InvalidatePositionCache clears the position cache to force fresh data on next call
trader/okx/trader_positions.go:121
↓ 2 callers
Function
IsClaw402Config
IsClaw402Config checks if a trader config uses claw402 payment provider
store/ai_charge.go:153
↓ 2 callers
Function
IsStockPerp
IsStockPerp checks if a symbol is a stock perpetual
provider/hyperliquid/kline.go:453
↓ 2 callers
Method
LogDecision
LogDecision logs decision
store/decision.go:148
↓ 2 callers
Function
MakeClaw402SignFunc
MakeClaw402SignFunc creates an X402SignFunc from a private key for claw402 payments.
mcp/payment/x402.go:174
↓ 2 callers
Function
MapTimeframe
MapTimeframe maps common timeframe strings to Hyperliquid format
provider/hyperliquid/kline.go:345
↓ 2 callers
Function
MergeStrategyConfig
MergeStrategyConfig applies a partial JSON-style patch onto a full strategy config. Nested objects are merged recursively so omitted fields keep their
store/strategy.go:434
↓ 2 callers
Function
MustInit
MustInit initializes global configuration or panics. Use from main() so the process refuses to start under an insecure config (e.g. default JWT secret
config/config.go:60
↓ 2 callers
Function
NewAPIClient
()
market/api_client.go:22
↓ 2 callers
Function
NewAssistantMessage
NewAssistantMessage creates an assistant message
mcp/request.go:99
↓ 2 callers
Function
NewClaudeClientWithOptions
NewClaudeClientWithOptions creates a ClaudeClient with optional overrides.
mcp/provider/claude.go:53
↓ 2 callers
Function
NewClaw402ClientWithOptions
NewClaw402ClientWithOptions creates a claw402 client with options.
mcp/payment/claw402.go:109
↓ 2 callers
Function
NewClaw402DataClient
NewClaw402DataClient creates a client that routes nofxos requests through claw402. privateKeyHex is the wallet private key (0x-prefixed hex string).
provider/nofxos/claw402.go:29
↓ 2 callers
Function
NewClient
(baseURL, privateKeyHex string, logger mcp.Logger)
provider/vergex/client.go:75
↓ 2 callers
Function
NewCryptoService
NewCryptoService creates crypto service (loads keys from environment variables)
crypto/crypto.go:56
↓ 2 callers
Function
NewDBDriver
NewDBDriver creates database driver from config
store/driver.go:41
↓ 2 callers
Function
NewDeepSeekClient
NewDeepSeekClient creates DeepSeek client (backward compatible) Deprecated: Recommend using NewDeepSeekClientWithOptions for better flexibility
mcp/provider/deepseek.go:24
↓ 2 callers
Function
NewGeminiClientWithOptions
NewGeminiClientWithOptions creates Gemini client (supports options pattern)
mcp/provider/gemini.go:32
↓ 2 callers
Function
NewGridTraderAdapter
NewGridTraderAdapter creates an adapter for basic Trader
trader/interface.go:27
↓ 2 callers
Function
NewGrokClientWithOptions
NewGrokClientWithOptions creates Grok client (supports options pattern)
mcp/provider/grok.go:32
↓ 2 callers
Function
NewKimiClientWithOptions
NewKimiClientWithOptions creates Kimi client (supports options pattern)
mcp/provider/kimi.go:32
↓ 2 callers
Function
NewMiniMaxClientWithOptions
NewMiniMaxClientWithOptions creates MiniMax client (supports options pattern)
mcp/provider/minimax.go:32
↓ 2 callers
Function
NewOpenAIClientWithOptions
NewOpenAIClientWithOptions creates OpenAI client (supports options pattern)
mcp/provider/openai.go:32
↓ 2 callers
Function
ParseSSEStream
ParseSSEStream reads an SSE response body, accumulates text deltas, and calls onChunk with the full accumulated text after each chunk. If onLine is no
mcp/client.go:791
↓ 2 callers
Method
Post
Post coinank openapi post request
provider/coinank/coinank_http.go:70
↓ 2 callers
Function
ReportStreamUsage
ReportStreamUsage fires TokenUsageCallback with the given usage, provider, and model. No-op if usage is nil or callback is unset.
mcp/client.go:859
↓ 2 callers
Method
Reset
Reset resets state
mcp/mock_test.go:191
↓ 2 callers
Method
ResolveClaw402WalletKey
Create creates an AI model ResolveClaw402WalletKey returns the claw402 wallet private key for a user. If preferredModelID is non-empty and points to a
store/ai_model.go:304
↓ 2 callers
Method
RunAllTests
RunAllTests Run all generic interface tests Note: Before calling this method, please set up required mocks via SetupMocks
trader/testutil/test_suite.go:42
↓ 2 callers
Method
RunGridCycle
RunGridCycle executes one grid trading cycle
trader/auto_trader_grid.go:353
↓ 2 callers
Function
SanitizeModelConfigForLog
SanitizeModelConfigForLog Sanitize model configuration for log output. Takes the same ModelConfigUpdate type used by the request handler so the two ca
api/utils.go:21
↓ 2 callers
Method
SetAPIKey
(apiKey string, customURL string, customModel string)
mcp/provider/deepseek.go:47
↓ 2 callers
Method
SetClaw402
SetClaw402 enables routing requests through claw402 payment gateway.
provider/nofxos/client.go:64
↓ 2 callers
Method
SetCustomPrompt
SetCustomPrompt sets custom trading strategy prompt
trader/auto_trader.go:643
↓ 2 callers
Method
SetErrorResponse
SetErrorResponse sets error response
mcp/mock_test.go:208
↓ 2 callers
Function
SetGlobalCryptoService
SetGlobalCryptoService sets the global crypto service for EncryptedString
crypto/crypto.go:409
↓ 2 callers
Method
SetLeverage
SetLeverage sets leverage for a symbol
trader/kucoin/trader_orders.go:526
↓ 2 callers
Method
SetLeverage
SetLeverage Set leverage multiplier
trader/aster/trader_positions.go:113
↓ 2 callers
Method
SetLeverage
SetLeverage sets the leverage for a symbol
trader/gate/trader_orders.go:16
↓ 2 callers
Method
SetOverrideBasePrompt
SetOverrideBasePrompt sets whether to override base prompt
trader/auto_trader.go:648
↓ 2 callers
Function
SignBasePaymentHeader
SignBasePaymentHeader decodes a base64 x402 header, parses it, and signs with EIP-712 (USDC TransferWithAuthorization).
mcp/payment/x402.go:182
↓ 2 callers
Function
StrategyClampWarnings
(before, after StrategyConfig, lang string)
store/strategy.go:552
↓ 2 callers
Method
SyncOrdersFromAster
SyncOrdersFromAster syncs Aster exchange order history to local database Also creates/updates position records to ensure orders/fills/positions data c
trader/aster/trader_sync.go:18
↓ 2 callers
Method
SyncOrdersFromBitget
SyncOrdersFromBitget syncs Bitget exchange order history to local database Also creates/updates position records to ensure orders/fills/positions data
trader/bitget/order_sync.go:159
↓ 2 callers
Method
SyncOrdersFromBybit
SyncOrdersFromBybit syncs Bybit exchange order history to local database Also creates/updates position records to ensure orders/fills/positions data c
trader/bybit/order_sync.go:179
↓ 2 callers
Method
SyncOrdersFromGate
SyncOrdersFromGate syncs Gate exchange order history to local database Also creates/updates position records to ensure orders/fills/positions data con
trader/gate/order_sync.go:154
↓ 2 callers
Method
SyncOrdersFromHyperliquid
SyncOrdersFromHyperliquid syncs Hyperliquid exchange order history to local database Also creates/updates position records to ensure orders/fills/posi
trader/hyperliquid/order_sync.go:18
↓ 2 callers
Method
SyncOrdersFromKuCoin
SyncOrdersFromKuCoin syncs KuCoin exchange order history to local database Also creates/updates position records to ensure orders/fills/positions data
trader/kucoin/order_sync.go:280
↓ 2 callers
Method
SyncOrdersFromLighter
SyncOrdersFromLighter syncs Lighter exchange trade history to local database Also creates/updates position records to ensure orders/fills/positions da
trader/lighter/order_sync.go:18
↓ 2 callers
Method
SyncOrdersFromOKX
SyncOrdersFromOKX syncs OKX exchange order history to local database Also creates/updates position records to ensure orders/fills/positions data consi
trader/okx/order_sync.go:153
↓ 2 callers
Function
TFDuration
TFDuration returns the time duration corresponding to the given timeframe.
market/timeframe.go:38
↓ 2 callers
Function
TradableSymbol
(symbol string)
provider/vergex/client.go:280
↓ 2 callers
Method
UnSubscribe
UnSubscribe unsubscribe depth
provider/coinank/coinank_api/depth_ws.go:50
↓ 2 callers
Method
Update
Update update a strategy
store/strategy.go:1080
← previous
next →
601–700 of 2,846, ranked by callers