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
↓ 1 callers
Method
GetTrades
GetTrades retrieves trade/fill records from Gate
trader/gate/order_sync.go:35
↓ 1 callers
Method
GetTrades
GetTrades retrieves trade/fill records from OKX
trader/okx/order_sync.go:36
↓ 1 callers
Method
GetTradesForSymbolFromID
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 callers
Method
GetUnderlyingTrader
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 callers
Function
Go
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 callers
Method
Grid
Grid gets grid trading storage
store/store.go:281
↓ 1 callers
Function
Init
(enabled bool, installationID string)
telemetry/experience.go:60
↓ 1 callers
Function
InitGormPostgres
InitGormPostgres initializes GORM with PostgreSQL
store/gorm.go:53
↓ 1 callers
Function
InitGormWithConfig
InitGormWithConfig initializes GORM with provided configuration Uses DBConfig from driver.go
store/gorm.go:84
↓ 1 callers
Method
IsEncryptedStorageValue
(value string)
crypto/crypto.go:269
↓ 1 callers
Method
IsGridStrategy
IsGridStrategy returns true if current strategy is grid trading
trader/auto_trader_grid.go:563
↓ 1 callers
Function
IsSensitiveError
IsSensitiveError checks if an error message contains sensitive information
api/errors.go:81
↓ 1 callers
Function
IsTokenBlacklisted
IsTokenBlacklisted checks if token is in blacklist (auto cleanup on expiration)
auth/auth.go:52
↓ 1 callers
Function
IsVisibleAIModel
(model *AIModel)
store/visibility.go:54
↓ 1 callers
Function
IsVisibleExchange
(exchange *Exchange)
store/visibility.go:64
↓ 1 callers
Method
List
List retrieves user's AI model list
store/ai_model.go:77
↓ 1 callers
Method
ListAll
ListAll gets all traders
store/trader.go:251
↓ 1 callers
Method
ListByAIModelID
ListByAIModelID gets traders that use a specific AI model
store/trader.go:271
↓ 1 callers
Method
ListByExchangeID
ListByExchangeID gets traders that use a specific exchange
store/trader.go:261
↓ 1 callers
Method
ListPublic
ListPublic get all public strategies for the strategy market
store/strategy.go:1130
↓ 1 callers
Method
LoadTradersFromStore
LoadTradersFromStore loads all traders from store to memory (new API)
manager/trader_manager.go:539
↓ 1 callers
Method
MainCluster
()
provider/vergex/client.go:492
↓ 1 callers
Function
MapTimeframe
MapTimeframe maps common timeframe strings to Twelve Data format
provider/twelvedata/kline.go:195
↓ 1 callers
Function
MapTimeframe
MapTimeframe maps common timeframe strings to Alpaca format
provider/alpaca/kline.go:134
↓ 1 callers
Function
MaskEmail
MaskEmail Mask email address, keeping first 2 characters and domain part
api/utils.go:87
↓ 1 callers
Method
MigrateFromDecision
MigrateFromDecision migrates data from old decision_account_snapshots table
store/equity.go:142
↓ 1 callers
Function
NewAIChargeStore
NewAIChargeStore creates a new AIChargeStore
store/ai_charge.go:55
↓ 1 callers
Function
NewAIModelStore
NewAIModelStore creates a new AIModelStore
store/ai_model.go:37
↓ 1 callers
Function
NewAsterTraderTestSuite
NewAsterTraderTestSuite creates Aster test suite
trader/aster/trader_test.go:29
↓ 1 callers
Function
NewAutoTrader
NewAutoTrader creates an automatic trader st parameter is used to store decision records to database
trader/auto_trader.go:186
↓ 1 callers
Function
NewBinanceFuturesTestSuite
NewBinanceFuturesTestSuite Creates Binance Futures test suite
trader/binance/futures_test.go:30
↓ 1 callers
Function
NewClient
NewClient creates a new Twelve Data client from config
provider/twelvedata/kline.go:78
↓ 1 callers
Function
NewClient
NewClient creates a new Alpaca client from config
provider/alpaca/kline.go:45
↓ 1 callers
Function
NewCryptoHandler
NewCryptoHandler Creates encryption handler
api/crypto_handler.go:17
↓ 1 callers
Function
NewDecisionStore
NewDecisionStore creates a new DecisionStore
store/decision.go:108
↓ 1 callers
Function
NewEquityStore
NewEquityStore creates a new EquityStore
store/equity.go:32
↓ 1 callers
Function
NewExchangeAccountStateCache
()
api/exchange_account_state.go:61
↓ 1 callers
Function
NewExchangeStore
NewExchangeStore creates a new ExchangeStore
store/exchange.go:49
↓ 1 callers
Function
NewGateTraderTestSuite
NewGateTraderTestSuite creates Gate test suite with mock server
trader/gate/trader_test.go:28
↓ 1 callers
Function
NewGridState
NewGridState creates a new grid state
trader/auto_trader_grid.go:75
↓ 1 callers
Function
NewGridStore
NewGridStore creates a new grid store
store/grid.go:217
↓ 1 callers
Function
NewHyperliquidTrader
NewHyperliquidTrader creates a Hyperliquid trader unifiedAccount: when true, Spot USDC balance is used as collateral for Perp trading
trader/hyperliquid/trader.go:97
↓ 1 callers
Function
NewMCPLogger
NewMCPLogger creates MCP log adapter
logger/logger.go:194
↓ 1 callers
Function
NewManager
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 callers
Function
NewMemory
(llm mcp.AIClient)
telegram/session/memory.go:28
↓ 1 callers
Function
NewMessage
NewMessage creates a message
mcp/request.go:75
↓ 1 callers
Function
NewOrderStore
NewOrderStore creates order storage instance
store/order.go:83
↓ 1 callers
Function
NewServer
NewServer Creates API server
api/server.go:34
↓ 1 callers
Function
NewStrategyStore
NewStrategyStore creates a new StrategyStore
store/strategy.go:938
↓ 1 callers
Function
NewSystemMessage
NewSystemMessage creates a system message
mcp/request.go:83
↓ 1 callers
Function
NewTelegramConfigStore
NewTelegramConfigStore creates a new TelegramConfigStore
store/telegram_config.go:54
↓ 1 callers
Function
NewTraderStore
NewTraderStore creates a new trader store
store/trader.go:16
↓ 1 callers
Function
NewUserStore
NewUserStore creates a new UserStore
store/user.go:26
↓ 1 callers
Function
NormalizeCoin
NormalizeCoin normalizes coin name for Hyperliquid API Examples: - "BTCUSDT" -> "BTC" - "TSLA-USDC" -> "TSLA" - "TESLA-USDC" -> "TSLA" - "SAMSUNG-USDC
provider/hyperliquid/kline.go:246
↓ 1 callers
Method
OpenLong
OpenLong opens a long position (supports both crypto and xyz dex)
trader/hyperliquid/trader_orders.go:49
↓ 1 callers
Method
OpenShort
OpenShort is not supported on Indodax (spot-only exchange)
trader/indodax/trader_orders.go:58
↓ 1 callers
Function
ParseBar
ParseBar converts a Twelve Data bar to numeric values
provider/twelvedata/kline.go:235
↓ 1 callers
Method
ParseMCPResponse
(body []byte)
mcp/mock_test.go:285
↓ 1 callers
Method
ParseMCPResponseFull
ParseMCPResponseFull parses the OpenAI-format response body and returns both the text content and any tool calls.
mcp/client.go:277
↓ 1 callers
Method
ParseMCPResponseFull
ParseMCPResponseFull extracts both text and tool calls from an Anthropic response envelope.
mcp/provider/claude.go:237
↓ 1 callers
Function
ParseRSAPrivateKeyFromPEM
ParseRSAPrivateKeyFromPEM parses RSA private key from PEM format
crypto/crypto.go:109
↓ 1 callers
Function
QueryUSDCBalanceCached
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 callers
Method
Record
Record records a new AI charge
store/ai_charge.go:64
↓ 1 callers
Method
ReducePositionQuantity
ReducePositionQuantity reduces position quantity for partial close If quantity reaches 0 (or near 0), automatically closes the position
store/position.go:243
↓ 1 callers
Method
ResetFull
ResetFull clears everything including long-term memory
telegram/session/memory.go:63
↓ 1 callers
Method
ResetMemory
ResetMemory clears conversation history (called on /start).
telegram/agent/agent.go:283
↓ 1 callers
Function
SafeErrorWithDetails
(c *gin.Context, statusCode int, publicMsg, errorKey string, errorParams map[string]string, internalErr error)
api/errors.go:41
↓ 1 callers
Function
SafeGet
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 callers
Method
Save
(botToken, modelID string)
store/telegram_config.go:76
↓ 1 callers
Method
SetActive
SetActive set active strategy (will first deactivate other strategies)
store/strategy.go:1177
↓ 1 callers
Method
SetAuthHeader
(headers http.Header)
mcp/mock_test.go:272
↓ 1 callers
Method
SetDefaults
SetDefaults sets default values
logger/config.go:9
↓ 1 callers
Function
SetInstallationID
(id string)
telemetry/experience.go:69
↓ 1 callers
Function
SetJWTSecret
SetJWTSecret sets the JWT secret key
auth/auth.go:26
↓ 1 callers
Method
SetLanguage
Remove binding
store/telegram_config.go:44
↓ 1 callers
Method
SetLeverage
SetLeverage is a no-op for Indodax (spot-only, no leverage)
trader/indodax/trader_orders.go:124
↓ 1 callers
Method
SetMarginMode
SetMarginMode is a no-op for Indodax (spot-only, no margin)
trader/indodax/trader_orders.go:130
↓ 1 callers
Method
SetNetworkError
SetNetworkError sets network error
mcp/mock_test.go:218
↓ 1 callers
Method
SetShowInCompetition
SetShowInCompetition sets whether trader should be shown in competition
trader/auto_trader.go:638
↓ 1 callers
Method
SetStopLoss
SetStopLoss is not supported on Indodax (spot-only exchange)
trader/indodax/trader_orders.go:158
↓ 1 callers
Method
SetSystemConfig
SetSystemConfig sets a system configuration value
store/store.go:376
↓ 1 callers
Method
SetTakeProfit
SetTakeProfit is not supported on Indodax (spot-only exchange)
trader/indodax/trader_orders.go:163
↓ 1 callers
Method
SetTimeout
(timeout time.Duration)
mcp/client.go:165
↓ 1 callers
Method
Shutdown
Shutdown Gracefully shutdown server
api/server.go:716
↓ 1 callers
Function
SignX402Payment
SignX402Payment is the shared EIP-712 signing logic for x402 v2 on Base USDC.
mcp/payment/x402.go:657
↓ 1 callers
Method
Start
Start Start server
api/server.go:680
↓ 1 callers
Method
StartAll
StartAll starts all traders
manager/trader_manager.go:92
↓ 1 callers
Function
SupportedTimeframes
SupportedTimeframes returns all supported timeframes (sorted slice).
market/timeframe.go:47
↓ 1 callers
Method
TestCancelAllOrders
TestCancelAllOrders Test canceling all orders
trader/testutil/test_suite.go:292
↓ 1 callers
Method
TestCancelStopLossOrders
TestCancelStopLossOrders Test canceling stop-loss orders
trader/testutil/test_suite.go:616
↓ 1 callers
Method
TestCancelStopOrders
TestCancelStopOrders Test canceling stop-loss/take-profit orders
trader/testutil/test_suite.go:590
↓ 1 callers
Method
TestCancelTakeProfitOrders
TestCancelTakeProfitOrders Test canceling take-profit orders
trader/testutil/test_suite.go:642
↓ 1 callers
Method
TestCloseLong
TestCloseLong Test closing long position
trader/testutil/test_suite.go:420
↓ 1 callers
Method
TestCloseShort
TestCloseShort Test closing short position
trader/testutil/test_suite.go:463
↓ 1 callers
Method
TestFormatQuantity
TestFormatQuantity Test formatting quantity
trader/testutil/test_suite.go:248
↓ 1 callers
Method
TestGetBalance
TestGetBalance Test getting account balance
trader/testutil/test_suite.go:71
↓ 1 callers
Method
TestGetMarketPrice
TestGetMarketPrice Test getting market price
trader/testutil/test_suite.go:141
↓ 1 callers
Method
TestGetPositions
TestGetPositions Test getting positions
trader/testutil/test_suite.go:104
↓ 1 callers
Method
TestOpenLong
============================================================ Core trading method tests ============================================================ Te
trader/testutil/test_suite.go:322
↓ 1 callers
Method
TestOpenShort
TestOpenShort Test opening short position
trader/testutil/test_suite.go:371
← previous
next →
1,001–1,100 of 2,846, ranked by callers