MCPcopy Create free account

hub / github.com/NoFxAiOS/nofx / functions

Functions2,846 in github.com/NoFxAiOS/nofx

↓ 2 callersMethodExistsWithExchangePositionID
ExistsWithExchangePositionID checks if a position exists
store/position.go:464
↓ 2 callersMethodFetchNetFlowRankingData
FetchNetFlowRankingData fetches market-wide NetFlow ranking data
kernel/engine.go:1425
↓ 2 callersMethodFetchOIRankingData
FetchOIRankingData fetches market-wide OI ranking data
kernel/engine.go:1390
↓ 2 callersMethodFetchPriceRankingData
FetchPriceRankingData fetches market-wide price ranking data (gainers/losers)
kernel/engine.go:1461
↓ 2 callersMethodFetchQuantDataBatch
FetchQuantDataBatch batch fetches quantitative data
kernel/engine.go:1092
↓ 2 callersMethodFetchVergexDataBatch
(ctx context.Context, symbols []string)
kernel/engine.go:1113
↓ 2 callersFunctionFormatDecisionExample
========== Helper Functions ========== FormatDecisionExample formats a decision example (for documentation)
kernel/prompt_builder.go:317
↓ 2 callersFunctionFormatOIRankingForAI
FormatOIRankingForAI formats OI ranking data for AI consumption
provider/nofxos/oi.go:158
↓ 2 callersMethodGetAllCoins
GetAllCoins returns all available Hyperliquid perp coins
provider/hyperliquid/coins.go:259
↓ 2 callersMethodGetAllMidsWithDex
GetAllMidsWithDex fetches current mid prices for a specific dex
provider/hyperliquid/kline.go:150
↓ 2 callersMethodGetAllTraders
GetAllTraders retrieves all traders
manager/trader_manager.go:68
↓ 2 callersMethodGetClosedPnL
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 callersMethodGetClosedPositions
GetClosedPositions gets closed positions
store/position.go:384
↓ 2 callersMethodGetCoinData
GetCoinData retrieves quantitative data for a single coin
provider/nofxos/coin.go:54
↓ 2 callersMethodGetCostLiquidationHeatmap
(ctx context.Context, q Query)
provider/vergex/client.go:123
↓ 2 callersMethodGetDefault
GetDefault retrieves the default enabled AI model
store/ai_model.go:131
↓ 2 callersMethodGetDirectionStatsByTraderFilters
GetDirectionStatsByTraderFilters analyzes long vs short performance for explicit trader IDs plus optional legacy trader ID patterns.
store/position_query.go:386
↓ 2 callersFunctionGetFullDecisionWithStrategy
GetFullDecisionWithStrategy uses StrategyEngine to get AI decision (unified prompt generation)
kernel/engine_analysis.go:45
↓ 2 callersMethodGetFullStats
GetFullStats gets complete trading statistics
store/position_query.go:58
↓ 2 callersMethodGetLanguage
GetLanguage returns the language from config or falls back to auto-detection
kernel/engine.go:269
↓ 2 callersMethodGetLatest
GetLatest gets the latest N equity records for specified trader (sorted in ascending chronological order: old to new)
store/equity.go:66
↓ 2 callersMethodGetLatestRecords
GetLatestRecords gets the latest N records for specified trader (sorted by time in ascending order: old to new)
store/decision.go:185
↓ 2 callersMethodGetLogsByLevel
GetLogsByLevel gets logs by specified level
mcp/mock_test.go:79
↓ 2 callersMethodGetMarketPrice
GetMarketPrice retrieves market price
trader/bybit/trader_orders.go:245
↓ 2 callersMethodGetMaxTradeIDsByExchange
GetMaxTradeIDsByExchange returns max trade ID for each symbol for a given exchange
store/order.go:372
↓ 2 callersMethodGetOILowPositions
GetOILowPositions retrieves OI decrease positions (for short opportunities)
provider/nofxos/oi.go:133
↓ 2 callersMethodGetOpenPositionByExchangePositionID
GetOpenPositionByExchangePositionID gets an OPEN position by exchange_position_id
store/position.go:480
↓ 2 callersMethodGetOrderStatus
GetOrderStatus Get order status Returns: status(FILLED/NEW/CANCELED), avgPrice, executedQty, commission
trader/types/interface.go:94
↓ 2 callersMethodGetPositions
GetPositions gets all positions
trader/kucoin/trader_positions.go:10
↓ 2 callersMethodGetPositions
GetPositions retrieves all positions
trader/bybit/trader_positions.go:13
↓ 2 callersMethodGetPositions
GetPositions gets all positions
trader/bitget/trader_positions.go:12
↓ 2 callersMethodGetPositions
GetPositions gets all positions (including xyz dex positions)
trader/hyperliquid/trader_positions.go:11
↓ 2 callersMethodGetPositions
GetPositions retrieves all open positions
trader/gate/trader_account.go:59
↓ 2 callersMethodGetPositions
GetPositions gets all positions
trader/okx/trader_positions.go:12
↓ 2 callersMethodGetPositionsRaw
GetPositionsRaw Get all positions (returns raw type)
trader/lighter/account.go:202
↓ 2 callersMethodGetRecentTrades
GetRecentTrades retrieves recent trades (faster, no pagination)
trader/kucoin/order_sync.go:163
↓ 2 callersFunctionGetSchemaPrompt
========== Prompt Generation Functions ========== GetSchemaPrompt generates schema description text for AI prompts
kernel/schema.go:446
↓ 2 callersMethodGetSignalLab
(ctx context.Context, q Query)
provider/vergex/client.go:114
↓ 2 callersMethodGetSymbolStatsByTraderFilters
GetSymbolStatsByTraderFilters gets per-symbol trading statistics for explicit trader IDs plus optional legacy trader ID patterns.
store/position_query.go:240
↓ 2 callersMethodGetTrades
GetTrades retrieves trade history from Aster
trader/aster/trader_account.go:211
↓ 2 callersMethodGetTrades
GetTrades retrieves trade history from Hyperliquid
trader/hyperliquid/trader_account.go:550
↓ 2 callersMethodHasDataKey
()
crypto/crypto.go:167
↓ 2 callersFunctionInit
Init initializes global configuration (from .env). Prefer MustInit from main.
config/config.go:67
↓ 2 callersFunctionInitGorm
InitGorm initializes GORM with SQLite
store/gorm.go:22
↓ 2 callersMethodInitializeGrid
============================================================================ AutoTrader Grid Lifecycle ===============================================
trader/auto_trader_grid.go:289
↓ 2 callersMethodInvalidatePositionCache
InvalidatePositionCache clears the position cache
trader/kucoin/trader_positions.go:110
↓ 2 callersMethodInvalidatePositionCache
InvalidatePositionCache clears the position cache to force fresh data on next call
trader/okx/trader_positions.go:121
↓ 2 callersFunctionIsClaw402Config
IsClaw402Config checks if a trader config uses claw402 payment provider
store/ai_charge.go:153
↓ 2 callersFunctionIsStockPerp
IsStockPerp checks if a symbol is a stock perpetual
provider/hyperliquid/kline.go:453
↓ 2 callersMethodLogDecision
LogDecision logs decision
store/decision.go:148
↓ 2 callersFunctionMakeClaw402SignFunc
MakeClaw402SignFunc creates an X402SignFunc from a private key for claw402 payments.
mcp/payment/x402.go:174
↓ 2 callersFunctionMapTimeframe
MapTimeframe maps common timeframe strings to Hyperliquid format
provider/hyperliquid/kline.go:345
↓ 2 callersFunctionMergeStrategyConfig
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 callersFunctionMustInit
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 callersFunctionNewAPIClient
()
market/api_client.go:22
↓ 2 callersFunctionNewAssistantMessage
NewAssistantMessage creates an assistant message
mcp/request.go:99
↓ 2 callersFunctionNewClaudeClientWithOptions
NewClaudeClientWithOptions creates a ClaudeClient with optional overrides.
mcp/provider/claude.go:53
↓ 2 callersFunctionNewClaw402ClientWithOptions
NewClaw402ClientWithOptions creates a claw402 client with options.
mcp/payment/claw402.go:109
↓ 2 callersFunctionNewClaw402DataClient
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 callersFunctionNewClient
(baseURL, privateKeyHex string, logger mcp.Logger)
provider/vergex/client.go:75
↓ 2 callersFunctionNewCryptoService
NewCryptoService creates crypto service (loads keys from environment variables)
crypto/crypto.go:56
↓ 2 callersFunctionNewDBDriver
NewDBDriver creates database driver from config
store/driver.go:41
↓ 2 callersFunctionNewDeepSeekClient
NewDeepSeekClient creates DeepSeek client (backward compatible) Deprecated: Recommend using NewDeepSeekClientWithOptions for better flexibility
mcp/provider/deepseek.go:24
↓ 2 callersFunctionNewGeminiClientWithOptions
NewGeminiClientWithOptions creates Gemini client (supports options pattern)
mcp/provider/gemini.go:32
↓ 2 callersFunctionNewGridTraderAdapter
NewGridTraderAdapter creates an adapter for basic Trader
trader/interface.go:27
↓ 2 callersFunctionNewGrokClientWithOptions
NewGrokClientWithOptions creates Grok client (supports options pattern)
mcp/provider/grok.go:32
↓ 2 callersFunctionNewKimiClientWithOptions
NewKimiClientWithOptions creates Kimi client (supports options pattern)
mcp/provider/kimi.go:32
↓ 2 callersFunctionNewMiniMaxClientWithOptions
NewMiniMaxClientWithOptions creates MiniMax client (supports options pattern)
mcp/provider/minimax.go:32
↓ 2 callersFunctionNewOpenAIClientWithOptions
NewOpenAIClientWithOptions creates OpenAI client (supports options pattern)
mcp/provider/openai.go:32
↓ 2 callersFunctionParseSSEStream
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 callersMethodPost
Post coinank openapi post request
provider/coinank/coinank_http.go:70
↓ 2 callersFunctionReportStreamUsage
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 callersMethodReset
Reset resets state
mcp/mock_test.go:191
↓ 2 callersMethodResolveClaw402WalletKey
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 callersMethodRunAllTests
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 callersMethodRunGridCycle
RunGridCycle executes one grid trading cycle
trader/auto_trader_grid.go:353
↓ 2 callersFunctionSanitizeModelConfigForLog
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 callersMethodSetAPIKey
(apiKey string, customURL string, customModel string)
mcp/provider/deepseek.go:47
↓ 2 callersMethodSetClaw402
SetClaw402 enables routing requests through claw402 payment gateway.
provider/nofxos/client.go:64
↓ 2 callersMethodSetCustomPrompt
SetCustomPrompt sets custom trading strategy prompt
trader/auto_trader.go:643
↓ 2 callersMethodSetErrorResponse
SetErrorResponse sets error response
mcp/mock_test.go:208
↓ 2 callersFunctionSetGlobalCryptoService
SetGlobalCryptoService sets the global crypto service for EncryptedString
crypto/crypto.go:409
↓ 2 callersMethodSetLeverage
SetLeverage sets leverage for a symbol
trader/kucoin/trader_orders.go:526
↓ 2 callersMethodSetLeverage
SetLeverage Set leverage multiplier
trader/aster/trader_positions.go:113
↓ 2 callersMethodSetLeverage
SetLeverage sets the leverage for a symbol
trader/gate/trader_orders.go:16
↓ 2 callersMethodSetOverrideBasePrompt
SetOverrideBasePrompt sets whether to override base prompt
trader/auto_trader.go:648
↓ 2 callersFunctionSignBasePaymentHeader
SignBasePaymentHeader decodes a base64 x402 header, parses it, and signs with EIP-712 (USDC TransferWithAuthorization).
mcp/payment/x402.go:182
↓ 2 callersFunctionStrategyClampWarnings
(before, after StrategyConfig, lang string)
store/strategy.go:552
↓ 2 callersMethodSyncOrdersFromAster
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 callersMethodSyncOrdersFromBitget
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 callersMethodSyncOrdersFromBybit
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 callersMethodSyncOrdersFromGate
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 callersMethodSyncOrdersFromHyperliquid
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 callersMethodSyncOrdersFromKuCoin
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 callersMethodSyncOrdersFromLighter
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 callersMethodSyncOrdersFromOKX
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 callersFunctionTFDuration
TFDuration returns the time duration corresponding to the given timeframe.
market/timeframe.go:38
↓ 2 callersFunctionTradableSymbol
(symbol string)
provider/vergex/client.go:280
↓ 2 callersMethodUnSubscribe
UnSubscribe unsubscribe depth
provider/coinank/coinank_api/depth_ws.go:50
↓ 2 callersMethodUpdate
Update update a strategy
store/strategy.go:1080
← previousnext →601–700 of 2,846, ranked by callers