Documentation ¶
Overview ¶
Index ¶
- type Money
- type MoneyValue
- type Option
- type Tinkoff
- func (t *Tinkoff) ChangeConditionalOrder(ctx context.Context, action trengin.ChangeConditionalOrderAction) (trengin.Position, error)
- func (t *Tinkoff) ClosePosition(ctx context.Context, _ trengin.ClosePositionAction) (trengin.Position, error)
- func (t *Tinkoff) OpenPosition(ctx context.Context, action trengin.OpenPositionAction) (trengin.Position, trengin.PositionClosed, error)
- func (t *Tinkoff) Run(ctx context.Context) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MoneyValue ¶
type MoneyValue struct {
Money
}
func NewMoneyValue ¶
func NewMoneyValue(v Money) *MoneyValue
func (*MoneyValue) ToFloat ¶
func (v *MoneyValue) ToFloat() float64
type Option ¶
type Option func(*Tinkoff)
func WithAppName ¶
func WithLogger ¶
func WithProtectiveSpread ¶
type Tinkoff ¶
type Tinkoff struct {
// contains filtered or unexported fields
}
func (*Tinkoff) ChangeConditionalOrder ¶
func (*Tinkoff) ClosePosition ¶
func (*Tinkoff) OpenPosition ¶
func (t *Tinkoff) OpenPosition( ctx context.Context, action trengin.OpenPositionAction, ) (trengin.Position, trengin.PositionClosed, error)
Source Files ¶
Click to show internal directories.
Click to hide internal directories.