MCPcopy Create free account

hub / github.com/JMWL66/jmwl-autotrade / functions

Functions2,334 in github.com/JMWL66/jmwl-autotrade

↓ 6 callersMethodGetTradesForSymbol
GetTradesForSymbol retrieves trade history for a specific symbol This is more reliable than using Income API which may have delays
trader/binance/futures_account.go:155
↓ 6 callersFunctionGetWithTimeframes
GetWithTimeframes retrieves market data for specified multiple timeframes timeframes: list of timeframes, e.g. ["5m", "15m", "1h", "4h"] primaryTimefr
market/data.go:147
↓ 6 callersFunctionKline
Kline open free kline from coinank
provider/coinank/coinank_api/kline.go:19
↓ 6 callersFunctionMaskSensitiveString
MaskSensitiveString Mask sensitive strings, showing only first 4 and last 4 characters Used to mask API Key, Secret Key, Private Key and other sensiti
api/utils.go:7
↓ 6 callersFunctionNewLighterTraderV2
NewLighterTraderV2 Create new LIGHTER trader (using official SDK) Parameters: - walletAddr: Ethereum wallet address (required) - apiKeyPrivateKeyHex:
trader/lighter/trader.go:102
↓ 6 callersFunctionNewPositionStore
NewPositionStore creates position storage instance
store/position.go:134
↓ 6 callersMethodParseMCPResponse
ParseMCPResponse extracts the plain-text reply from a non-streaming response body.
mcp/hooks.go:31
↓ 6 callersFunctionQueryUSDCBalanceStr
QueryUSDCBalanceStr queries USDC balance on Base chain and returns as formatted string
wallet/usdc.go:33
↓ 6 callersMethodSetLeverage
SetLeverage Set leverage
trader/types/interface.go:63
↓ 6 callersMethodSetStopLoss
SetStopLoss Set stop-loss order
trader/types/interface.go:72
↓ 6 callersMethodSetTakeProfit
SetTakeProfit Set take-profit order
trader/types/interface.go:75
↓ 6 callersMethodSyncOrdersFromBinance
SyncOrdersFromBinance syncs Binance Futures trade history to local database Uses COMMISSION detection + fromId for efficient incremental sync Also cre
trader/binance/order_sync.go:24
↓ 6 callersFunctionWithTemperature
WithTemperature sets temperature parameter Usage example: client := mcp.NewClient(mcp.WithTemperature(0.7))
mcp/options.go:106
↓ 6 callersFunctioncreateIndodaxTestTrader
(t *testing.T)
trader/indodax/trader_test.go:23
↓ 6 callersMethodensureAuthToken
ensureAuthToken Ensure authentication token is valid
trader/lighter/trader.go:376
↓ 6 callersFunctiongetEnv
getEnv gets environment variable with default value
store/driver.go:235
↓ 6 callersFunctiongetTraderAvatar
(traderId: string, traderName: string)
web/src/components/common/PunkAvatar.tsx:340
↓ 6 callersMethodquantityToLots
quantityToLots converts quantity (in base asset) to lots
trader/kucoin/trader.go:350
↓ 6 callersFunctionsendMarkdownMsg
(bot *tgbotapi.BotAPI, chatID int64, text string)
telegram/bot.go:259
↓ 6 callersFunctionsendMsg
── Helpers ───────────────────────────────────────────────────────────────────
telegram/bot.go:254
↓ 6 callersFunctiontraderColor
(traderId: string)
web/src/components/charts/ComparisonChart.tsx:187
↓ 6 callersFunctiontruncateMessages
truncateMessages removes oldest non-system messages until estimated tokens fit within the context limit. Returns the truncated messages and the number
mcp/context_guard.go:42
↓ 5 callersMethodAddUserMessage
AddUserMessage adds user message
mcp/request_builder.go:79
↓ 5 callersMethodBuildSystemPrompt
BuildSystemPrompt builds the system prompt
kernel/prompt_builder.go:25
↓ 5 callersMethodBuildUserPrompt
BuildUserPrompt builds the user prompt with full trading context
kernel/prompt_builder.go:33
↓ 5 callersMethodCallWithRequest
============================================================ Builder Pattern API (Advanced Features) =================================================
mcp/client.go:415
↓ 5 callersMethodCancelAllOrders
CancelAllOrders Cancel all pending orders for this symbol
trader/types/interface.go:84
↓ 5 callersMethodClose
Close closes database connection
store/driver.go:99
↓ 5 callersMethodDB
DB gets underlying database connection (for legacy code compatibility) Deprecated: use GormDB() instead
store/store.go:355
↓ 5 callersMethodDebugf
(format string, args ...any)
mcp/logger.go:7
↓ 5 callersMethodError
()
security/url_validator.go:48
↓ 5 callersFunctionFatalf
(format string, args ...interface{})
logger/logger.go:173
↓ 5 callersMethodFormatQuantity
FormatQuantity formats quantity to correct precision
trader/binance/futures_positions.go:244
↓ 5 callersMethodGetAIModel
GetAIModel gets AI model
trader/auto_trader.go:552
↓ 5 callersMethodGetCandles
GetCandles fetches historical candlestick data for a symbol coin: symbol name (e.g., "BTC", "TSLA", "AAPL", "xyz:TSLA") interval: "1m", "5m", "15m", "
provider/hyperliquid/kline.go:77
↓ 5 callersMethodGetFullConfig
GetFullConfig gets trader full configuration
store/trader.go:164
↓ 5 callersMethodGetPositions
GetPositions gets all positions (with cache)
trader/binance/futures_positions.go:14
↓ 5 callersFunctionGetWithExchange
GetWithExchange retrieves market data for the specified token using exchange-specific data
market/data.go:33
↓ 5 callersMethodInitTables
InitTables initializes position tables
store/position.go:144
↓ 5 callersMethodIsRetryableError
(err error)
mcp/hooks.go:36
↓ 5 callersFunctionIsXyzDexAsset
IsXyzDexAsset checks if a symbol is an xyz dex asset
market/data.go:541
↓ 5 callersFunctionNewAIClientByProvider
NewAIClientByProvider creates an AIClient by provider name using the registry. Returns nil if the provider is not registered.
mcp/registry.go:14
↓ 5 callersFunctionNewQwenClientWithOptions
NewQwenClientWithOptions creates Qwen client (supports options pattern)
mcp/provider/qwen.go:34
↓ 5 callersFunctionNewStrategyEngine
NewStrategyEngine creates strategy execution engine. claw402WalletKey is optional — if provided, nofxos data requests are routed through claw402.
kernel/engine.go:191
↓ 5 callersFunctionNormalizeSymbol
NormalizeSymbol normalizes coin symbol to XXXUSDT format
provider/nofxos/ai500.go:156
↓ 5 callersMethodRemoveTrader
RemoveTrader removes a trader from memory (does not affect database) Used to force reload when updating trader configuration If the trader is running,
manager/trader_manager.go:390
↓ 5 callersFunctionapplyPeriodFilter
(query *gorm.DB, period string)
store/ai_charge.go:126
↓ 5 callersMethodclearCache
clearCache clears all caches
trader/gate/trader.go:103
↓ 5 callersFunctionconfirmBreakout
confirmBreakout updates breakout state and returns true if breakout is confirmed
trader/grid_regime.go:147
↓ 5 callersFunctionconfirmToast
( message: string, options: ConfirmOptions = {} )
web/src/lib/notify.tsx:23
↓ 5 callersFunctiondetectBoxBreakout
============================================================================ Task 7: Breakout Detection ==============================================
trader/grid_regime.go:98
↓ 5 callersMethoddoRequest
doRequest performs an HTTP GET request with authentication. If claw402 client is configured, routes through claw402 payment gateway instead.
provider/nofxos/client.go:98
↓ 5 callersFunctionfetchStrategies
()
web/src/components/trader/TraderConfigModal.tsx:77
↓ 5 callersFunctionfloatToWireStr
floatToWireStr converts a float to wire format string (8 decimal places, trimmed zeros) This matches the SDK's floatToWire function
trader/hyperliquid/trader_orders.go:570
↓ 5 callersFunctionformatFlowValue
(v float64)
kernel/engine_prompt.go:754
↓ 5 callersFunctionformatPrice
(price: number | undefined | null, minDecimals = 2)
web/src/utils/format.ts:15
↓ 5 callersFunctiongenOkxClOrdID
genOkxClOrdID generates OKX order ID
trader/okx/trader.go:98
↓ 5 callersFunctiongetBinanceTestCredentials
(t *testing.T)
trader/binance/order_sync_test.go:17
↓ 5 callersMethodgetMarketInfo
getMarketInfo Get market info including precision - dynamically fetch from API
trader/lighter/trading.go:482
↓ 5 callersFunctiongetShortName
(fullName: string)
web/src/components/trader/model-constants.ts:33
↓ 5 callersFunctiongetUserMode
()
web/src/lib/onboarding.ts:7
↓ 5 callersFunctionnormalizeSymbol
normalizeSymbol Convert NOFX symbol format to Lighter format NOFX uses "BTC-PERP", "BTCUSDT", etc. Lighter uses "BTC", "ETH", etc.
trader/lighter/trading.go:471
↓ 5 callersMethodrankParam
(sortBy coinank_enum.InstrumentAggSortBy, sortType coinank_enum.SortType, page int, size int)
provider/coinank/instrument_agg_rank.go:134
↓ 5 callersMethodsaveDecision
saveDecision saves AI decision log to database (only records AI input/output, for debugging)
trader/auto_trader_decision.go:36
↓ 5 callersMethodsubmitOrder
submitOrder Submit signed order to LIGHTER API using multipart/form-data
trader/lighter/trading.go:352
↓ 4 callersMethodAICharge
AICharge gets AI charge storage
store/store.go:291
↓ 4 callersMethodBuild
============================================================ Build Methods ============================================================ Build builds r
mcp/request_builder.go:225
↓ 4 callersMethodCancelAllOrders
CancelAllOrders cancels all pending orders for this symbol Now uses both legacy API and new Algo Order API
trader/binance/futures_orders.go:387
↓ 4 callersMethodCancelAllOrders
CancelAllOrders cancels all pending orders for symbol
trader/kucoin/trader_orders.go:494
↓ 4 callersMethodCancelAllOrders
CancelAllOrders Cancel all orders (implements Trader interface)
trader/lighter/orders.go:60
↓ 4 callersMethodCancelAllOrders
CancelAllOrders Cancel all orders
trader/aster/trader_orders.go:524
↓ 4 callersMethodCancelAllOrders
CancelAllOrders cancels all pending orders for this coin
trader/hyperliquid/trader_orders.go:353
↓ 4 callersMethodCancelAllOrders
CancelAllOrders cancels all pending orders
trader/okx/trader_orders.go:532
↓ 4 callersMethodDecryptSensitiveData
(payload *EncryptedPayload)
crypto/crypto.go:351
↓ 4 callersFunctionExportCalculateDonchian
ExportCalculateDonchian exports calculateDonchian for testing
market/data_indicators.go:228
↓ 4 callersMethodGetAccountInfo
GetAccountInfo gets account information (for API)
trader/auto_trader_decision.go:97
↓ 4 callersMethodGetCommissionSymbols
GetCommissionSymbols returns symbols that have new commission records since lastSyncTime COMMISSION income is generated for every trade, so this is mo
trader/binance/futures_account.go:241
↓ 4 callersMethodGetCompetitionData
GetCompetitionData retrieves competition data (all traders across platform)
manager/trader_manager.go:191
↓ 4 callersMethodGetConfig
GetConfig gets complete strategy configuration
kernel/engine.go:246
↓ 4 callersMethodGetMarketPrice
GetMarketPrice Get market price (implements Trader interface)
trader/lighter/account.go:284
↓ 4 callersMethodGetMarketPrice
GetMarketPrice Get market price
trader/aster/trader_account.go:104
↓ 4 callersMethodGetMarketPrice
GetMarketPrice gets market price (supports both crypto and xyz dex assets)
trader/hyperliquid/trader_account.go:270
↓ 4 callersMethodGetPnLSymbols
GetPnLSymbols returns symbols that have REALIZED_PNL records since lastSyncTime This is a fallback when COMMISSION detection fails (VIP users, BNB fee
trader/binance/futures_account.go:268
↓ 4 callersMethodGetResult
()
hook/ip_hook.go:14
↓ 4 callersMethodGetTrades
GetTrades retrieves trade history from Lighter
trader/lighter/trader.go:451
↓ 4 callersMethodInvalidate
(userID string)
api/exchange_account_state.go:86
↓ 4 callersFunctionNewAsterTrader
NewAsterTrader Create Aster trader user: Main wallet address (login address) signer: API wallet address (obtained from https://www.asterdex.com/en/api
trader/aster/trader.go:52
↓ 4 callersFunctionNewKuCoinTrader
NewKuCoinTrader creates a new KuCoin trader instance
trader/kucoin/trader.go:98
↓ 4 callersFunctionNewNoopLogger
NewNoopLogger creates no-op logger (for testing)
mcp/logger.go:22
↓ 4 callersFunctionNormalizeCoinBase
NormalizeCoinBase removes common suffixes to get base symbol
provider/hyperliquid/kline.go:386
↓ 4 callersMethodOpenLong
OpenLong Open long position
trader/types/interface.go:51
↓ 4 callersMethodParseMCPResponseFull
ParseMCPResponseFull extracts both text and tool calls.
mcp/hooks.go:34
↓ 4 callersFunctionSafeError
SafeError returns a safe error message without exposing internal details It logs the actual error for debugging but returns a generic message to the c
api/errors.go:32
↓ 4 callersMethodSetMarginMode
SetMarginMode Set position mode (true=cross margin, false=isolated margin)
trader/types/interface.go:66
↓ 4 callersMethodToTradeRecord
ToTradeRecord converts KuCoinTrade to types.TradeRecord
trader/kucoin/order_sync.go:254
↓ 4 callersMethodTransaction
Transaction executes transaction with GORM
store/store.go:385
↓ 4 callersMethodUpdateOrderStatus
UpdateOrderStatus updates order status
store/order.go:169
↓ 4 callersFunctionValidateURL
ValidateURL checks if a URL is safe to request (not pointing to internal networks) Returns an error if the URL is potentially dangerous
security/url_validator.go:85
↓ 4 callersMethodWithSystemPrompt
============================================================ Message Building Methods ============================================================ Wit
mcp/request_builder.go:58
↓ 4 callersMethodarrayBufferToBase64Url
(buffer: ArrayBuffer)
web/src/lib/crypto.ts:157
← previousnext →201–300 of 2,334, ranked by callers