Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/wquguru/nof0
/ functions
Functions
1,407 in github.com/wquguru/nof0
⨍
Functions
1,407
◇
Types & classes
373
↓ 2 callers
Function
summarizeOrderResponse
(resp *exchange.OrderResponse)
go/pkg/manager/manager.go:1138
↓ 2 callers
Function
test_endpoints
Test individual API endpoints.
go/scripts/run_tests.py:431
↓ 2 callers
Function
traderExchange
(event managerpkg.PositionEvent)
go/internal/persistence/engine/persistence.go:762
↓ 2 callers
Function
update
()
web/src/components/ui/Tooltip.tsx:74
↓ 2 callers
Function
updatePositionDetailOnClose
(raw string, closeInfo positionCloseDetail)
go/internal/persistence/engine/persistence.go:1330
↓ 2 callers
Function
upsertSymbol
(ctx context.Context, conn sqlx.SqlConn, symbol string)
go/cmd/importer/main.go:178
↓ 2 callers
Function
useLeaderboard
()
web/src/lib/api/hooks/useLeaderboard.ts:21
↓ 2 callers
Method
validate
(name string)
go/pkg/exchange/config.go:187
↓ 2 callers
Function
wait_for_server
Wait for the server to be ready to accept requests.
go/scripts/run_tests.py:123
↓ 2 callers
Function
withTx
withTx executes fn inside a database transaction, committing on success and rolling back on error. It centralizes the boilerplate used by repositories
go/pkg/repo/repo.go:15
↓ 2 callers
Method
writePositionsCache
(ctx context.Context, traderID string, payload map[string]positionCacheEntry)
go/internal/persistence/engine/persistence.go:1041
↓ 2 callers
Method
writeTradesCache
(ctx context.Context, traderID string, payload []tradeCacheEntry)
go/internal/persistence/engine/persistence.go:1099
↓ 1 callers
Method
AccountTotals
(req *types.AccountTotalsRequest)
go/internal/logic/accounttotalslogic.go:29
↓ 1 callers
Function
AccountTotalsHandler
(svcCtx *svc.ServiceContext)
go/internal/handler/accounttotalshandler.go:15
↓ 1 callers
Method
ActiveByModels
(ctx context.Context, modelIDs []string)
go/internal/model/positionsmodel.go:40
↓ 1 callers
Method
Analytics
()
go/internal/logic/analyticslogic.go:29
↓ 1 callers
Function
AnalyticsHandler
(svcCtx *svc.ServiceContext)
go/internal/handler/analyticshandler.go:14
↓ 1 callers
Method
CancelAllOrders
(ctx context.Context, asset int)
go/pkg/exchange/hyperliquid/provider.go:27
↓ 1 callers
Method
CancelAllOrders
CancelAllOrders cancels all resting orders for the specified asset.
go/pkg/exchange/hyperliquid/client.go:232
↓ 1 callers
Method
CancelOrder
CancelOrder cancels a single resting order.
go/pkg/exchange/hyperliquid/client.go:217
↓ 1 callers
Method
CancelOrdersByCloid
(ctx context.Context, cancels []CancelByCloid)
go/pkg/exchange/hyperliquid/provider.go:31
↓ 1 callers
Method
ClosePosition
ClosePosition submits a reduce-only order to flatten the specified coin.
go/pkg/exchange/hyperliquid/position.go:25
↓ 1 callers
Function
ConfigSummaryLines
ConfigSummaryLines returns human readable lines describing the loaded app config.
go/internal/cli/logging.go:15
↓ 1 callers
Function
ConversationsHandler
(svcCtx *svc.ServiceContext)
go/internal/handler/conversationshandler.go:14
↓ 1 callers
Function
CryptoPricesHandler
(svcCtx *svc.ServiceContext)
go/internal/handler/cryptopriceshandler.go:14
↓ 1 callers
Method
Decide
(ctx context.Context, snap *market.Snapshot)
go/pkg/backtest/engine.go:22
↓ 1 callers
Method
Digest
Digest exposes the template digest for version tracking.
go/pkg/manager/prompt.go:55
↓ 1 callers
Method
ExecuteDecision
ExecuteDecision executes a single decision using trader's exchange provider. Placeholder MVP: perform basic validation and return nil.
go/pkg/manager/manager.go:599
↓ 1 callers
Function
ExtractTemplateVersion
ExtractTemplateVersion scans the file for a {{/* Version: ... */}} style header.
go/pkg/llm/promptmeta.go:52
↓ 1 callers
Method
FindByVersion
(ctx context.Context, traderID string, version int64)
go/pkg/repo/trader_config_repo.go:57
↓ 1 callers
Method
GetAddress
GetAddress returns the signer wallet address.
go/pkg/exchange/hyperliquid/auth.go:78
↓ 1 callers
Method
GetAssetIndex
GetAssetIndex resolves a stable asset identifier for the provided coin.
go/pkg/exchange/sim/provider.go:61
↓ 1 callers
Method
GetConfig
GetConfig returns an immutable copy of the client configuration.
go/pkg/llm/client.go:508
↓ 1 callers
Method
GetOpenOrders
(ctx context.Context)
go/pkg/exchange/interface.go:10
↓ 1 callers
Method
GetOpenOrders
GetOpenOrders returns currently resting orders.
go/pkg/exchange/hyperliquid/order.go:126
↓ 1 callers
Method
GetState
(ctx context.Context, traderID string)
go/pkg/repo/trader_runtime_repo.go:79
↓ 1 callers
Method
HydrateCaches
(ctx context.Context, traderIDs []string)
go/pkg/manager/persistence.go:72
↓ 1 callers
Method
IsActive
IsActive returns true when trader should participate in scheduling.
go/pkg/manager/trader.go:161
↓ 1 callers
Method
Leaderboard
()
go/internal/logic/leaderboardlogic.go:29
↓ 1 callers
Function
LeaderboardHandler
(svcCtx *svc.ServiceContext)
go/internal/handler/leaderboardhandler.go:14
↓ 1 callers
Method
List
List returns journal file paths ordered ascending by timestamp/name. If limit > 0, only the latest N files are returned.
go/pkg/journal/reader.go:27
↓ 1 callers
Method
ListCooldowns
(ctx context.Context, traderID string)
go/pkg/repo/trader_runtime_repo.go:80
↓ 1 callers
Function
Load
(path string)
go/internal/config/config.go:182
↓ 1 callers
Method
LoadAccountTotals
()
go/internal/data/datasource.go:8
↓ 1 callers
Method
LoadAnalytics
()
go/internal/data/datasource.go:12
↓ 1 callers
Function
LoadConfig
LoadConfig reads configuration from disk.
go/pkg/exchange/config.go:80
↓ 1 callers
Function
LoadConfig
LoadConfig reads configuration from disk.
go/pkg/market/config.go:65
↓ 1 callers
Function
LoadConfigFromReader
LoadConfigFromReader constructs a Config from an io.Reader.
go/pkg/exchange/config.go:101
↓ 1 callers
Function
LoadConfigFromReader
LoadConfigFromReader constructs a Config from a reader with the provided base directory.
go/pkg/manager/config.go:140
↓ 1 callers
Method
LoadConversations
()
go/internal/data/datasource.go:15
↓ 1 callers
Method
LoadCryptoPrices
()
go/internal/data/datasource.go:7
↓ 1 callers
Method
LoadLeaderboard
()
go/internal/data/datasource.go:11
↓ 1 callers
Method
LoadModelAnalytics
LoadModelAnalytics loads analytics for a specific model
go/internal/data/loader.go:87
↓ 1 callers
Method
LoadModelAnalytics
(modelId string)
go/internal/data/datasource.go:13
↓ 1 callers
Method
LoadPositions
()
go/internal/data/datasource.go:14
↓ 1 callers
Method
LoadSinceInception
()
go/internal/data/datasource.go:10
↓ 1 callers
Method
LoadTrades
()
go/internal/data/datasource.go:9
↓ 1 callers
Method
ModelAnalytics
(modelId string)
go/internal/logic/modelanalyticslogic.go:29
↓ 1 callers
Function
ModelAnalyticsHandler
(svcCtx *svc.ServiceContext)
go/internal/handler/modelanalyticshandler.go:15
↓ 1 callers
Method
ModifyOrders
(ctx context.Context, requests []ModifyOrderRequest)
go/pkg/exchange/hyperliquid/provider.go:33
↓ 1 callers
Function
MustLoadExchange
MustLoadExchange loads etc/exchange.yaml from the project root and panics on error. It isolates exchange config to avoid requiring other sections (LLM
go/internal/config/helpers.go:14
↓ 1 callers
Function
NewManager
NewManager constructs a Manager with injected dependencies.
go/pkg/manager/manager.go:140
↓ 1 callers
Function
NewPriceFeeder
(symbol string, prices []float64)
go/pkg/backtest/feeder_simple.go:16
↓ 1 callers
Function
NewReader
NewReader returns a reader rooted at dir (defaults to ./journal).
go/pkg/journal/reader.go:18
↓ 1 callers
Function
ParseModelID
ParseModelID splits a fully qualified model string into provider and model name.
go/pkg/llm/provider.go:27
↓ 1 callers
Method
PlaceOrder
PlaceOrder synchronously fills an IOC-like order at the provided limit price.
go/pkg/exchange/sim/provider.go:88
↓ 1 callers
Function
PositionsHandler
(svcCtx *svc.ServiceContext)
go/internal/handler/positionshandler.go:15
↓ 1 callers
Function
ProjectPath
ProjectPath joins the repository root with the provided relative path.
go/pkg/confkit/path.go:44
↓ 1 callers
Method
RecentByModel
(ctx context.Context, modelID string, limit int)
go/internal/model/tradesmodel.go:38
↓ 1 callers
Method
ReconcileTraderPositions
ReconcileTraderPositions ensures the manager's virtual book matches the actual exchange positions for a trader. It also auto-assigns unowned positions
go/pkg/manager/manager.go:1191
↓ 1 callers
Method
RecordAccountSnapshot
(ctx context.Context, snapshot AccountSyncSnapshot)
go/pkg/manager/persistence.go:70
↓ 1 callers
Method
RecordAnalytics
(ctx context.Context, snapshot AnalyticsSnapshot)
go/pkg/manager/persistence.go:71
↓ 1 callers
Method
RecordConversation
(ctx context.Context, rec ConversationRecord)
go/pkg/executor/persistence.go:10
↓ 1 callers
Method
RecordDecision
RecordDecision updates timestamps after a decision round completes.
go/pkg/manager/trader.go:187
↓ 1 callers
Method
RecordDecisionCycle
(ctx context.Context, record DecisionCycleRecord)
go/pkg/manager/persistence.go:69
↓ 1 callers
Method
RecordPositionEvent
(ctx context.Context, event PositionEvent)
go/pkg/manager/persistence.go:68
↓ 1 callers
Method
RecordPriceSeries
RecordPriceSeries persists historical price ticks (e.g., OHLCV candles).
go/pkg/market/persistence.go:15
↓ 1 callers
Method
RecordSnapshot
RecordSnapshot persists a single market snapshot (price/latest context).
go/pkg/market/persistence.go:13
↓ 1 callers
Method
RegisterTrader
RegisterTrader creates a VirtualTrader from the provided configuration and attaches providers and executor instances.
go/pkg/manager/manager.go:191
↓ 1 callers
Method
Reload
Reload reparses the underlying template from disk. This can be used when files change.
go/pkg/llm/prompt.go:57
↓ 1 callers
Function
ResolvePath
ResolvePath resolves a file path relative to a base directory. It expands environment variables and handles both absolute and relative paths. If the f
go/pkg/confkit/confkit.go:15
↓ 1 callers
Method
RunTradingLoop
RunTradingLoop executes the main orchestration loop (minimal skeleton).
go/pkg/manager/manager.go:446
↓ 1 callers
Method
SetPayload
(payload string)
go/cmd/journalreplay/main.go:148
↓ 1 callers
Method
ShouldMakeDecision
ShouldMakeDecision determines whether a decision should be requested now.
go/pkg/manager/trader.go:168
↓ 1 callers
Method
SinceInception
()
go/internal/logic/sinceinceptionlogic.go:29
↓ 1 callers
Function
SinceInceptionHandler
(svcCtx *svc.ServiceContext)
go/internal/handler/sinceinceptionhandler.go:14
↓ 1 callers
Method
Sync
(ctx context.Context, records []TraderConfigRecord)
go/pkg/repo/trader_config_repo.go:54
↓ 1 callers
Method
Temporary
()
go/pkg/llm/retry_test.go:248
↓ 1 callers
Function
TraderConfigToRecord
TraderConfigToRecord serializes a TraderConfig into the format expected by the repository layer. Durations and guard structs are preserved as-is so th
go/pkg/manager/config_sync.go:28
↓ 1 callers
Method
Trades
()
go/internal/logic/tradeslogic.go:29
↓ 1 callers
Function
TradesHandler
(svcCtx *svc.ServiceContext)
go/internal/handler/tradeshandler.go:14
↓ 1 callers
Method
UpdatePerformance
UpdatePerformance refreshes the cached performance view used in prompts.
go/pkg/executor/executor.go:23
↓ 1 callers
Method
UpdateTx
(ctx context.Context, tx *sql.Tx, data *TraderConfig)
go/internal/model/traderconfigmodel.go:22
↓ 1 callers
Method
UpsertCooldown
(ctx context.Context, record SymbolCooldownRecord)
go/pkg/repo/trader_runtime_repo.go:78
↓ 1 callers
Method
UpsertState
(ctx context.Context, record RuntimeStateRecord)
go/pkg/repo/trader_runtime_repo.go:77
↓ 1 callers
Method
Validate
Validate ensures all providers have sane configuration.
go/pkg/exchange/config.go:166
↓ 1 callers
Method
Validate
Validate ensures the configuration is structurally sound.
go/pkg/market/config.go:161
↓ 1 callers
Function
WithMainAddress
WithMainAddress configures the main account address for info requests. This is used when the API wallet (agent wallet) is different from the main acco
go/pkg/exchange/hyperliquid/client.go:91
↓ 1 callers
Method
WriteCycle
WriteCycle writes a cycle record to a timestamped JSON file.
go/pkg/journal/journal.go:47
↓ 1 callers
Function
adaptManagerConfig
(cfg *managerpkg.Config, totalEquity float64, allowed []string)
go/cmd/llm/main.go:120
← previous
next →
401–500 of 1,407, ranked by callers