MCPcopy Create free account

hub / github.com/NoFxAiOS/nofx / functions

Functions2,846 in github.com/NoFxAiOS/nofx

FunctionTestHyperliquidBugScenario
TestHyperliquidBugScenario tests the exact bug we fixed
trader/hyperliquid/sync_test.go:307
FunctionTestHyperliquidOrderDirectionParsing
TestHyperliquidOrderDirectionParsing tests Dir field parsing
trader/hyperliquid/sync_test.go:15
FunctionTestHyperliquidPositionBuilding
TestHyperliquidPositionBuilding tests the complete flow of position building
trader/hyperliquid/sync_test.go:77
FunctionTestHyperliquidXYZAliasesNormalizeForAIDecisionData
(t *testing.T)
market/data_hyperliquid_xyz_test.go:5
FunctionTestIPRateLimiterBurstThenThrottle
TestIPRateLimiterBurstThenThrottle verifies that a client gets `burst` immediate attempts and is then throttled until tokens refill.
api/ratelimit_test.go:10
FunctionTestIPRateLimiterIsolatesClients
TestIPRateLimiterIsolatesClients verifies one IP exhausting its bucket does not throttle a different IP.
api/ratelimit_test.go:38
FunctionTestIndodaxConnection
============================================================ Integration tests (require INDODAX_TEST_API_KEY env vars) ===============================
trader/indodax/trader_test.go:263
FunctionTestIndodaxGetClosedPnL
TestIndodaxGetClosedPnL tests trade history retrieval
trader/indodax/trader_test.go:333
FunctionTestIndodaxGetMarketPrice
TestIndodaxGetMarketPrice tests market price retrieval
trader/indodax/trader_test.go:301
FunctionTestIndodaxGetOpenOrders
TestIndodaxGetOpenOrders tests open orders retrieval
trader/indodax/trader_test.go:317
FunctionTestIndodaxGetPositions
TestIndodaxGetPositions tests position retrieval
trader/indodax/trader_test.go:280
FunctionTestIndodaxLoadPairs
TestIndodaxLoadPairs tests loading trading pairs
trader/indodax/trader_test.go:351
FunctionTestIndodaxTrader_ClearCache
TestIndodaxTrader_ClearCache tests cache clearing
trader/indodax/trader_test.go:240
FunctionTestIndodaxTrader_GetCoinFromSymbol
TestIndodaxTrader_GetCoinFromSymbol tests coin extraction
trader/indodax/trader_test.go:106
FunctionTestIndodaxTrader_InterfaceCompliance
TestIndodaxTrader_InterfaceCompliance tests that IndodaxTrader implements types.Trader
trader/indodax/trader_test.go:30
FunctionTestIndodaxTrader_Nonce
TestIndodaxTrader_Nonce tests nonce incrementation
trader/indodax/trader_test.go:157
FunctionTestIndodaxTrader_ParseFloat
TestIndodaxTrader_ParseFloat tests parseFloat helper
trader/indodax/trader_test.go:214
FunctionTestIndodaxTrader_Sign
TestIndodaxTrader_Sign tests HMAC-SHA512 signature generation
trader/indodax/trader_test.go:130
FunctionTestIndodaxTrader_SpotOnlyRestrictions
TestIndodaxTrader_SpotOnlyRestrictions tests that futures-only methods return errors
trader/indodax/trader_test.go:173
FunctionTestIndodaxTrader_SymbolConversion
TestIndodaxTrader_SymbolConversion tests symbol format conversion
trader/indodax/trader_test.go:56
FunctionTestIndodaxTrader_SymbolConversionBack
TestIndodaxTrader_SymbolConversionBack tests symbol reversion
trader/indodax/trader_test.go:82
FunctionTestInitExchangeClientConvertsPanicToError
(t *testing.T)
trader/hyperliquid/client_init_test.go:11
FunctionTestInitExchangeClientPassesThroughSuccess
(t *testing.T)
trader/hyperliquid/client_init_test.go:26
FunctionTestIsStaleData_EmptyKlines
TestIsStaleData_EmptyKlines tests edge case with empty slice
market/data_test.go:494
FunctionTestIsStaleData_ExactlyFiveKlines
TestIsStaleData_ExactlyFiveKlines tests edge case with exactly 5 klines
market/data_test.go:418
FunctionTestIsStaleData_InsufficientData
TestIsStaleData_InsufficientData tests that insufficient data (<5 klines) returns false
market/data_test.go:403
FunctionTestIsStaleData_MixedScenario
TestIsStaleData_MixedScenario tests realistic scenario with some history before freeze
market/data_test.go:472
FunctionTestIsStaleData_NormalData
TestIsStaleData_NormalData tests that normal fluctuating data returns false
market/data_test.go:352
FunctionTestIsStaleData_PriceFreezeWithVolume
TestIsStaleData_PriceFreezeWithVolume tests that frozen price but normal volume returns false
market/data_test.go:386
FunctionTestIsStaleData_PriceFreezeWithZeroVolume
TestIsStaleData_PriceFreezeWithZeroVolume tests that frozen price + zero volume returns true
market/data_test.go:369
FunctionTestIsStaleData_WithinTolerance
TestIsStaleData_WithinTolerance tests price changes within tolerance (0.01%)
market/data_test.go:449
FunctionTestIsStockPerp
(t *testing.T)
provider/hyperliquid/kline_test.go:179
FunctionTestIsSupportedTraderSymbol
(t *testing.T)
api/handler_trader_symbol_test.go:5
FunctionTestKline
(t *testing.T)
provider/coinank/coinank_api/kline_test.go:12
FunctionTestKlineDaily
(t *testing.T)
provider/coinank/coinank_api/kline_test.go:24
FunctionTestKlineWs
(t *testing.T)
provider/coinank/coinank_api/kline_ws_test.go:12
FunctionTestKuCoinConnection
TestKuCoinConnection tests basic API connectivity
trader/kucoin/order_sync_test.go:31
FunctionTestKuCoinEntryExitPrice
TestKuCoinEntryExitPrice tests that entry/exit prices are correctly captured
trader/kucoin/order_sync_test.go:411
FunctionTestKuCoinGetPositions
TestKuCoinGetPositions tests position retrieval
trader/kucoin/order_sync_test.go:47
FunctionTestKuCoinGetRecentTrades
TestKuCoinGetRecentTrades tests recent trades endpoint
trader/kucoin/order_sync_test.go:116
FunctionTestKuCoinGetTrades
TestKuCoinGetTrades tests trade history retrieval with proper JSON parsing
trader/kucoin/order_sync_test.go:72
FunctionTestKuCoinGetTradesDebug
TestKuCoinGetTradesDebug tests GetTrades with detailed debugging
trader/kucoin/order_sync_test.go:583
FunctionTestKuCoinOrderActionDetermination
TestKuCoinOrderActionDetermination tests that order action is correctly determined
trader/kucoin/order_sync_test.go:202
FunctionTestKuCoinPnLCalculation
TestKuCoinPnLCalculation tests P&L calculation against actual exchange data
trader/kucoin/order_sync_test.go:500
FunctionTestKuCoinPositionBuilding
TestKuCoinPositionBuilding tests that trades can be used to build position state
trader/kucoin/order_sync_test.go:250
FunctionTestKuCoinRawAPIResponse
TestKuCoinRawAPIResponse tests raw API response to verify field types
trader/kucoin/order_sync_test.go:312
FunctionTestKuCoinTradeToRecord
TestKuCoinTradeToRecord tests conversion to TradeRecord
trader/kucoin/order_sync_test.go:133
FunctionTestKuCoinValueCalculation
TestKuCoinValueCalculation tests that calculated value (price * qty) matches API value This is the key test to verify multiplier and qty calculation i
trader/kucoin/order_sync_test.go:334
FunctionTestLeverageFallback
TestLeverageFallback tests automatic correction when leverage exceeds limit
kernel/validate_test.go:8
FunctionTestLighterAPIKeyValid
==================== API Key Validation Tests ====================
trader/lighter/integration_test.go:955
FunctionTestLighterAPIKeyVerification
(t *testing.T)
trader/lighter/integration_test.go:76
FunctionTestLighterAccountInit
==================== Account Tests ====================
trader/lighter/integration_test.go:62
FunctionTestLighterAuthTokenRefresh
==================== Auth Token Tests ====================
trader/lighter/integration_test.go:443
FunctionTestLighterCancelAllOrders
(t *testing.T)
trader/lighter/integration_test.go:295
FunctionTestLighterCancelNonExistentOrder
(t *testing.T)
trader/lighter/integration_test.go:490
FunctionTestLighterCreateAndCancelLimitOrder
==================== Order Tests ====================
trader/lighter/integration_test.go:249
FunctionTestLighterFetchMarketList
(t *testing.T)
trader/lighter/integration_test.go:171
FunctionTestLighterFullTradingFlow
==================== Full Trading Flow Tests ====================
trader/lighter/integration_test.go:834
FunctionTestLighterGetActiveOrders
(t *testing.T)
trader/lighter/integration_test.go:606
FunctionTestLighterGetBalance
(t *testing.T)
trader/lighter/integration_test.go:91
FunctionTestLighterGetClosedPnL
(t *testing.T)
trader/lighter/integration_test.go:224
FunctionTestLighterGetMarketPrice
==================== Market Data Tests ====================
trader/lighter/integration_test.go:149
FunctionTestLighterGetOpenOrders
==================== GetOpenOrders Tests ====================
trader/lighter/integration_test.go:582
FunctionTestLighterGetOrderBook
==================== OrderBook Tests ====================
trader/lighter/integration_test.go:632
FunctionTestLighterGetPosition
==================== GetPosition Tests ====================
trader/lighter/integration_test.go:1049
FunctionTestLighterGetPositions
==================== Position Tests ====================
trader/lighter/integration_test.go:123
FunctionTestLighterGetTrades
==================== Trades API Tests ====================
trader/lighter/integration_test.go:199
FunctionTestLighterInvalidSymbol
==================== Error Handling Tests ====================
trader/lighter/integration_test.go:475
FunctionTestLighterMarketOrderBuy
==================== Market Order Tests ====================
trader/lighter/integration_test.go:979
FunctionTestLighterMarketOrderSell
(t *testing.T)
trader/lighter/integration_test.go:1013
FunctionTestLighterOpenCloseLongFlow
==================== Trading Flow Tests ====================
trader/lighter/integration_test.go:333
FunctionTestLighterOpenCloseShortFlow
(t *testing.T)
trader/lighter/integration_test.go:383
FunctionTestLighterOrderSync
==================== OrderSync Tests ====================
trader/lighter/integration_test.go:507
FunctionTestLighterPlaceLimitOrder
==================== PlaceLimitOrder (GridTrader) Tests ====================
trader/lighter/integration_test.go:671
FunctionTestLighterSetLeverage
==================== Leverage Tests ====================
trader/lighter/integration_test.go:420
FunctionTestLighterSetMarginMode
==================== SetMarginMode Tests ====================
trader/lighter/integration_test.go:728
FunctionTestLighterStopLossOrder
==================== Stop-Loss/Take-Profit Tests ====================
trader/lighter/integration_test.go:752
FunctionTestLighterSymbolNormalization
==================== Symbol Normalization Tests ====================
trader/lighter/integration_test.go:1080
FunctionTestLighterTakeProfitOrder
(t *testing.T)
trader/lighter/integration_test.go:792
FunctionTestMarketSymbolPreservesHIP3XYZPrefix
(t *testing.T)
provider/vergex/client_test.go:103
FunctionTestMaskEmail
(t *testing.T)
api/utils_test.go:218
FunctionTestMaskSensitiveString
(t *testing.T)
api/utils_test.go:9
FunctionTestMaxIterations
── Safety limit ─────────────────────────────────────────────────────────── TestMaxIterations: agent terminates after maxIterations and returns fallba
telegram/agent/agent_test.go:389
FunctionTestMetaConcurrentAccess
TestMetaConcurrentAccess tests that concurrent access to meta field is safe
trader/hyperliquid/trader_race_test.go:12
FunctionTestMetaConcurrentReadWrite
TestMetaConcurrentReadWrite tests concurrent reads and writes to meta field
trader/hyperliquid/trader_race_test.go:46
FunctionTestMetaMutex_NoRaceCondition
TestMetaMutex_NoRaceCondition tests that using -race detector finds no issues Run with: go test -race -run TestMetaMutex_NoRaceCondition
trader/hyperliquid/trader_race_test.go:146
FunctionTestMultipleOptions
============================================================ Test Options Combination ============================================================
mcp/options_test.go:168
FunctionTestNarrationStructurallyImpossible
── Narration-free architecture tests ───────────────────────────────────── TestNarrationStructurallyImpossible: when ToolCalls are present in the resp
telegram/agent/agent_test.go:208
FunctionTestNewAsterTrader
============================================================ 3. Aster specific unit tests ============================================================
trader/aster/trader_test.go:247
FunctionTestNewClient_Default
============================================================ Test Client Creation and Configuration ==================================================
mcp/client_test.go:14
FunctionTestNewClient_WithOptions
(t *testing.T)
mcp/client_test.go:43
FunctionTestNewFuturesTrader
============================================================ 3. Binance Futures specific unit tests ==================================================
trader/binance/futures_test.go:321
FunctionTestNewGateTrader
============================================================ Part 3: Gate-specific feature unit tests ================================================
trader/gate/trader_test.go:185
FunctionTestNewIndodaxTrader
TestNewIndodaxTrader tests creating Indodax trader instance
trader/indodax/trader_test.go:35
FunctionTestNewTraderManager
(t *testing.T)
manager/trader_manager_test.go:31
FunctionTestNormalizeCoin
(t *testing.T)
provider/hyperliquid/kline_test.go:153
FunctionTestNormalizeTimeframe
(t *testing.T)
market/timeframe_test.go:9
FunctionTestOKXCrossMarginModeUsedInLeverage
(t *testing.T)
trader/okx/trader_margin_mode_test.go:192
FunctionTestOKXOpenLongUsesConfiguredMarginMode
(t *testing.T)
trader/okx/trader_margin_mode_test.go:129
FunctionTestOKXOpenShortUsesConfiguredMarginMode
(t *testing.T)
trader/okx/trader_margin_mode_test.go:212
← previousnext →2,301–2,400 of 2,846, ranked by callers