Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/JMWL66/jmwl-autotrade
/ functions
Functions
2,334 in github.com/JMWL66/jmwl-autotrade
⨍
Functions
2,334
◇
Types & classes
502
↓ 12 callers
Function
mapStringPairs
(kv ...string)
api/handler_trader.go:134
↓ 12 callers
Method
request
* 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 callers
Function
useAuth
()
web/src/contexts/AuthContext.tsx:320
↓ 11 callers
Method
CloseLong
CloseLong Close long position (quantity=0 means close all)
trader/types/interface.go:57
↓ 11 callers
Method
Exchange
Exchange gets exchange storage
store/store.go:211
↓ 11 callers
Method
GetOpenPositions
GetOpenPositions gets all open positions
store/position.go:332
↓ 11 callers
Method
GetStatus
GetStatus gets system status (for API)
trader/auto_trader_decision.go:59
↓ 11 callers
Function
NewIndodaxTrader
NewIndodaxTrader creates a new Indodax trader instance
trader/indodax/trader.go:93
↓ 11 callers
Method
User
User gets user storage
store/store.go:191
↓ 11 callers
Function
calculateEMA
calculateEMA calculates EMA
market/data_indicators.go:6
↓ 11 callers
Function
createKuCoinTestTrader
(t *testing.T)
trader/kucoin/order_sync_test.go:24
↓ 11 callers
Function
formatNumber
(value: number, decimals: number = 2)
web/src/components/trader/PositionHistory.tsx:20
↓ 11 callers
Method
getContract
getContract fetches contract info with caching
trader/gate/trader.go:77
↓ 11 callers
Function
getHashValue
(hash: number, position: number, max: number)
web/src/components/common/PunkAvatar.tsx:21
↓ 11 callers
Method
getInstrument
getInstrument gets instrument info
trader/okx/trader_positions.go:129
↓ 11 callers
Function
isStaleData
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 callers
Function
leftPad32
leftPad32 pads a byte slice to 32 bytes on the left (ABI encoding).
mcp/payment/x402.go:777
↓ 11 callers
Function
mockGetLLM
(llm *mockLLM)
telegram/agent/agent_test.go:83
↓ 11 callers
Function
tr
(key: string, params?: Record<string, string | number>)
web/src/components/auth/LoginRequiredOverlay.tsx:16
↓ 10 callers
Method
CallWithMessages
(systemPrompt, userPrompt string)
mcp/interface.go:17
↓ 10 callers
Method
CloseShort
CloseShort Close short position (quantity=0 means close all)
trader/types/interface.go:60
↓ 10 callers
Function
GetDefaultStrategyConfig
GetDefaultStrategyConfig returns the default strategy configuration for the given language
store/strategy.go:303
↓ 10 callers
Method
GetOrderByExchangeID
GetOrderByExchangeID gets order by exchange order ID
store/order.go:215
↓ 10 callers
Function
NewPromptBuilder
NewPromptBuilder creates a new prompt builder for the given language
kernel/prompt_builder.go:20
↓ 10 callers
Method
Save
Save bot token only (Web UI sets this)
store/telegram_config.go:39
↓ 10 callers
Method
Stop
Stop stops the automatic trading
trader/auto_trader.go:521
↓ 10 callers
Function
ValidateDecisionFormat
ValidateDecisionFormat validates that the decision format is correct
kernel/prompt_builder.go:334
↓ 10 callers
Function
WithMaxTokens
============================================================ AI Parameter Options ============================================================ WithMax
mcp/options.go:83
↓ 10 callers
Function
exchangeDisplayName
(exchange *store.Exchange)
api/handler_trader.go:68
↓ 10 callers
Method
formatSize
formatSize formats contract size
trader/okx/trader.go:281
↓ 10 callers
Function
textReply
textReply builds a mock LLM response with a plain-text final answer.
telegram/agent/agent_test.go:79
↓ 9 callers
Function
NewClient
NewClient creates a new Hyperliquid client for mainnet
provider/hyperliquid/kline.go:54
↓ 9 callers
Function
NewFuturesTrader
NewFuturesTrader creates futures trader
trader/binance/futures.go:64
↓ 9 callers
Function
NewGateTrader
NewGateTrader creates a new Gate trader instance
trader/gate/trader.go:34
↓ 9 callers
Function
RegisterProvider
RegisterProvider registers a provider factory function. Called by provider/payment sub-packages in their init() functions.
mcp/registry.go:8
↓ 9 callers
Method
SetAuthHeader
(reqHeaders http.Header)
mcp/hooks.go:21
↓ 9 callers
Method
StartOrderSync
StartOrderSync starts background order sync task for OKX
trader/okx/order_sync.go:275
↓ 9 callers
Function
WithDeepSeekConfig
============================================================ Combined Options (Convenience Methods) ==================================================
mcp/options.go:159
↓ 9 callers
Function
WithTimeout
============================================================ Timeout and Retry Options ============================================================ Wi
mcp/options.go:48
↓ 9 callers
Function
calculateRSI
calculateRSI calculates RSI
market/data_indicators.go:42
↓ 9 callers
Method
cancelAllGridOrders
cancelAllGridOrders cancels all grid orders
trader/auto_trader_grid_orders.go:181
↓ 9 callers
Method
convertSymbol
convertSymbol converts standard symbol to Indodax format e.g. BTCIDR -> btc_idr, ETHIDR -> eth_idr
trader/indodax/trader.go:195
↓ 9 callers
Function
createBinanceTestTrader
(t *testing.T)
trader/binance/order_sync_test.go:26
↓ 9 callers
Method
doPrivateRequest
doPrivateRequest makes a signed private API POST request
trader/indodax/trader.go:147
↓ 9 callers
Method
getPrecision
getPrecision Get symbol precision information
trader/aster/trader.go:88
↓ 9 callers
Function
handleInputChange
(field: keyof FormState, value: any)
web/src/components/trader/TraderConfigModal.tsx:123
↓ 9 callers
Function
min
(a, b int)
kernel/engine_analysis.go:376
↓ 9 callers
Function
renderComponent
()
web/src/components/auth/RegistrationDisabled.test.tsx:22
↓ 9 callers
Method
revertSymbol
revertSymbol converts symbol back to standard format (e.g., BTC_USDT -> BTCUSDT)
trader/gate/trader.go:72
↓ 9 callers
Method
roundPriceToSigfigs
roundPriceToSigfigs rounds price to 5 significant figures Hyperliquid requires prices to use 5 significant figures
trader/hyperliquid/trader.go:280
↓ 9 callers
Function
updateField
( key: K, value: RiskControlConfig[K] )
web/src/components/strategy/RiskControlEditor.tsx:18
↓ 8 callers
Method
BuildUrl
── Shared request plumbing ─────────────────────────────────────────────
mcp/hooks.go:19
↓ 8 callers
Method
CancelOrder
CancelOrder cancels a specific order by ID
trader/types/interface.go:155
↓ 8 callers
Method
Error
()
provider/nofxos/client.go:147
↓ 8 callers
Method
EstimateTokens
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 callers
Function
Get
Get returns the global configuration
config/config.go:140
↓ 8 callers
Method
GetOpenOrders
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 callers
Method
GetPosition
GetPosition Get position for specified symbol
trader/lighter/account.go:267
↓ 8 callers
Method
LoadUserTradersFromStore
LoadUserTradersFromStore loads traders from store for a specific user to memory
manager/trader_manager.go:407
↓ 8 callers
Method
SetAPIKey
(apiKey string, customURL string, customModel string)
mcp/interface.go:15
↓ 8 callers
Method
Update
Update updates trader configuration
store/trader.go:108
↓ 8 callers
Function
WithMaxRetries
WithMaxRetries sets maximum retry count Usage example: client := mcp.NewClient(mcp.WithMaxRetries(5))
mcp/options.go:59
↓ 8 callers
Function
calculateIntradaySeries
calculateIntradaySeries calculates intraday series data
market/data_klines.go:309
↓ 8 callers
Method
delete
* DELETE request
web/src/lib/httpClient.ts:291
↓ 8 callers
Function
floatEqual
floatEqual compares two floats with tolerance
trader/binance/sync_verify_test.go:410
↓ 8 callers
Function
formatPrice
(price: number)
web/src/components/strategy/GridRiskPanel.tsx:78
↓ 8 callers
Method
formatQuantity
formatQuantity Format quantity to correct precision and step size
trader/aster/trader.go:182
↓ 8 callers
Function
get
(ctx context.Context, path string, paramsMap map[string]string)
provider/coinank/coinank_api/kline.go:55
↓ 8 callers
Function
getBrOrderID
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 callers
Function
mockAPIServer
mockAPIServer creates a test HTTP server with configurable route handlers.
telegram/agent/agent_test.go:90
↓ 8 callers
Function
parseFloat
parseFloat parses a string to float64, returns 0 for empty string
trader/lighter/types.go:107
↓ 8 callers
Function
parseFloat
parseFloat safely parses a float from interface{}
trader/indodax/trader.go:301
↓ 8 callers
Function
toFloat64
(v any)
provider/coinank/coinank_api/kline_ws.go:159
↓ 8 callers
Function
writeAPIError
(c *gin.Context, statusCode int, publicMsg, errorKey string, errorParams map[string]string)
api/errors.go:17
↓ 7 callers
Method
BuildMCPRequestBody
(systemPrompt, userPrompt string)
mcp/hooks.go:16
↓ 7 callers
Method
BuildRequest
(url string, jsonData []byte)
mcp/hooks.go:20
↓ 7 callers
Method
Decision
Decision gets decision log storage
store/store.go:231
↓ 7 callers
Method
FormatQuantity
FormatQuantity formats quantity
trader/bybit/trader.go:144
↓ 7 callers
Method
FormatQuantity
FormatQuantity formats quantity
trader/bitget/trader.go:291
↓ 7 callers
Method
GetExchange
GetExchange gets exchange
trader/auto_trader.go:557
↓ 7 callers
Method
GetRequests
GetRequests gets all requests
mcp/mock_test.go:173
↓ 7 callers
Method
GetStore
GetStore gets data store (for external access to decision records, etc.)
trader/auto_trader.go:593
↓ 7 callers
Method
GetTrades
GetTrades retrieves trade/fill records from KuCoin
trader/kucoin/order_sync.go:30
↓ 7 callers
Method
MarshalRequestBody
(requestBody map[string]any)
mcp/hooks.go:22
↓ 7 callers
Function
NewDeepSeekClientWithOptions
NewDeepSeekClientWithOptions creates DeepSeek client (supports options pattern)
mcp/provider/deepseek.go:29
↓ 7 callers
Function
SanitizeError
SanitizeError returns the error message if safe, otherwise returns a generic message
api/errors.go:118
↓ 7 callers
Method
SetSuccessResponse
SetSuccessResponse sets success response
mcp/mock_test.go:198
↓ 7 callers
Function
calculateATR
calculateATR calculates ATR
market/data_indicators.go:86
↓ 7 callers
Function
calculateMACD
calculateMACD calculates MACD
market/data_indicators.go:28
↓ 7 callers
Method
convertSymbolBack
convertSymbolBack converts KuCoin format back to generic symbol e.g. XBTUSDTM -> BTCUSDT
trader/kucoin/trader.go:273
↓ 7 callers
Method
execute
execute calls the API and returns the response as a string for LLM consumption.
telegram/agent/apicall.go:38
↓ 7 callers
Method
formatPrice
formatPrice Format price to correct precision and tick size
trader/aster/trader.go:165
↓ 7 callers
Function
genBitgetClientOid
genBitgetClientOid generates unique client order ID
trader/bitget/trader.go:314
↓ 7 callers
Function
pow10
pow10 returns 10^n as int64
trader/lighter/trading.go:851
↓ 7 callers
Method
put
* PUT request
web/src/lib/httpClient.ts:280
↓ 7 callers
Method
roundToSzDecimals
roundToSzDecimals rounds quantity to correct precision
trader/hyperliquid/trader.go:265
↓ 6 callers
Method
BuildRequestBodyFromRequest
── Advanced (Request-object) path ────────────────────────────────────── BuildRequestBodyFromRequest converts a *Request into the provider's native wi
mcp/hooks.go:27
↓ 6 callers
Method
Equity
Equity gets equity storage
store/store.go:261
↓ 6 callers
Method
GetActiveOrders
GetActiveOrders Get active orders
trader/lighter/orders.go:204
↓ 6 callers
Method
GetOpenPositionBySymbol
GetOpenPositionBySymbol gets open position for specified symbol and direction
store/position.go:351
← previous
next →
101–200 of 2,334, ranked by callers