MCPcopy Create free account

hub / github.com/wquguru/nof0 / functions

Functions1,407 in github.com/wquguru/nof0

↓ 3 callersMethodStart
Start transitions the trader into running state.
go/pkg/manager/trader.go:122
↓ 3 callersMethodSyncTraderPositions
SyncTraderPositions updates a single trader's cached state (stub).
go/pkg/manager/manager.go:894
↓ 3 callersMethodValidate
()
go/internal/config/config.go:207
↓ 3 callersMethodValidateBytes
(raw []byte)
go/pkg/executor/schema_validator.go:33
↓ 3 callersFunctionWithAssetCacheTTL
WithAssetCacheTTL sets a time-to-live for the asset directory cache. When positive, the client refreshes asset metadata after TTL elapses.
go/pkg/exchange/hyperliquid/client.go:131
↓ 3 callersFunctionWithClock
WithClock overrides the time source (primarily for testing).
go/pkg/exchange/hyperliquid/client.go:101
↓ 3 callersFunctionWithHTTPClient
WithHTTPClient overrides the default HTTP client.
go/pkg/exchange/hyperliquid/client.go:61
↓ 3 callersFunctionWithVaultAddress
WithVaultAddress configures a vault address for signing requests.
go/pkg/exchange/hyperliquid/client.go:79
↓ 3 callersMethodbuildAccountSnapshotLocked
()
go/pkg/exchange/sim/provider.go:404
↓ 3 callersFunctionbuildCancelByCloidAction
(cancels []CancelByCloid)
go/pkg/exchange/hyperliquid/order.go:101
↓ 3 callersFunctionbuildModifyAction
(req ModifyOrderRequest)
go/pkg/exchange/hyperliquid/modify.go:51
↓ 3 callersFunctioncalculatePriceChange
calculatePriceChange returns the fractional change (e.g., 0.01 == +1%).
go/pkg/market/exchanges/hyperliquid/data.go:247
↓ 3 callersMethodcanonicalSymbolFor
(ctx context.Context, symbol string)
go/pkg/market/exchanges/hyperliquid/client.go:222
↓ 3 callersFunctionclamp01
(x: number)
web/src/lib/ui/useDominantColors.ts:13
↓ 3 callersFunctionconvertOrder
(order exchange.Order)
go/pkg/exchange/hyperliquid/order.go:232
↓ 3 callersFunctiondecodePositionDetail
(raw string)
go/internal/persistence/engine/persistence.go:1340
↓ 3 callersFunctiondurationOrDefault
(seconds int, fallback time.Duration)
go/internal/cache/keys.go:39
↓ 3 callersFunctionexpandAndOverride
(current, envKey string)
go/pkg/llm/config.go:277
↓ 3 callersMethodfilterPositionsForTrader
(traderID string, positions []exchange.Position)
go/pkg/manager/manager.go:1118
↓ 3 callersFunctionfmtPct
(n?: number)
web/src/components/analytics/AnalyticsPanel.tsx:144
↓ 3 callersFunctiongetModelMeta
(id: string)
web/src/lib/model/meta.ts:136
↓ 3 callersFunctiongetNextAlignedTimestamp
(alignmentInterval: number)
web/src/lib/api/hooks/timeAligned.ts:60
↓ 3 callersFunctiongetSystemTheme
()
web/src/store/useTheme.ts:13
↓ 3 callersFunctionisNearAlignmentBoundary
( alignmentInterval: number, threshold: number = 100, )
web/src/lib/api/hooks/timeAligned.ts:73
↓ 3 callersFunctionisUniqueViolation
(err error)
go/internal/persistence/engine/persistence.go:823
↓ 3 callersFunctionlookupProviderBuilder
(typeName string)
go/pkg/exchange/config.go:52
↓ 3 callersFunctionnewFakeLLM
(payload string)
go/pkg/executor/executor_test.go:33
↓ 3 callersFunctionnewIntegrationClient
newIntegrationClient builds a client from etc/llm.yaml via internal/config. If config is missing or invalid (e.g., api_key absent), the test fails fas
go/pkg/llm/client_integration_test.go:16
↓ 3 callersFunctionnewMockProvider
--- helpers ---
go/pkg/market/exchanges/hyperliquid/client_test.go:221
↓ 3 callersFunctionnormalizeKey
(symbol string)
go/pkg/market/exchanges/hyperliquid/client.go:235
↓ 3 callersFunctionpad
(n: number)
web/src/components/model/ModelOpenPositions.tsx:13
↓ 3 callersFunctionparseJSONTag
(field reflect.StructField)
go/pkg/llm/structured.go:73
↓ 3 callersFunctionparsePositiveDuration
(field, value string)
go/pkg/manager/config.go:382
↓ 3 callersFunctionparsePtrFloat
(ps *string)
go/pkg/manager/manager.go:966
↓ 3 callersFunctionpctFrom0to1
(n?: number)
web/src/components/model/ModelAnalyticsDetails.tsx:268
↓ 3 callersFunctionpositionID
(modelID, symbol string)
go/internal/persistence/engine/persistence.go:769
↓ 3 callersFunctionpriceAt
(klines []Kline, stepsBack int)
go/pkg/market/exchanges/hyperliquid/data.go:254
↓ 3 callersFunctionrenderItems
(list: { symbol: string; price: number }[])
web/src/components/layout/PriceTicker.tsx:71
↓ 3 callersFunctionresolveCanonicalId
(id: string)
web/src/lib/model/meta.ts:49
↓ 3 callersMethodresolveMarkPriceLocked
(coin string)
go/pkg/exchange/sim/provider.go:394
↓ 3 callersFunctionsetQuery
(next: Record<string, string>)
web/src/components/positions/PositionsFilter.tsx:27
↓ 3 callersFunctionstop_server
Stop the server process.
go/scripts/run_tests.py:145
↓ 3 callersFunctionto2
(n: number)
web/src/lib/ui/useDominantColors.ts:9
↓ 3 callersFunctiontoFloat
(v any)
go/pkg/backtest/journal_replay.go:213
↓ 3 callersFunctiontoLin
(c: number)
web/src/components/chart/AccountValueChart.tsx:101
↓ 3 callersFunctiontoMsF
(f float64)
go/cmd/importer/main.go:159
↓ 3 callersFunctionunionLen
(arr: Interval[])
web/src/components/model/ModelStatsSummary.tsx:110
↓ 3 callersFunctionupsertModel
(ctx context.Context, conn sqlx.SqlConn, id, display string)
go/cmd/importer/main.go:172
↓ 3 callersFunctionuseAnalyticsMap
()
web/src/lib/api/hooks/useAnalyticsMap.ts:35
↓ 3 callersMethodwithTimeout
(ctx context.Context)
go/pkg/market/exchanges/hyperliquid/provider.go:171
↓ 3 callersFunctionwriteTempManagerTemplate
(t *testing.T, content string)
go/pkg/manager/prompt_test.go:105
↓ 3 callersFunctionwriteTempTemplate
(t *testing.T, content string)
go/pkg/executor/prompt_test.go:122
↓ 2 callersMethodBuildProviders
BuildProviders instantiates exchange providers according to the configuration.
go/pkg/exchange/config.go:206
↓ 2 callersMethodCancelByCloid
(ctx context.Context, asset int, cloid string)
go/pkg/exchange/hyperliquid/provider.go:30
↓ 2 callersMethodCancelOrder
(ctx context.Context, asset int, oid int64)
go/pkg/exchange/hyperliquid/provider.go:15
↓ 2 callersMethodCancelOrder
CancelOrder cancels a single order.
go/pkg/exchange/hyperliquid/provider.go:71
↓ 2 callersMethodChat
(ctx context.Context, req *ChatRequest)
go/pkg/llm/client.go:28
↓ 2 callersMethodChatStructured
(ctx context.Context, req *ChatRequest, target interface{})
go/pkg/llm/client.go:30
↓ 2 callersMethodChatStructured
ChatStructured enforces structured output using JSON schema and decodes the result into target.
go/pkg/llm/client.go:463
↓ 2 callersMethodClosePosition
ClosePosition attempts to close an open position.
go/pkg/exchange/hyperliquid/provider.go:86
↓ 2 callersFunctionConfigFile
()
go/internal/config/config.go:82
↓ 2 callersMethodDebug
(ctx context.Context, msg string, fields Fields)
go/pkg/llm/logger.go:16
↓ 2 callersMethodDigest
Digest returns the sha256 hash of the template content.
go/pkg/llm/prompt.go:83
↓ 2 callersMethodDo
(req *http.Request)
go/pkg/exchange/hyperliquid/client_methods_test.go:19
↓ 2 callersMethodEnforce
Enforce validates the template at templatePath meets the guard expectations and returns the parsed version.
go/pkg/llm/promptmeta.go:26
↓ 2 callersMethodFormatPrice
FormatPrice rounds and formats a price using the client's configured significant figures, after verifying the asset exists.
go/pkg/exchange/hyperliquid/provider.go:167
↓ 2 callersMethodFormatSize
FormatSize rounds a float quantity to szDecimals and returns a string.
go/pkg/exchange/hyperliquid/provider.go:161
↓ 2 callersMethodGetAccountState
GetAccountState returns current account state.
go/pkg/exchange/hyperliquid/provider.go:96
↓ 2 callersMethodGetAccountValue
(ctx context.Context)
go/pkg/exchange/hyperliquid/provider.go:21
↓ 2 callersMethodGetAccountValue
GetAccountValue returns parsed account value.
go/pkg/exchange/hyperliquid/provider.go:101
↓ 2 callersMethodGetAccountValue
GetAccountValue returns the account value parsed as float64.
go/pkg/exchange/hyperliquid/account.go:33
↓ 2 callersMethodGetActiveTraders
GetActiveTraders returns a stable-ordered slice of currently active traders.
go/pkg/manager/manager.go:432
↓ 2 callersMethodGetAssetIndex
GetAssetIndex resolves asset index for a symbol.
go/pkg/exchange/hyperliquid/provider.go:106
↓ 2 callersMethodGetCurrentPrice
GetCurrentPrice returns the current mid price for the given symbol.
go/pkg/market/exchanges/hyperliquid/market_info.go:22
↓ 2 callersMethodGetOpenOrders
(ctx context.Context)
go/pkg/exchange/hyperliquid/provider.go:16
↓ 2 callersMethodGetOpenOrders
GetOpenOrders returns currently resting orders.
go/pkg/exchange/hyperliquid/provider.go:76
↓ 2 callersMethodGetPositions
GetPositions fetches all open positions.
go/pkg/exchange/hyperliquid/provider.go:81
↓ 2 callersMethodIOCMarket
Convenience wrappers (not part of the generic exchange.Provider interface) IOCMarket places an IOC order using a small price slippage as market.
go/pkg/exchange/hyperliquid/provider.go:113
↓ 2 callersMethodListAll
(ctx context.Context)
go/pkg/repo/trader_config_repo.go:56
↓ 2 callersMethodListAssets
ListAssets implements market.Provider by returning all supported symbols.
go/pkg/market/exchanges/hyperliquid/provider.go:117
↓ 2 callersMethodListByTrader
(ctx context.Context, traderID string, limit int)
go/internal/model/traderconfighistorymodel.go:18
↓ 2 callersMethodLoadAccountTotals
LoadAccountTotals loads account totals from JSON file
go/internal/data/loader.go:31
↓ 2 callersFunctionLoadConfigFromReader
LoadConfigFromReader constructs a Config from an io.Reader.
go/pkg/market/config.go:86
↓ 2 callersMethodLoadLeaderboard
LoadLeaderboard loads leaderboard from JSON file
go/internal/data/loader.go:69
↓ 2 callersMethodLoadSinceInception
LoadSinceInception loads since inception values from JSON file
go/internal/data/loader.go:58
↓ 2 callersFunctionMACD
MACD returns MACD, signal, and histogram series.
go/pkg/market/indicators/indicators.go:57
↓ 2 callersMethodModifyOrder
(ctx context.Context, req ModifyOrderRequest)
go/pkg/exchange/hyperliquid/provider.go:32
↓ 2 callersFunctionNewCSVKlineFeeder
NewCSVKlineFeeder constructs a CSV feeder from an io.Reader.
go/pkg/backtest/feeder_kline.go:32
↓ 2 callersFunctionNewJSONSchemaValidator
(path string)
go/pkg/executor/schema_validator.go:16
↓ 2 callersFunctionNewPrivateKeySigner
NewPrivateKeySigner constructs a signer from a hex-encoded private key string.
go/pkg/exchange/hyperliquid/auth.go:33
↓ 2 callersFunctionNewPromptTemplate
NewPromptTemplate parses the template at path using the provided template functions.
go/pkg/llm/prompt.go:26
↓ 2 callersMethodNext
(ctx context.Context, symbol string)
go/pkg/backtest/engine.go:17
↓ 2 callersMethodPlaceOrder
PlaceOrder delegates to the underlying client.
go/pkg/exchange/hyperliquid/provider.go:66
↓ 2 callersMethodPlaceTriggerReduceOnly
(ctx context.Context, coin string, isBuy bool, qty float64, triggerPrice float64, tpsl string)
go/pkg/exchange/hyperliquid/provider.go:26
↓ 2 callersFunctionProjectRoot
ProjectRoot attempts to locate the repository root by walking upwards from this source file until it finds a directory containing go.mod or .git. Fall
go/pkg/confkit/path.go:13
↓ 2 callersFunctionRegisterProvider
RegisterProvider registers a market provider constructor.
go/pkg/market/config.go:51
↓ 2 callersMethodRender
Render generates the final prompt string populated with inputs.
go/pkg/executor/prompt.go:56
↓ 2 callersMethodRender
Render executes the template using the supplied inputs.
go/pkg/manager/prompt.go:44
↓ 2 callersFunctionResolveModelID
ResolveModelID returns the fully qualified model identifier in provider/model form.
go/pkg/llm/provider.go:8
↓ 2 callersMethodToExecutorView
ToExecutorView converts to the compact view used by the executor prompts.
go/pkg/manager/trader.go:74
← previousnext →201–300 of 1,407, ranked by callers