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
↓ 6 callers
Method
GetTradesForSymbol
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 callers
Function
GetWithTimeframes
GetWithTimeframes retrieves market data for specified multiple timeframes timeframes: list of timeframes, e.g. ["5m", "15m", "1h", "4h"] primaryTimefr
market/data.go:147
↓ 6 callers
Function
Kline
Kline open free kline from coinank
provider/coinank/coinank_api/kline.go:19
↓ 6 callers
Function
MaskSensitiveString
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 callers
Function
NewLighterTraderV2
NewLighterTraderV2 Create new LIGHTER trader (using official SDK) Parameters: - walletAddr: Ethereum wallet address (required) - apiKeyPrivateKeyHex:
trader/lighter/trader.go:102
↓ 6 callers
Function
NewPositionStore
NewPositionStore creates position storage instance
store/position.go:134
↓ 6 callers
Method
ParseMCPResponse
ParseMCPResponse extracts the plain-text reply from a non-streaming response body.
mcp/hooks.go:31
↓ 6 callers
Function
QueryUSDCBalanceStr
QueryUSDCBalanceStr queries USDC balance on Base chain and returns as formatted string
wallet/usdc.go:33
↓ 6 callers
Method
SetLeverage
SetLeverage Set leverage
trader/types/interface.go:63
↓ 6 callers
Method
SetStopLoss
SetStopLoss Set stop-loss order
trader/types/interface.go:72
↓ 6 callers
Method
SetTakeProfit
SetTakeProfit Set take-profit order
trader/types/interface.go:75
↓ 6 callers
Method
SyncOrdersFromBinance
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 callers
Function
WithTemperature
WithTemperature sets temperature parameter Usage example: client := mcp.NewClient(mcp.WithTemperature(0.7))
mcp/options.go:106
↓ 6 callers
Function
createIndodaxTestTrader
(t *testing.T)
trader/indodax/trader_test.go:23
↓ 6 callers
Method
ensureAuthToken
ensureAuthToken Ensure authentication token is valid
trader/lighter/trader.go:376
↓ 6 callers
Function
getEnv
getEnv gets environment variable with default value
store/driver.go:235
↓ 6 callers
Function
getTraderAvatar
(traderId: string, traderName: string)
web/src/components/common/PunkAvatar.tsx:340
↓ 6 callers
Method
quantityToLots
quantityToLots converts quantity (in base asset) to lots
trader/kucoin/trader.go:350
↓ 6 callers
Function
sendMarkdownMsg
(bot *tgbotapi.BotAPI, chatID int64, text string)
telegram/bot.go:259
↓ 6 callers
Function
sendMsg
── Helpers ───────────────────────────────────────────────────────────────────
telegram/bot.go:254
↓ 6 callers
Function
traderColor
(traderId: string)
web/src/components/charts/ComparisonChart.tsx:187
↓ 6 callers
Function
truncateMessages
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 callers
Method
AddUserMessage
AddUserMessage adds user message
mcp/request_builder.go:79
↓ 5 callers
Method
BuildSystemPrompt
BuildSystemPrompt builds the system prompt
kernel/prompt_builder.go:25
↓ 5 callers
Method
BuildUserPrompt
BuildUserPrompt builds the user prompt with full trading context
kernel/prompt_builder.go:33
↓ 5 callers
Method
CallWithRequest
============================================================ Builder Pattern API (Advanced Features) =================================================
mcp/client.go:415
↓ 5 callers
Method
CancelAllOrders
CancelAllOrders Cancel all pending orders for this symbol
trader/types/interface.go:84
↓ 5 callers
Method
Close
Close closes database connection
store/driver.go:99
↓ 5 callers
Method
DB
DB gets underlying database connection (for legacy code compatibility) Deprecated: use GormDB() instead
store/store.go:355
↓ 5 callers
Method
Debugf
(format string, args ...any)
mcp/logger.go:7
↓ 5 callers
Method
Error
()
security/url_validator.go:48
↓ 5 callers
Function
Fatalf
(format string, args ...interface{})
logger/logger.go:173
↓ 5 callers
Method
FormatQuantity
FormatQuantity formats quantity to correct precision
trader/binance/futures_positions.go:244
↓ 5 callers
Method
GetAIModel
GetAIModel gets AI model
trader/auto_trader.go:552
↓ 5 callers
Method
GetCandles
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 callers
Method
GetFullConfig
GetFullConfig gets trader full configuration
store/trader.go:164
↓ 5 callers
Method
GetPositions
GetPositions gets all positions (with cache)
trader/binance/futures_positions.go:14
↓ 5 callers
Function
GetWithExchange
GetWithExchange retrieves market data for the specified token using exchange-specific data
market/data.go:33
↓ 5 callers
Method
InitTables
InitTables initializes position tables
store/position.go:144
↓ 5 callers
Method
IsRetryableError
(err error)
mcp/hooks.go:36
↓ 5 callers
Function
IsXyzDexAsset
IsXyzDexAsset checks if a symbol is an xyz dex asset
market/data.go:541
↓ 5 callers
Function
NewAIClientByProvider
NewAIClientByProvider creates an AIClient by provider name using the registry. Returns nil if the provider is not registered.
mcp/registry.go:14
↓ 5 callers
Function
NewQwenClientWithOptions
NewQwenClientWithOptions creates Qwen client (supports options pattern)
mcp/provider/qwen.go:34
↓ 5 callers
Function
NewStrategyEngine
NewStrategyEngine creates strategy execution engine. claw402WalletKey is optional — if provided, nofxos data requests are routed through claw402.
kernel/engine.go:191
↓ 5 callers
Function
NormalizeSymbol
NormalizeSymbol normalizes coin symbol to XXXUSDT format
provider/nofxos/ai500.go:156
↓ 5 callers
Method
RemoveTrader
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 callers
Function
applyPeriodFilter
(query *gorm.DB, period string)
store/ai_charge.go:126
↓ 5 callers
Method
clearCache
clearCache clears all caches
trader/gate/trader.go:103
↓ 5 callers
Function
confirmBreakout
confirmBreakout updates breakout state and returns true if breakout is confirmed
trader/grid_regime.go:147
↓ 5 callers
Function
confirmToast
( message: string, options: ConfirmOptions = {} )
web/src/lib/notify.tsx:23
↓ 5 callers
Function
detectBoxBreakout
============================================================================ Task 7: Breakout Detection ==============================================
trader/grid_regime.go:98
↓ 5 callers
Method
doRequest
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 callers
Function
fetchStrategies
()
web/src/components/trader/TraderConfigModal.tsx:77
↓ 5 callers
Function
floatToWireStr
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 callers
Function
formatFlowValue
(v float64)
kernel/engine_prompt.go:754
↓ 5 callers
Function
formatPrice
(price: number | undefined | null, minDecimals = 2)
web/src/utils/format.ts:15
↓ 5 callers
Function
genOkxClOrdID
genOkxClOrdID generates OKX order ID
trader/okx/trader.go:98
↓ 5 callers
Function
getBinanceTestCredentials
(t *testing.T)
trader/binance/order_sync_test.go:17
↓ 5 callers
Method
getMarketInfo
getMarketInfo Get market info including precision - dynamically fetch from API
trader/lighter/trading.go:482
↓ 5 callers
Function
getShortName
(fullName: string)
web/src/components/trader/model-constants.ts:33
↓ 5 callers
Function
getUserMode
()
web/src/lib/onboarding.ts:7
↓ 5 callers
Function
normalizeSymbol
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 callers
Method
rankParam
(sortBy coinank_enum.InstrumentAggSortBy, sortType coinank_enum.SortType, page int, size int)
provider/coinank/instrument_agg_rank.go:134
↓ 5 callers
Method
saveDecision
saveDecision saves AI decision log to database (only records AI input/output, for debugging)
trader/auto_trader_decision.go:36
↓ 5 callers
Method
submitOrder
submitOrder Submit signed order to LIGHTER API using multipart/form-data
trader/lighter/trading.go:352
↓ 4 callers
Method
AICharge
AICharge gets AI charge storage
store/store.go:291
↓ 4 callers
Method
Build
============================================================ Build Methods ============================================================ Build builds r
mcp/request_builder.go:225
↓ 4 callers
Method
CancelAllOrders
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 callers
Method
CancelAllOrders
CancelAllOrders cancels all pending orders for symbol
trader/kucoin/trader_orders.go:494
↓ 4 callers
Method
CancelAllOrders
CancelAllOrders Cancel all orders (implements Trader interface)
trader/lighter/orders.go:60
↓ 4 callers
Method
CancelAllOrders
CancelAllOrders Cancel all orders
trader/aster/trader_orders.go:524
↓ 4 callers
Method
CancelAllOrders
CancelAllOrders cancels all pending orders for this coin
trader/hyperliquid/trader_orders.go:353
↓ 4 callers
Method
CancelAllOrders
CancelAllOrders cancels all pending orders
trader/okx/trader_orders.go:532
↓ 4 callers
Method
DecryptSensitiveData
(payload *EncryptedPayload)
crypto/crypto.go:351
↓ 4 callers
Function
ExportCalculateDonchian
ExportCalculateDonchian exports calculateDonchian for testing
market/data_indicators.go:228
↓ 4 callers
Method
GetAccountInfo
GetAccountInfo gets account information (for API)
trader/auto_trader_decision.go:97
↓ 4 callers
Method
GetCommissionSymbols
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 callers
Method
GetCompetitionData
GetCompetitionData retrieves competition data (all traders across platform)
manager/trader_manager.go:191
↓ 4 callers
Method
GetConfig
GetConfig gets complete strategy configuration
kernel/engine.go:246
↓ 4 callers
Method
GetMarketPrice
GetMarketPrice Get market price (implements Trader interface)
trader/lighter/account.go:284
↓ 4 callers
Method
GetMarketPrice
GetMarketPrice Get market price
trader/aster/trader_account.go:104
↓ 4 callers
Method
GetMarketPrice
GetMarketPrice gets market price (supports both crypto and xyz dex assets)
trader/hyperliquid/trader_account.go:270
↓ 4 callers
Method
GetPnLSymbols
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 callers
Method
GetResult
()
hook/ip_hook.go:14
↓ 4 callers
Method
GetTrades
GetTrades retrieves trade history from Lighter
trader/lighter/trader.go:451
↓ 4 callers
Method
Invalidate
(userID string)
api/exchange_account_state.go:86
↓ 4 callers
Function
NewAsterTrader
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 callers
Function
NewKuCoinTrader
NewKuCoinTrader creates a new KuCoin trader instance
trader/kucoin/trader.go:98
↓ 4 callers
Function
NewNoopLogger
NewNoopLogger creates no-op logger (for testing)
mcp/logger.go:22
↓ 4 callers
Function
NormalizeCoinBase
NormalizeCoinBase removes common suffixes to get base symbol
provider/hyperliquid/kline.go:386
↓ 4 callers
Method
OpenLong
OpenLong Open long position
trader/types/interface.go:51
↓ 4 callers
Method
ParseMCPResponseFull
ParseMCPResponseFull extracts both text and tool calls.
mcp/hooks.go:34
↓ 4 callers
Function
SafeError
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 callers
Method
SetMarginMode
SetMarginMode Set position mode (true=cross margin, false=isolated margin)
trader/types/interface.go:66
↓ 4 callers
Method
ToTradeRecord
ToTradeRecord converts KuCoinTrade to types.TradeRecord
trader/kucoin/order_sync.go:254
↓ 4 callers
Method
Transaction
Transaction executes transaction with GORM
store/store.go:385
↓ 4 callers
Method
UpdateOrderStatus
UpdateOrderStatus updates order status
store/order.go:169
↓ 4 callers
Function
ValidateURL
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 callers
Method
WithSystemPrompt
============================================================ Message Building Methods ============================================================ Wit
mcp/request_builder.go:58
↓ 4 callers
Method
arrayBufferToBase64Url
(buffer: ArrayBuffer)
web/src/lib/crypto.ts:157
← previous
next →
201–300 of 2,334, ranked by callers