MCPcopy Create free account

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

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

↓ 4 callersFunctioncalculateDonchian
calculateDonchian calculates Donchian channel (highest high, lowest low) for given period
market/data_indicators.go:150
↓ 4 callersMethodcancelAlgoOrders
cancelAlgoOrders cancels algo orders
trader/okx/trader_orders.go:488
↓ 4 callersMethodcancelPlanOrders
cancelPlanOrders cancels plan orders
trader/bitget/trader_orders.go:340
↓ 4 callersMethodclearCache
Helper methods
trader/bybit/trader.go:169
↓ 4 callersMethodclearCache
clearCache clears all caches
trader/bitget/trader.go:303
↓ 4 callersMethodclearCache
clearCache clears cached data
trader/indodax/trader.go:293
↓ 4 callersFunctiondescribeTraderStartError
(traderName string, err error)
api/handler_trader.go:280
↓ 4 callersFunctionestimateMessageTokens
estimateMessageTokens estimates the token count for a list of chat messages. Uses ~3 chars per token heuristic (conservative for mixed CJK/English tex
mcp/context_guard.go:11
↓ 4 callersMethodfetchCryptoConfig
()
web/src/lib/crypto.ts:41
↓ 4 callersMethodfetchNetFlowRanking
(rankType, duration string, limit int, flowType, trade string)
provider/nofxos/netflow.go:98
↓ 4 callersMethodfetchOIRanking
(rankType, duration string, limit int)
provider/nofxos/oi.go:86
↓ 4 callersFunctionfixMissingQuotes
(jsonStr string)
kernel/engine_analysis.go:337
↓ 4 callersFunctionformatFieldDefEN
formatFieldDefEN formats a field definition in English
kernel/schema.go:545
↓ 4 callersFunctionformatFieldDefZH
formatFieldDefZH formats a field definition in Chinese
kernel/schema.go:532
↓ 4 callersFunctionformatPriceWithDynamicPrecision
formatPriceWithDynamicPrecision dynamically selects precision based on price range This perfectly supports all coins from ultra-low price meme coins (
market/data.go:486
↓ 4 callersFunctionformatTraderStartError
(reason, nextStep string)
api/handler_trader.go:293
↓ 4 callersMethodgetContract
getContract gets contract info
trader/kucoin/trader.go:284
↓ 4 callersFunctiongetKlinesFromCoinAnk
Note: Kline data now uses free/open API (coinank_api.Kline) which doesn't require authentication getKlinesFromCoinAnk fetches kline data from CoinAnk
market/data_klines.go:18
↓ 4 callersFunctiongetKlinesFromHyperliquid
getKlinesFromHyperliquid fetches kline data from Hyperliquid API for xyz dex assets
market/data_klines.go:116
↓ 4 callersMethodgetMarketIndex
getMarketIndex Get market index (convert from symbol) - dynamically fetch from API
trader/lighter/trading.go:503
↓ 4 callersMethodgetNonce
getNonce returns a unique incrementing nonce for each request
trader/indodax/trader.go:105
↓ 4 callersFunctionhumanizeTraderSetupReason
(reason string)
api/handler_trader.go:221
↓ 4 callersFunctionkeccak256String
(s string)
mcp/payment/x402.go:551
↓ 4 callersMethodparseOrderResult
(result *bybit.ServerResponse)
trader/bybit/trader.go:179
↓ 4 callersMethodplaceXyzOrder
placeXyzOrder places an order on the xyz dex (stocks, forex, commodities) Note: xyz dex orders use builder-deployed perpetuals and require different h
trader/hyperliquid/trader_orders.go:584
↓ 4 callersMethodpost
* POST request
web/src/lib/httpClient.ts:269
↓ 4 callersMethodrecordAndConfirmOrder
recordAndConfirmOrder polls order status for actual fill data and records position action: open_long, open_short, close_long, close_short entryPrice:
trader/auto_trader_decision.go:244
↓ 4 callersMethodsign
sign generates HMAC-SHA512 signature for request body
trader/indodax/trader.go:113
↓ 4 callersFunctiontraderCreationRequestError
(reason string)
api/handler_trader.go:64
↓ 4 callersFunctiontraderSetupReasonParams
(err error, fallback string, kv ...string)
api/handler_trader.go:226
↓ 3 callersFunctionBaseCoinSymbols
BaseCoinSymbols get base coin from coinank free open api , all params is optional
provider/coinank/coinank_api/base_coin.go:11
↓ 3 callersFunctionDoX402Request
DoX402Request executes an HTTP request and handles the x402 v2 payment flow.
mcp/payment/x402.go:116
↓ 3 callersFunctionGenerateJWT
GenerateJWT generates JWT token
auth/auth.go:85
↓ 3 callersFunctionGetBoxData
GetBoxData fetches 1h klines and calculates box data for a symbol
market/data_klines.go:405
↓ 3 callersMethodGetBuySellRatio
GetBuySellRatio returns the buy and sell ratio for this direction biasRatio is the ratio for biased directions (default 0.7 means 70%/30%)
market/types.go:243
↓ 3 callersMethodGetByEmail
GetByEmail gets user by email
store/user.go:67
↓ 3 callersMethodGetClosedPositions
GetClosedPositions gets closed positions
store/position.go:384
↓ 3 callersFunctionGetContextLimit
GetContextLimit returns the context limit for a given provider
store/strategy.go:630
↓ 3 callersMethodGetFullStats
GetFullStats gets complete trading statistics
store/position_query.go:58
↓ 3 callersMethodGetLanguage
Set UI language ("en" or "zh")
store/telegram_config.go:45
↓ 3 callersMethodGetLanguage
GetLanguage returns the language from config or falls back to auto-detection
kernel/engine.go:233
↓ 3 callersMethodGetLastFillTimeByExchange
GetLastFillTimeByExchange returns the most recent fill time (Unix ms) for a given exchange Used to recover sync state after service restart
store/order.go:401
↓ 3 callersMethodGetMarketPrice
GetMarketPrice gets the current market price for a symbol
trader/indodax/trader_orders.go:136
↓ 3 callersMethodGetOITopPositions
GetOITopPositions retrieves top OI increase positions (legacy compatibility)
provider/nofxos/oi.go:108
↓ 3 callersMethodGetPositions
GetPositions Get position information
trader/aster/trader_positions.go:12
↓ 3 callersMethodGetSystemPromptTemplate
GetSystemPromptTemplate gets current system prompt template name (from strategy config)
trader/auto_trader.go:582
↓ 3 callersMethodGormDB
GormDB returns the GORM database connection
store/store.go:322
↓ 3 callersFunctionHashPassword
HashPassword hashes the password
auth/auth.go:73
↓ 3 callersFunctionHookExec
(key string, args ...any)
hook/hooks.go:14
↓ 3 callersMethodInitTables
InitTables initializes grid-related tables
store/grid.go:222
↓ 3 callersFunctionIsEnabled
()
telemetry/experience.go:96
↓ 3 callersFunctionNew
New creates new Store instance (SQLite mode for backward compatibility)
store/store.go:38
↓ 3 callersFunctionNew
New creates default client (backward compatible) Deprecated: Recommend using NewClient(...opts) for better flexibility
mcp/client.go:87
↓ 3 callersFunctionNewBitgetTrader
NewBitgetTrader creates a Bitget trader
trader/bitget/trader.go:84
↓ 3 callersFunctionNewBybitTrader
NewBybitTrader creates a Bybit trader
trader/bybit/trader.go:43
↓ 3 callersFunctionNewOKXTrader
NewOKXTrader creates OKX trader
trader/okx/trader.go:112
↓ 3 callersFunctionNewTraderTestSuite
NewTraderTestSuite Create new base test suite
trader/testutil/test_suite.go:25
↓ 3 callersFunctionNewUserMessage
NewUserMessage creates a user message
mcp/request.go:84
↓ 3 callersFunctionNormalizeTimeframe
NormalizeTimeframe normalizes the incoming timeframe string (case-insensitive, no spaces), and validates if it's supported.
market/timeframe.go:26
↓ 3 callersMethodOpenShort
OpenShort Open short position
trader/types/interface.go:54
↓ 3 callersFunctionSafeHTTPClient
SafeHTTPClient returns an HTTP client with SSRF protection It validates URLs and blocks requests to private networks
security/url_validator.go:158
↓ 3 callersMethodSetLeverage
SetLeverage sets leverage (with smart detection and cooldown period)
trader/binance/futures_positions.go:120
↓ 3 callersMethodSetLeverage
SetLeverage sets leverage
trader/bybit/trader_orders.go:192
↓ 3 callersMethodSetLeverage
SetLeverage Set leverage (implements Trader interface) Lighter uses InitialMarginFraction to represent leverage: - InitialMarginFraction = (100 / leve
trader/lighter/trading.go:625
↓ 3 callersMethodSetLeverage
SetLeverage sets leverage
trader/bitget/trader_account.go:103
↓ 3 callersMethodSetLeverage
SetLeverage sets leverage
trader/hyperliquid/trader_positions.go:154
↓ 3 callersMethodSetLeverage
SetLeverage sets leverage
trader/okx/trader_account.go:117
↓ 3 callersMethodString
String returns a safe string representation of TelegramConfig with the token masked.
store/telegram_config.go:26
↓ 3 callersMethodSubscribe
Subscribe subscribe depth
provider/coinank/coinank_api/depth_ws.go:32
↓ 3 callersMethodUpdateInitialBalance
UpdateInitialBalance updates initial balance
store/trader.go:138
↓ 3 callersMethodUpdatePositionQuantityAndPrice
UpdatePositionQuantityAndPrice updates position quantity and recalculates entry price
store/position.go:213
↓ 3 callersMethodUpdateStatus
UpdateStatus updates trader running status
store/trader.go:94
↓ 3 callersMethodWithTemperature
============================================================ Parameter Control Methods ============================================================ Wi
mcp/request_builder.go:123
↓ 3 callersMethodWithToolChoice
WithToolChoice sets tool choice strategy - "auto": automatically choose whether to call tools - "none": don't call tools - Can also specify a specific
mcp/request_builder.go:215
↓ 3 callersFunctionadaptivePriceRound
adaptivePriceRound rounds a price based on its magnitude to preserve meaningful precision. For small prices (like meme coins), it preserves more decim
store/position.go:16
↓ 3 callersFunctionbuildExchangeProbeTrader
(exchangeCfg *store.Exchange, userID string)
api/exchange_account_state.go:225
↓ 3 callersMethodcalculateDefaultBoundsLocked
calculateDefaultBoundsLocked calculates default bounds (caller must hold lock)
trader/auto_trader_grid_levels.go:333
↓ 3 callersFunctioncalculateEMA
(data: Kline[], period: number)
web/src/utils/indicators.ts:31
↓ 3 callersMethodcancelTriggerOrders
cancelTriggerOrders cancels trigger orders of a specific type
trader/gate/trader_orders.go:433
↓ 3 callersMethodcheckClient
checkClient Verify if API Key is correct
trader/lighter/trader.go:315
↓ 3 callersFunctionclientForProvider
(provider string)
telegram/bot.go:323
↓ 3 callersFunctioncloneExchangeAccountStates
(states map[string]ExchangeAccountState)
api/exchange_account_state.go:92
↓ 3 callersFunctiondescribeTraderCreationWarning
(traderName string, err error)
api/handler_trader.go:267
↓ 3 callersFunctiondetermineRecoveryDirection
determineRecoveryDirection determines if grid direction should recover toward neutral This implements the gradual recovery logic: long → long_bias → n
trader/grid_regime.go:252
↓ 3 callersMethodencryptSensitiveData
( plaintext: string, userId?: string, sessionId?: string )
web/src/lib/crypto.ts:87
↓ 3 callersFunctionestimateMessageTokensAny
estimateMessageTokensAny is like estimateMessageTokens but for map[string]any messages (used by BuildRequestBodyFromRequest which needs tool_calls sup
mcp/context_guard.go:23
↓ 3 callersFunctionextractFirstNumeric
(values map[string]interface{}, keys ...string)
api/exchange_account_state.go:271
↓ 3 callersMethodfetchMarketList
fetchMarketList Fetch market list from API with caching (TTL: 1 hour)
trader/lighter/trading.go:523
↓ 3 callersMethodfetchPublicKey
()
web/src/lib/crypto.ts:169
↓ 3 callersFunctionformatPrice
(price: number | undefined)
web/src/components/trader/DecisionCard.tsx:22
↓ 3 callersFunctionformatVolume
(value: number)
web/src/components/charts/AdvancedChart.tsx:91
↓ 3 callersFunctiongenerateTestKlines
generateTestKlines generates test K-line data
market/data_test.go:9
↓ 3 callersFunctiongenerateTraderID
generateTraderID Helper function that simulates traderID generation logic from api/server.go
api/traderid_test.go:44
↓ 3 callersFunctiongetClaw402BalanceMessage
(balance: number, blocking: boolean)
web/src/components/trader/AITradersPage.tsx:207
↓ 3 callersMethodgetCoinFromSymbol
getCoinFromSymbol extracts the traded currency from a symbol e.g. btc_idr -> btc, eth_idr -> eth
trader/indodax/trader.go:224
↓ 3 callersMethodgetEffectiveCoinCount
getEffectiveCoinCount returns the estimated number of coins that will be analyzed
store/strategy.go:839
↓ 3 callersFunctiongetExchangeIcon
( exchangeType: string, props: IconProps = {} )
web/src/components/common/ExchangeIcons.tsx:82
↓ 3 callersFunctiongetModelIcon
(modelType: string, props: IconProps = {})
web/src/components/common/ModelIcons.tsx:21
↓ 3 callersFunctiongetPositionColor
(percent: number)
web/src/components/strategy/GridRiskPanel.tsx:72
↓ 3 callersFunctiongetRegimeColor
(regime: string)
web/src/components/strategy/GridRiskPanel.tsx:51
← previousnext →301–400 of 2,334, ranked by callers