MCPcopy Create free account

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

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

↓ 12 callersFunctionmapStringPairs
(kv ...string)
api/handler_trader.go:134
↓ 12 callersMethodrequest
* Generic JSON request with standardized response * System/network errors are already intercepted and shown via toast * Only business errors are
web/src/lib/httpClient.ts:210
↓ 12 callersFunctionuseAuth
()
web/src/contexts/AuthContext.tsx:320
↓ 11 callersMethodCloseLong
CloseLong Close long position (quantity=0 means close all)
trader/types/interface.go:57
↓ 11 callersMethodExchange
Exchange gets exchange storage
store/store.go:211
↓ 11 callersMethodGetOpenPositions
GetOpenPositions gets all open positions
store/position.go:332
↓ 11 callersMethodGetStatus
GetStatus gets system status (for API)
trader/auto_trader_decision.go:59
↓ 11 callersFunctionNewIndodaxTrader
NewIndodaxTrader creates a new Indodax trader instance
trader/indodax/trader.go:93
↓ 11 callersMethodUser
User gets user storage
store/store.go:191
↓ 11 callersFunctioncalculateEMA
calculateEMA calculates EMA
market/data_indicators.go:6
↓ 11 callersFunctioncreateKuCoinTestTrader
(t *testing.T)
trader/kucoin/order_sync_test.go:24
↓ 11 callersFunctionformatNumber
(value: number, decimals: number = 2)
web/src/components/trader/PositionHistory.tsx:20
↓ 11 callersMethodgetContract
getContract fetches contract info with caching
trader/gate/trader.go:77
↓ 11 callersFunctiongetHashValue
(hash: number, position: number, max: number)
web/src/components/common/PunkAvatar.tsx:21
↓ 11 callersMethodgetInstrument
getInstrument gets instrument info
trader/okx/trader_positions.go:129
↓ 11 callersFunctionisStaleData
isStaleData detects stale data (consecutive price freeze) Fix DOGEUSDT-style issue: consecutive N periods with completely unchanged prices indicate da
market/data.go:656
↓ 11 callersFunctionleftPad32
leftPad32 pads a byte slice to 32 bytes on the left (ABI encoding).
mcp/payment/x402.go:777
↓ 11 callersFunctionmockGetLLM
(llm *mockLLM)
telegram/agent/agent_test.go:83
↓ 11 callersFunctiontr
(key: string, params?: Record<string, string | number>)
web/src/components/auth/LoginRequiredOverlay.tsx:16
↓ 10 callersMethodCallWithMessages
(systemPrompt, userPrompt string)
mcp/interface.go:17
↓ 10 callersMethodCloseShort
CloseShort Close short position (quantity=0 means close all)
trader/types/interface.go:60
↓ 10 callersFunctionGetDefaultStrategyConfig
GetDefaultStrategyConfig returns the default strategy configuration for the given language
store/strategy.go:303
↓ 10 callersMethodGetOrderByExchangeID
GetOrderByExchangeID gets order by exchange order ID
store/order.go:215
↓ 10 callersFunctionNewPromptBuilder
NewPromptBuilder creates a new prompt builder for the given language
kernel/prompt_builder.go:20
↓ 10 callersMethodSave
Save bot token only (Web UI sets this)
store/telegram_config.go:39
↓ 10 callersMethodStop
Stop stops the automatic trading
trader/auto_trader.go:521
↓ 10 callersFunctionValidateDecisionFormat
ValidateDecisionFormat validates that the decision format is correct
kernel/prompt_builder.go:334
↓ 10 callersFunctionWithMaxTokens
============================================================ AI Parameter Options ============================================================ WithMax
mcp/options.go:83
↓ 10 callersFunctionexchangeDisplayName
(exchange *store.Exchange)
api/handler_trader.go:68
↓ 10 callersMethodformatSize
formatSize formats contract size
trader/okx/trader.go:281
↓ 10 callersFunctiontextReply
textReply builds a mock LLM response with a plain-text final answer.
telegram/agent/agent_test.go:79
↓ 9 callersFunctionNewClient
NewClient creates a new Hyperliquid client for mainnet
provider/hyperliquid/kline.go:54
↓ 9 callersFunctionNewFuturesTrader
NewFuturesTrader creates futures trader
trader/binance/futures.go:64
↓ 9 callersFunctionNewGateTrader
NewGateTrader creates a new Gate trader instance
trader/gate/trader.go:34
↓ 9 callersFunctionRegisterProvider
RegisterProvider registers a provider factory function. Called by provider/payment sub-packages in their init() functions.
mcp/registry.go:8
↓ 9 callersMethodSetAuthHeader
(reqHeaders http.Header)
mcp/hooks.go:21
↓ 9 callersMethodStartOrderSync
StartOrderSync starts background order sync task for OKX
trader/okx/order_sync.go:275
↓ 9 callersFunctionWithDeepSeekConfig
============================================================ Combined Options (Convenience Methods) ==================================================
mcp/options.go:159
↓ 9 callersFunctionWithTimeout
============================================================ Timeout and Retry Options ============================================================ Wi
mcp/options.go:48
↓ 9 callersFunctioncalculateRSI
calculateRSI calculates RSI
market/data_indicators.go:42
↓ 9 callersMethodcancelAllGridOrders
cancelAllGridOrders cancels all grid orders
trader/auto_trader_grid_orders.go:181
↓ 9 callersMethodconvertSymbol
convertSymbol converts standard symbol to Indodax format e.g. BTCIDR -> btc_idr, ETHIDR -> eth_idr
trader/indodax/trader.go:195
↓ 9 callersFunctioncreateBinanceTestTrader
(t *testing.T)
trader/binance/order_sync_test.go:26
↓ 9 callersMethoddoPrivateRequest
doPrivateRequest makes a signed private API POST request
trader/indodax/trader.go:147
↓ 9 callersMethodgetPrecision
getPrecision Get symbol precision information
trader/aster/trader.go:88
↓ 9 callersFunctionhandleInputChange
(field: keyof FormState, value: any)
web/src/components/trader/TraderConfigModal.tsx:123
↓ 9 callersFunctionmin
(a, b int)
kernel/engine_analysis.go:376
↓ 9 callersFunctionrenderComponent
()
web/src/components/auth/RegistrationDisabled.test.tsx:22
↓ 9 callersMethodrevertSymbol
revertSymbol converts symbol back to standard format (e.g., BTC_USDT -> BTCUSDT)
trader/gate/trader.go:72
↓ 9 callersMethodroundPriceToSigfigs
roundPriceToSigfigs rounds price to 5 significant figures Hyperliquid requires prices to use 5 significant figures
trader/hyperliquid/trader.go:280
↓ 9 callersFunctionupdateField
( key: K, value: RiskControlConfig[K] )
web/src/components/strategy/RiskControlEditor.tsx:18
↓ 8 callersMethodBuildUrl
── Shared request plumbing ─────────────────────────────────────────────
mcp/hooks.go:19
↓ 8 callersMethodCancelOrder
CancelOrder cancels a specific order by ID
trader/types/interface.go:155
↓ 8 callersMethodError
()
provider/nofxos/client.go:147
↓ 8 callersMethodEstimateTokens
EstimateTokens estimates the total token count for a strategy configuration. This is a pure computation based on config fields — no network calls.
store/strategy.go:667
↓ 8 callersFunctionGet
Get returns the global configuration
config/config.go:140
↓ 8 callersMethodGetOpenOrders
GetOpenOrders Get open/pending orders from exchange Returns stop-loss, take-profit, and limit orders that haven't been filled
trader/types/interface.go:104
↓ 8 callersMethodGetPosition
GetPosition Get position for specified symbol
trader/lighter/account.go:267
↓ 8 callersMethodLoadUserTradersFromStore
LoadUserTradersFromStore loads traders from store for a specific user to memory
manager/trader_manager.go:407
↓ 8 callersMethodSetAPIKey
(apiKey string, customURL string, customModel string)
mcp/interface.go:15
↓ 8 callersMethodUpdate
Update updates trader configuration
store/trader.go:108
↓ 8 callersFunctionWithMaxRetries
WithMaxRetries sets maximum retry count Usage example: client := mcp.NewClient(mcp.WithMaxRetries(5))
mcp/options.go:59
↓ 8 callersFunctioncalculateIntradaySeries
calculateIntradaySeries calculates intraday series data
market/data_klines.go:309
↓ 8 callersMethoddelete
* DELETE request
web/src/lib/httpClient.ts:291
↓ 8 callersFunctionfloatEqual
floatEqual compares two floats with tolerance
trader/binance/sync_verify_test.go:410
↓ 8 callersFunctionformatPrice
(price: number)
web/src/components/strategy/GridRiskPanel.tsx:78
↓ 8 callersMethodformatQuantity
formatQuantity Format quantity to correct precision and step size
trader/aster/trader.go:182
↓ 8 callersFunctionget
(ctx context.Context, path string, paramsMap map[string]string)
provider/coinank/coinank_api/kline.go:55
↓ 8 callersFunctiongetBrOrderID
getBrOrderID generates unique order ID (for futures contracts) Format: x-{BR_ID}{TIMESTAMP}{RANDOM} Futures limit is 32 characters, use this limit con
trader/binance/futures.go:21
↓ 8 callersFunctionmockAPIServer
mockAPIServer creates a test HTTP server with configurable route handlers.
telegram/agent/agent_test.go:90
↓ 8 callersFunctionparseFloat
parseFloat parses a string to float64, returns 0 for empty string
trader/lighter/types.go:107
↓ 8 callersFunctionparseFloat
parseFloat safely parses a float from interface{}
trader/indodax/trader.go:301
↓ 8 callersFunctiontoFloat64
(v any)
provider/coinank/coinank_api/kline_ws.go:159
↓ 8 callersFunctionwriteAPIError
(c *gin.Context, statusCode int, publicMsg, errorKey string, errorParams map[string]string)
api/errors.go:17
↓ 7 callersMethodBuildMCPRequestBody
(systemPrompt, userPrompt string)
mcp/hooks.go:16
↓ 7 callersMethodBuildRequest
(url string, jsonData []byte)
mcp/hooks.go:20
↓ 7 callersMethodDecision
Decision gets decision log storage
store/store.go:231
↓ 7 callersMethodFormatQuantity
FormatQuantity formats quantity
trader/bybit/trader.go:144
↓ 7 callersMethodFormatQuantity
FormatQuantity formats quantity
trader/bitget/trader.go:291
↓ 7 callersMethodGetExchange
GetExchange gets exchange
trader/auto_trader.go:557
↓ 7 callersMethodGetRequests
GetRequests gets all requests
mcp/mock_test.go:173
↓ 7 callersMethodGetStore
GetStore gets data store (for external access to decision records, etc.)
trader/auto_trader.go:593
↓ 7 callersMethodGetTrades
GetTrades retrieves trade/fill records from KuCoin
trader/kucoin/order_sync.go:30
↓ 7 callersMethodMarshalRequestBody
(requestBody map[string]any)
mcp/hooks.go:22
↓ 7 callersFunctionNewDeepSeekClientWithOptions
NewDeepSeekClientWithOptions creates DeepSeek client (supports options pattern)
mcp/provider/deepseek.go:29
↓ 7 callersFunctionSanitizeError
SanitizeError returns the error message if safe, otherwise returns a generic message
api/errors.go:118
↓ 7 callersMethodSetSuccessResponse
SetSuccessResponse sets success response
mcp/mock_test.go:198
↓ 7 callersFunctioncalculateATR
calculateATR calculates ATR
market/data_indicators.go:86
↓ 7 callersFunctioncalculateMACD
calculateMACD calculates MACD
market/data_indicators.go:28
↓ 7 callersMethodconvertSymbolBack
convertSymbolBack converts KuCoin format back to generic symbol e.g. XBTUSDTM -> BTCUSDT
trader/kucoin/trader.go:273
↓ 7 callersMethodexecute
execute calls the API and returns the response as a string for LLM consumption.
telegram/agent/apicall.go:38
↓ 7 callersMethodformatPrice
formatPrice Format price to correct precision and tick size
trader/aster/trader.go:165
↓ 7 callersFunctiongenBitgetClientOid
genBitgetClientOid generates unique client order ID
trader/bitget/trader.go:314
↓ 7 callersFunctionpow10
pow10 returns 10^n as int64
trader/lighter/trading.go:851
↓ 7 callersMethodput
* PUT request
web/src/lib/httpClient.ts:280
↓ 7 callersMethodroundToSzDecimals
roundToSzDecimals rounds quantity to correct precision
trader/hyperliquid/trader.go:265
↓ 6 callersMethodBuildRequestBodyFromRequest
── Advanced (Request-object) path ────────────────────────────────────── BuildRequestBodyFromRequest converts a *Request into the provider's native wi
mcp/hooks.go:27
↓ 6 callersMethodEquity
Equity gets equity storage
store/store.go:261
↓ 6 callersMethodGetActiveOrders
GetActiveOrders Get active orders
trader/lighter/orders.go:204
↓ 6 callersMethodGetOpenPositionBySymbol
GetOpenPositionBySymbol gets open position for specified symbol and direction
store/position.go:351
← previousnext →101–200 of 2,334, ranked by callers