MCPcopy Create free account

hub / github.com/NoFxAiOS/nofx / functions

Functions2,846 in github.com/NoFxAiOS/nofx

↓ 1 callersMethodGetTrades
GetTrades retrieves trade/fill records from Gate
trader/gate/order_sync.go:35
↓ 1 callersMethodGetTrades
GetTrades retrieves trade/fill records from OKX
trader/okx/order_sync.go:36
↓ 1 callersMethodGetTradesForSymbolFromID
GetTradesForSymbolFromID retrieves trade history for a specific symbol starting from a given trade ID This is used for incremental sync - only fetch n
trader/binance/futures_account.go:206
↓ 1 callersMethodGetUnderlyingTrader
GetUnderlyingTrader returns the underlying Trader interface implementation This is used by grid trading and other components that need direct exchange
trader/auto_trader.go:613
↓ 1 callersFunctionGo
Go launches fn in a new goroutine with automatic panic recovery. If fn panics, the panic is logged (with stack trace) but the process continues runnin
safe/go.go:15
↓ 1 callersMethodGrid
Grid gets grid trading storage
store/store.go:281
↓ 1 callersFunctionInit
(enabled bool, installationID string)
telemetry/experience.go:60
↓ 1 callersFunctionInitGormPostgres
InitGormPostgres initializes GORM with PostgreSQL
store/gorm.go:53
↓ 1 callersFunctionInitGormWithConfig
InitGormWithConfig initializes GORM with provided configuration Uses DBConfig from driver.go
store/gorm.go:84
↓ 1 callersMethodIsEncryptedStorageValue
(value string)
crypto/crypto.go:269
↓ 1 callersMethodIsGridStrategy
IsGridStrategy returns true if current strategy is grid trading
trader/auto_trader_grid.go:563
↓ 1 callersFunctionIsSensitiveError
IsSensitiveError checks if an error message contains sensitive information
api/errors.go:81
↓ 1 callersFunctionIsTokenBlacklisted
IsTokenBlacklisted checks if token is in blacklist (auto cleanup on expiration)
auth/auth.go:52
↓ 1 callersFunctionIsVisibleAIModel
(model *AIModel)
store/visibility.go:54
↓ 1 callersFunctionIsVisibleExchange
(exchange *Exchange)
store/visibility.go:64
↓ 1 callersMethodList
List retrieves user's AI model list
store/ai_model.go:77
↓ 1 callersMethodListAll
ListAll gets all traders
store/trader.go:251
↓ 1 callersMethodListByAIModelID
ListByAIModelID gets traders that use a specific AI model
store/trader.go:271
↓ 1 callersMethodListByExchangeID
ListByExchangeID gets traders that use a specific exchange
store/trader.go:261
↓ 1 callersMethodListPublic
ListPublic get all public strategies for the strategy market
store/strategy.go:1130
↓ 1 callersMethodLoadTradersFromStore
LoadTradersFromStore loads all traders from store to memory (new API)
manager/trader_manager.go:539
↓ 1 callersMethodMainCluster
()
provider/vergex/client.go:492
↓ 1 callersFunctionMapTimeframe
MapTimeframe maps common timeframe strings to Twelve Data format
provider/twelvedata/kline.go:195
↓ 1 callersFunctionMapTimeframe
MapTimeframe maps common timeframe strings to Alpaca format
provider/alpaca/kline.go:134
↓ 1 callersFunctionMaskEmail
MaskEmail Mask email address, keeping first 2 characters and domain part
api/utils.go:87
↓ 1 callersMethodMigrateFromDecision
MigrateFromDecision migrates data from old decision_account_snapshots table
store/equity.go:142
↓ 1 callersFunctionNewAIChargeStore
NewAIChargeStore creates a new AIChargeStore
store/ai_charge.go:55
↓ 1 callersFunctionNewAIModelStore
NewAIModelStore creates a new AIModelStore
store/ai_model.go:37
↓ 1 callersFunctionNewAsterTraderTestSuite
NewAsterTraderTestSuite creates Aster test suite
trader/aster/trader_test.go:29
↓ 1 callersFunctionNewAutoTrader
NewAutoTrader creates an automatic trader st parameter is used to store decision records to database
trader/auto_trader.go:186
↓ 1 callersFunctionNewBinanceFuturesTestSuite
NewBinanceFuturesTestSuite Creates Binance Futures test suite
trader/binance/futures_test.go:30
↓ 1 callersFunctionNewClient
NewClient creates a new Twelve Data client from config
provider/twelvedata/kline.go:78
↓ 1 callersFunctionNewClient
NewClient creates a new Alpaca client from config
provider/alpaca/kline.go:45
↓ 1 callersFunctionNewCryptoHandler
NewCryptoHandler Creates encryption handler
api/crypto_handler.go:17
↓ 1 callersFunctionNewDecisionStore
NewDecisionStore creates a new DecisionStore
store/decision.go:108
↓ 1 callersFunctionNewEquityStore
NewEquityStore creates a new EquityStore
store/equity.go:32
↓ 1 callersFunctionNewExchangeAccountStateCache
()
api/exchange_account_state.go:61
↓ 1 callersFunctionNewExchangeStore
NewExchangeStore creates a new ExchangeStore
store/exchange.go:49
↓ 1 callersFunctionNewGateTraderTestSuite
NewGateTraderTestSuite creates Gate test suite with mock server
trader/gate/trader_test.go:28
↓ 1 callersFunctionNewGridState
NewGridState creates a new grid state
trader/auto_trader_grid.go:75
↓ 1 callersFunctionNewGridStore
NewGridStore creates a new grid store
store/grid.go:217
↓ 1 callersFunctionNewHyperliquidTrader
NewHyperliquidTrader creates a Hyperliquid trader unifiedAccount: when true, Spot USDC balance is used as collateral for Perp trading
trader/hyperliquid/trader.go:97
↓ 1 callersFunctionNewMCPLogger
NewMCPLogger creates MCP log adapter
logger/logger.go:194
↓ 1 callersFunctionNewManager
NewManager creates a Manager. Call api.GetAPIDocs() before this and pass the result as apiDocs. userEmail is the registered email shown to the user wh
telegram/agent/manager.go:26
↓ 1 callersFunctionNewMemory
(llm mcp.AIClient)
telegram/session/memory.go:28
↓ 1 callersFunctionNewMessage
NewMessage creates a message
mcp/request.go:75
↓ 1 callersFunctionNewOrderStore
NewOrderStore creates order storage instance
store/order.go:83
↓ 1 callersFunctionNewServer
NewServer Creates API server
api/server.go:34
↓ 1 callersFunctionNewStrategyStore
NewStrategyStore creates a new StrategyStore
store/strategy.go:938
↓ 1 callersFunctionNewSystemMessage
NewSystemMessage creates a system message
mcp/request.go:83
↓ 1 callersFunctionNewTelegramConfigStore
NewTelegramConfigStore creates a new TelegramConfigStore
store/telegram_config.go:54
↓ 1 callersFunctionNewTraderStore
NewTraderStore creates a new trader store
store/trader.go:16
↓ 1 callersFunctionNewUserStore
NewUserStore creates a new UserStore
store/user.go:26
↓ 1 callersFunctionNormalizeCoin
NormalizeCoin normalizes coin name for Hyperliquid API Examples: - "BTCUSDT" -> "BTC" - "TSLA-USDC" -> "TSLA" - "TESLA-USDC" -> "TSLA" - "SAMSUNG-USDC
provider/hyperliquid/kline.go:246
↓ 1 callersMethodOpenLong
OpenLong opens a long position (supports both crypto and xyz dex)
trader/hyperliquid/trader_orders.go:49
↓ 1 callersMethodOpenShort
OpenShort is not supported on Indodax (spot-only exchange)
trader/indodax/trader_orders.go:58
↓ 1 callersFunctionParseBar
ParseBar converts a Twelve Data bar to numeric values
provider/twelvedata/kline.go:235
↓ 1 callersMethodParseMCPResponse
(body []byte)
mcp/mock_test.go:285
↓ 1 callersMethodParseMCPResponseFull
ParseMCPResponseFull parses the OpenAI-format response body and returns both the text content and any tool calls.
mcp/client.go:277
↓ 1 callersMethodParseMCPResponseFull
ParseMCPResponseFull extracts both text and tool calls from an Anthropic response envelope.
mcp/provider/claude.go:237
↓ 1 callersFunctionParseRSAPrivateKeyFromPEM
ParseRSAPrivateKeyFromPEM parses RSA private key from PEM format
crypto/crypto.go:109
↓ 1 callersFunctionQueryUSDCBalanceCached
QueryUSDCBalanceCached returns the USDC balance for an address, using a short-lived cache to avoid hammering the Base RPC. Addresses are case-insensit
wallet/balance_cache.go:25
↓ 1 callersMethodRecord
Record records a new AI charge
store/ai_charge.go:64
↓ 1 callersMethodReducePositionQuantity
ReducePositionQuantity reduces position quantity for partial close If quantity reaches 0 (or near 0), automatically closes the position
store/position.go:243
↓ 1 callersMethodResetFull
ResetFull clears everything including long-term memory
telegram/session/memory.go:63
↓ 1 callersMethodResetMemory
ResetMemory clears conversation history (called on /start).
telegram/agent/agent.go:283
↓ 1 callersFunctionSafeErrorWithDetails
(c *gin.Context, statusCode int, publicMsg, errorKey string, errorParams map[string]string, internalErr error)
api/errors.go:41
↓ 1 callersFunctionSafeGet
SafeGet performs a GET request with SSRF protection It validates the URL before making the request and uses a safe HTTP client
security/url_validator.go:208
↓ 1 callersMethodSave
(botToken, modelID string)
store/telegram_config.go:76
↓ 1 callersMethodSetActive
SetActive set active strategy (will first deactivate other strategies)
store/strategy.go:1177
↓ 1 callersMethodSetAuthHeader
(headers http.Header)
mcp/mock_test.go:272
↓ 1 callersMethodSetDefaults
SetDefaults sets default values
logger/config.go:9
↓ 1 callersFunctionSetInstallationID
(id string)
telemetry/experience.go:69
↓ 1 callersFunctionSetJWTSecret
SetJWTSecret sets the JWT secret key
auth/auth.go:26
↓ 1 callersMethodSetLanguage
Remove binding
store/telegram_config.go:44
↓ 1 callersMethodSetLeverage
SetLeverage is a no-op for Indodax (spot-only, no leverage)
trader/indodax/trader_orders.go:124
↓ 1 callersMethodSetMarginMode
SetMarginMode is a no-op for Indodax (spot-only, no margin)
trader/indodax/trader_orders.go:130
↓ 1 callersMethodSetNetworkError
SetNetworkError sets network error
mcp/mock_test.go:218
↓ 1 callersMethodSetShowInCompetition
SetShowInCompetition sets whether trader should be shown in competition
trader/auto_trader.go:638
↓ 1 callersMethodSetStopLoss
SetStopLoss is not supported on Indodax (spot-only exchange)
trader/indodax/trader_orders.go:158
↓ 1 callersMethodSetSystemConfig
SetSystemConfig sets a system configuration value
store/store.go:376
↓ 1 callersMethodSetTakeProfit
SetTakeProfit is not supported on Indodax (spot-only exchange)
trader/indodax/trader_orders.go:163
↓ 1 callersMethodSetTimeout
(timeout time.Duration)
mcp/client.go:165
↓ 1 callersMethodShutdown
Shutdown Gracefully shutdown server
api/server.go:716
↓ 1 callersFunctionSignX402Payment
SignX402Payment is the shared EIP-712 signing logic for x402 v2 on Base USDC.
mcp/payment/x402.go:657
↓ 1 callersMethodStart
Start Start server
api/server.go:680
↓ 1 callersMethodStartAll
StartAll starts all traders
manager/trader_manager.go:92
↓ 1 callersFunctionSupportedTimeframes
SupportedTimeframes returns all supported timeframes (sorted slice).
market/timeframe.go:47
↓ 1 callersMethodTestCancelAllOrders
TestCancelAllOrders Test canceling all orders
trader/testutil/test_suite.go:292
↓ 1 callersMethodTestCancelStopLossOrders
TestCancelStopLossOrders Test canceling stop-loss orders
trader/testutil/test_suite.go:616
↓ 1 callersMethodTestCancelStopOrders
TestCancelStopOrders Test canceling stop-loss/take-profit orders
trader/testutil/test_suite.go:590
↓ 1 callersMethodTestCancelTakeProfitOrders
TestCancelTakeProfitOrders Test canceling take-profit orders
trader/testutil/test_suite.go:642
↓ 1 callersMethodTestCloseLong
TestCloseLong Test closing long position
trader/testutil/test_suite.go:420
↓ 1 callersMethodTestCloseShort
TestCloseShort Test closing short position
trader/testutil/test_suite.go:463
↓ 1 callersMethodTestFormatQuantity
TestFormatQuantity Test formatting quantity
trader/testutil/test_suite.go:248
↓ 1 callersMethodTestGetBalance
TestGetBalance Test getting account balance
trader/testutil/test_suite.go:71
↓ 1 callersMethodTestGetMarketPrice
TestGetMarketPrice Test getting market price
trader/testutil/test_suite.go:141
↓ 1 callersMethodTestGetPositions
TestGetPositions Test getting positions
trader/testutil/test_suite.go:104
↓ 1 callersMethodTestOpenLong
============================================================ Core trading method tests ============================================================ Te
trader/testutil/test_suite.go:322
↓ 1 callersMethodTestOpenShort
TestOpenShort Test opening short position
trader/testutil/test_suite.go:371
← previousnext →1,001–1,100 of 2,846, ranked by callers