-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtypes.go
More file actions
61 lines (45 loc) · 1.66 KB
/
types.go
File metadata and controls
61 lines (45 loc) · 1.66 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
// Package tools provides trading tools for AI agent runtimes.
//
// This file re-exports types from the core package for convenience.
// Users can import either this package or core directly.
package tools
import (
"github.com/gopher-lab/tools-go/core"
)
// Type aliases for convenience - users can use either tools.X or core.X
// Position represents a trading position.
type Position = core.Position
// WalletPosition represents a position as returned by the wallet.
type WalletPosition = core.WalletPosition
// Action represents an agent action for logging/audit.
type Action = core.Action
// CloseReason indicates why a position was closed.
type CloseReason = core.CloseReason
// Side represents the direction of a trade.
type Side = core.Side
// PairArgs defines arguments for pair management tools.
type PairArgs = core.PairArgs
// NoArgs is used for tools with no required arguments.
type NoArgs = core.NoArgs
// TradeArgs defines common arguments for trading tools.
type TradeArgs = core.TradeArgs
// CloseArgs defines common arguments for close tools.
type CloseArgs = core.CloseArgs
// PerformanceMetrics tracks agent trading performance.
type PerformanceMetrics = core.PerformanceMetrics
// ScalingState tracks position scaling (partial closes).
type ScalingState = core.ScalingState
// Candle represents OHLCV candle data.
type Candle = core.Candle
// CloseReason constants
const (
CloseReasonManual = core.CloseReasonManual
CloseReasonTakeProfit = core.CloseReasonTakeProfit
CloseReasonStopLoss = core.CloseReasonStopLoss
CloseReasonLiquidation = core.CloseReasonLiquidation
)
// Side constants
const (
SideLong = core.SideLong
SideShort = core.SideShort
)