MCPcopy Create free account

hub / github.com/NoFxAiOS/nofx / functions

Functions2,846 in github.com/NoFxAiOS/nofx

↓ 1 callersMethodCleanup
Cleanup cleans up resources
trader/aster/trader_test.go:216
↓ 1 callersMethodCleanup
Cleanup cleans up resources
trader/gate/trader_test.go:164
↓ 1 callersMethodClearPeakPnLCache
ClearPeakPnLCache clears peak cache for specified position
trader/auto_trader_risk.go:171
↓ 1 callersMethodClose
Close websocket
provider/coinank/coinank_api/kline_ws.go:74
↓ 1 callersMethodCloseLong
CloseLong closes a long position (supports both crypto and xyz dex)
trader/hyperliquid/trader_orders.go:195
↓ 1 callersMethodClosePositionFully
ClosePositionFully marks position as fully closed exitTimeMs is Unix milliseconds UTC
store/position.go:302
↓ 1 callersMethodCloseShort
CloseShort is not supported on Indodax (spot-only exchange)
trader/indodax/trader_orders.go:119
↓ 1 callersFunctionCompactJSON
(raw json.RawMessage, maxBytes int)
provider/vergex/client.go:719
↓ 1 callersFunctionConvertMessagesToAnthropic
ConvertMessagesToAnthropic translates from the OpenAI-shaped mcp.Message slice to Anthropic's messages array.
mcp/provider/claude.go:165
↓ 1 callersMethodConvertPlaceholders
ConvertPlaceholders converts ? placeholders to database-specific format
store/driver.go:125
↓ 1 callersMethodCreate
(userID, id, name, provider string, enabled bool, apiKey, customAPIURL string)
store/ai_model.go:336
↓ 1 callersMethodCreate
Create creates a new exchange account with UUID
store/exchange.go:241
↓ 1 callersMethodCreate
Create create a strategy
store/strategy.go:1075
↓ 1 callersMethodCreateFromClosedPnL
CreateFromClosedPnL creates a closed position record from exchange data
store/position_history.go:193
↓ 1 callersMethodCreateOrder
CreateOrder creates order record
store/order.go:152
↓ 1 callersMethodDBType
DBType returns current database type
store/store.go:332
↓ 1 callersMethodDecryptFromStorage
(value string, aadParts ...string)
crypto/crypto.go:219
↓ 1 callersMethodDecryptPayload
(payload *EncryptedPayload)
crypto/crypto.go:284
↓ 1 callersFunctionDefaultGridStrategyConfig
()
store/strategy.go:463
↓ 1 callersMethodDelete
Delete deletes an exchange account
store/exchange.go:359
↓ 1 callersMethodDeleteAllOpenPositions
DeleteAllOpenPositions deletes all OPEN positions for a trader
store/position.go:327
↓ 1 callersFunctionDepthWsConn
DepthWsConn connect ws , read data from DepthV3Ch
provider/coinank/coinank_api/depth_ws.go:19
↓ 1 callersMethodDoRequest
DoRequest makes a GET request through claw402 with x402 payment.
provider/nofxos/claw402.go:77
↓ 1 callersMethodDuplicate
Duplicate duplicate a strategy (used to create custom strategy based on default strategy)
store/strategy.go:1193
↓ 1 callersMethodEncryptForStorage
(plaintext string, aadParts ...string)
crypto/crypto.go:185
↓ 1 callersMethodError
()
hook/http_client_hook.go:13
↓ 1 callersMethodError
()
hook/trader_hook.go:15
↓ 1 callersMethodError
()
hook/trader_hook.go:32
↓ 1 callersFunctionExportCalculateBoxData
ExportCalculateBoxData exports calculateBoxData for testing
market/data_indicators.go:233
↓ 1 callersMethodFetchQuantData
FetchQuantData fetches quantitative data for a single coin
kernel/engine.go:1015
↓ 1 callersMethodFindOrphanClaw402
FindOrphanClaw402 finds a claw402 model whose user_id no longer exists in the users table. Used to recover wallets after account reset.
store/ai_model.go:60
↓ 1 callersFunctionForChat
============================================================ Convenience Methods: Preset Scenarios ===================================================
mcp/request_builder.go:276
↓ 1 callersFunctionForCodeGeneration
ForCodeGeneration creates builder for code generation (low temperature, more deterministic)
mcp/request_builder.go:288
↓ 1 callersFunctionForCreativeWriting
ForCreativeWriting creates builder for creative writing (high temperature, more random)
mcp/request_builder.go:302
↓ 1 callersFunctionFormatContextForAI
============================================================================ AI Data Formatter =======================================================
kernel/formatter.go:20
↓ 1 callersFunctionFormatHeatmapMarkdown
(raw json.RawMessage)
provider/vergex/client.go:417
↓ 1 callersFunctionFormatNetFlowRankingForAI
FormatNetFlowRankingForAI formats NetFlow ranking data for AI consumption
provider/nofxos/netflow.go:120
↓ 1 callersMethodFormatPrice
FormatPrice formats price to correct precision
trader/binance/futures_positions.go:280
↓ 1 callersFunctionFormatPriceRankingForAI
FormatPriceRankingForAI formats Price ranking data for AI consumption
provider/nofxos/price.go:87
↓ 1 callersMethodFormatQuantity
FormatQuantity Format quantity to correct precision
trader/types/interface.go:90
↓ 1 callersFunctionFormatSignalLabMarkdown
(raw json.RawMessage)
provider/vergex/client.go:379
↓ 1 callersFunctionGenerateBotToken
GenerateBotToken creates a long-lived JWT for the bot's internal API calls. userID must match the actual registered user's ID so bot-made changes are
telegram/agent/agent.go:70
↓ 1 callersFunctionGet
Get retrieves market data for the specified token (uses Binance data by default)
market/data.go:29
↓ 1 callersMethodGet
Get retrieves a single AI model
store/ai_model.go:87
↓ 1 callersMethodGet
Get get a single strategy
store/strategy.go:1142
↓ 1 callersFunctionGetAPIDocs
GetAPIDocs returns formatted API documentation for injection into the LLM system prompt. Routes with schema documentation include full parameter detai
api/route_registry.go:50
↓ 1 callersMethodGetAccountBalance
GetAccountBalance Get detailed account balance information
trader/lighter/account.go:109
↓ 1 callersMethodGetActive
GetActive get user's currently active strategy
store/strategy.go:1153
↓ 1 callersMethodGetAll
GetAll returns all users ordered by creation time.
store/user.go:101
↓ 1 callersFunctionGetAllCoinSymbols
GetCoinSymbols returns just the symbol names (for compatibility)
provider/hyperliquid/coins.go:298
↓ 1 callersMethodGetAllIDs
GetAllIDs gets all user IDs
store/user.go:94
↓ 1 callersMethodGetAllMids
GetAllMids fetches current mid prices for all assets (default perp dex)
provider/hyperliquid/kline.go:140
↓ 1 callersMethodGetAllMidsXYZ
GetAllMidsXYZ fetches current mid prices for xyz dex (stocks, forex, commodities)
provider/hyperliquid/kline.go:145
↓ 1 callersMethodGetBalance
GetBalance Get account balance (implements Trader interface)
trader/lighter/account.go:86
↓ 1 callersMethodGetBalance
GetBalance gets account balance from Indodax
trader/indodax/trader_account.go:15
↓ 1 callersMethodGetBars
GetBars fetches historical bars for a symbol timeframe: 1Min, 5Min, 15Min, 30Min, 1Hour, 4Hour, 1Day, 1Week, 1Month
provider/alpaca/kline.go:69
↓ 1 callersMethodGetBaseURL
GetBaseURL returns the current base URL
provider/nofxos/client.go:83
↓ 1 callersMethodGetBoundChatID
Check if any user is bound
store/telegram_config.go:42
↓ 1 callersMethodGetByTimeRange
GetByTimeRange gets equity records within specified time range
store/equity.go:85
↓ 1 callersMethodGetCandidateCoins
GetCandidateCoins returns the current candidate coin set from the trader's strategy engine.
trader/auto_trader.go:664
↓ 1 callersMethodGetCandidateCoins
============================================================================ Candidate Coins =========================================================
kernel/engine.go:291
↓ 1 callersMethodGetCharges
GetCharges returns charges for a trader within a period, plus total cost
store/ai_charge.go:76
↓ 1 callersMethodGetComparisonData
GetComparisonData retrieves comparison data
manager/trader_manager.go:162
↓ 1 callersFunctionGetContextLimitForClient
GetContextLimitForClient returns context limit for a provider+model pair. For claw402, the underlying model is inferred from the model name prefix.
store/strategy.go:1296
↓ 1 callersMethodGetDefault
GetDefault get system default strategy
store/strategy.go:1167
↓ 1 callersMethodGetDirectionStats
GetDirectionStats analyzes long vs short performance
store/position_query.go:380
↓ 1 callersMethodGetFillByExchangeTradeID
GetFillByExchangeTradeID gets fill by exchange trade ID
store/order.go:202
↓ 1 callersMethodGetFlowMarkets
GetFlowMarkets fetches the Vergex net-flow market ranking via the paid claw402 x402 endpoint. Params mirror the public API: chain (e.g. "mainnet"), wi
provider/vergex/client.go:136
↓ 1 callersFunctionGetGridDecisions
============================================================================ Grid Decision Functions =================================================
kernel/grid_engine.go:443
↓ 1 callersMethodGetGridRiskInfo
GetGridRiskInfo returns current risk information for frontend display
trader/auto_trader_grid_regime.go:227
↓ 1 callersMethodGetHoldingTimeStats
GetHoldingTimeStats analyzes performance by holding duration
store/position_query.go:310
↓ 1 callersMethodGetLastCycleNumber
GetLastCycleNumber gets the last cycle number for specified trader
store/decision.go:300
↓ 1 callersFunctionGetMainCoinSymbols
GetMainCoinSymbols returns top N coin symbols by volume
provider/hyperliquid/coins.go:312
↓ 1 callersMethodGetMainCoins
GetMainCoins returns top N coins by 24h volume
provider/hyperliquid/coins.go:274
↓ 1 callersMethodGetMarketPrice
GetMarketPrice gets market price
trader/binance/futures_positions.go:166
↓ 1 callersMethodGetMeta
GetMeta fetches metadata for all perpetual assets
provider/hyperliquid/kline.go:190
↓ 1 callersMethodGetMinNotional
GetMinNotional gets minimum notional value (Binance requirement)
trader/binance/futures_positions.go:193
↓ 1 callersMethodGetNetFlowRanking
GetNetFlowRanking retrieves NetFlow ranking data (institution/personal, top/low)
provider/nofxos/netflow.go:45
↓ 1 callersMethodGetOIRanking
GetOIRanking retrieves OI ranking data (both top increase and low decrease)
provider/nofxos/oi.go:50
↓ 1 callersMethodGetOrderBook
GetOrderBook gets current order book (for price validation) Returns best bid/ask prices
trader/types/interface.go:159
↓ 1 callersMethodGetOrderFills
GetOrderFills gets fill records for a specific order. The traderID arg scopes the join so a caller cannot read fills for an order that does not belong
store/order.go:265
↓ 1 callersMethodGetPriceRanking
GetPriceRanking retrieves price ranking data (gainers/losers)
provider/nofxos/price.go:47
↓ 1 callersMethodGetPublicKeyPEM
()
crypto/crypto.go:171
↓ 1 callersMethodGetRecentFillSymbolsByExchange
GetRecentFillSymbolsByExchange returns distinct symbols with fills since given time (Unix ms)
store/order.go:418
↓ 1 callersMethodGetRecentTrades
GetRecentTrades gets recent closed trades
store/position_query.go:129
↓ 1 callersMethodGetRiskControlConfig
GetRiskControlConfig gets risk control configuration
kernel/engine.go:264
↓ 1 callersMethodGetShowInCompetition
GetShowInCompetition returns whether trader should be shown in competition
trader/auto_trader.go:633
↓ 1 callersMethodGetStatistics
GetStatistics gets statistics information for specified trader
store/decision.go:262
↓ 1 callersMethodGetSummary
GetSummary returns summary stats for a period
store/ai_charge.go:101
↓ 1 callersMethodGetSymbolPrecision
GetSymbolPrecision gets the quantity precision for a trading pair
trader/binance/futures_positions.go:219
↓ 1 callersMethodGetSymbolPricePrecision
GetSymbolPricePrecision gets the price precision for a trading pair
trader/binance/futures_positions.go:256
↓ 1 callersMethodGetSymbolStats
GetSymbolStats gets per-symbol trading statistics
store/position_query.go:234
↓ 1 callersMethodGetSystemConfig
GetSystemConfig gets a system configuration value by key
store/store.go:360
↓ 1 callersMethodGetTimeSeries
GetTimeSeries fetches historical bars for a symbol interval: 1min, 5min, 15min, 30min, 45min, 1h, 2h, 4h, 1day, 1week, 1month
provider/twelvedata/kline.go:99
↓ 1 callersMethodGetTopRatedCoins
GetTopRatedCoins retrieves top N coins by score (sorted descending)
provider/nofxos/ai500.go:93
↓ 1 callersMethodGetTraderOrders
GetTraderOrders gets trader's order list
store/order.go:228
↓ 1 callersMethodGetTraderOrdersFiltered
GetTraderOrdersFiltered gets trader's order list with optional symbol and status filters
store/order.go:241
↓ 1 callersMethodGetTrades
GetTrades retrieves trade history from Binance Futures using Income API Note: Income API has delays (~minutes), for real-time use GetTradesForSymbol i
trader/binance/futures_account.go:120
↓ 1 callersMethodGetTrades
GetTrades retrieves trade/execution records from Bybit
trader/bybit/order_sync.go:39
↓ 1 callersMethodGetTrades
GetTrades retrieves trade/fill records from Bitget
trader/bitget/order_sync.go:33
← previousnext →901–1,000 of 2,846, ranked by callers