ana

package
v0.0.0-...-21417f8 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 5, 2024 License: MIT Imports: 35 Imported by: 0

Documentation

Index

Constants

View Source
const (
	No  = uint32(0)
	Yes = uint32(1)
)
View Source
const (
	MktSessionGap = tme.D1
)
View Source
const (
	NextTier = 0
)

Variables

View Source
var (
	Cfg *cfg.Cfg
)

Functions

func MktNextWeekMin

func MktNextWeekMin(v tme.Tme) (r tme.Tme)

func MktPrvWeekMax

func MktPrvWeekMax(v tme.Tme) (r tme.Tme)

func MktWeek

func MktWeek(v tme.Tme) (r tme.Rng)

func MktWeekMax

func MktWeekMax(v tme.Tme) (r tme.Tme)

func MktWeekMin

func MktWeekMin(v tme.Tme) (r tme.Tme)

Types

type Acnt

type Acnt struct {
	Created                     tme.Tme
	Currency                    str.Str
	Alias                       str.Str
	MarginRate                  flt.Flt
	HedgingEnabled              bol.Bol
	LastTransactionID           unt.Unt
	Balance                     flt.Flt
	OpnTrdCnt                   unt.Unt
	OpnPosCnt                   unt.Unt
	PndOrdCnt                   unt.Unt
	Pl                          flt.Flt
	ResettablePL                flt.Flt
	Financing                   flt.Flt
	Commission                  flt.Flt
	UnrealizedPL                flt.Flt
	NAV                         flt.Flt
	MarginAvailable             flt.Flt
	PositionValue               flt.Flt
	MarginCloseoutUnrealizedPL  flt.Flt
	MarginCloseoutNAV           flt.Flt
	MarginCloseoutMarginUsed    flt.Flt
	MarginCloseoutPositionValue flt.Flt
	MarginCloseoutPercent       flt.Flt
	WithdrawalLimit             flt.Flt
	MarginCallMarginUsed        flt.Flt
	MarginCallPercent           flt.Flt
}

Acnt is an Oanda account.

func (*Acnt) JsnRed

func (x *Acnt) JsnRed(txt string)

type Instr

type Instr struct {
	Name                    str.Str
	Pip                     flt.Flt
	MrgnRtio                flt.Flt
	SpdMin                  flt.Flt
	SpdMax                  flt.Flt
	SpdMdn                  flt.Flt
	SpdAvg                  flt.Flt
	SpdStd                  flt.Flt
	SpdOpnLim               flt.Flt
	Fst                     tme.Tme
	Lst                     tme.Tme
	TmeCnt                  unt.Unt
	DayCnt                  unt.Unt
	DisplayPrecision        unt.Unt
	TradeUnitsPrecision     unt.Unt
	MinTrdSize              unt.Unt
	MaxTrailingStopDistance flt.Flt
	MinTrailingStopDistance flt.Flt
	MaxPositionSize         unt.Unt
	MaxOrderUnits           unt.Unt
	Typ                     str.Str
	Prv                     Prv
	HstStm                  *Stm
	HstMu                   sync.RWMutex
	RltStm                  *Stm
	RltSubs                 TmeIdxRxs
	RltSubsMu               sync.Mutex
	RltLstPktTme            tme.Tme
	RltInrvlMax             tme.Tme
	MktWeeks                *tme.Rngs
	MktDays                 *tme.Rngs
	MktHrs                  *tme.Rngs
}

func (*Instr) BytRed

func (x *Instr) BytRed(b []byte) (idx int)

func (*Instr) BytWrt

func (x *Instr) BytWrt(b *bytes.Buffer)

func (*Instr) Bytes

func (x *Instr) Bytes() []byte

func (*Instr) CalcMktWeeks

func (x *Instr) CalcMktWeeks(mktHr tme.Tme)

func (*Instr) CalcStats

func (x *Instr) CalcStats()

func (*Instr) Cpy

func (x *Instr) Cpy() (r *Instr)

func (*Instr) OanJsnRed

func (x *Instr) OanJsnRed(txt string)

func (*Instr) PipScl

func (x *Instr) PipScl() flt.Flt

func (*Instr) Pipette

func (x *Instr) Pipette() flt.Flt

func (*Instr) PipetteScl

func (x *Instr) PipetteScl() flt.Flt

func (*Instr) Spd

func (x *Instr) Spd(bid, ask flt.Flt) flt.Flt

func (*Instr) StrWrt

func (x *Instr) StrWrt(b *strings.Builder) string

func (*Instr) String

func (x *Instr) String() string

func (*Instr) Sub

func (x *Instr) Sub(rx TmeIdxRx, id uint32)

func (*Instr) Unsub

func (x *Instr) Unsub(id uint32)

type InstrTic

type InstrTic struct {
	Pkt TmeIdx
	I   *Instr
}

type Instrs

type Instrs map[str.Str]*Instr

type Oan

type Oan struct {
	Cfg    *cfg.Cfg
	Ticr   *Ticr
	Instrs Instrs
	// contains filtered or unexported fields
}
var (
	PrvOan *Oan
)

func NewOan

func NewOan(cfg *cfg.Cfg, ticr *Ticr) (r *Oan)

func (*Oan) AcntRefresh

func (x *Oan) AcntRefresh() flt.Flt

func (*Oan) CalcCls

func (x *Oan) CalcCls(t *Trd, i *Instr)

func (*Oan) CalcOpn

func (x *Oan) CalcOpn(t *Trd, i *Instr)

func (*Oan) CloneInstrs

func (x *Oan) CloneInstrs(vs map[str.Str]*Instr)

func (*Oan) Cls

func (x *Oan) Cls()

func (*Oan) ClsTrd

func (x *Oan) ClsTrd(t *Trd, i *Instr) (ok bol.Bol)

func (*Oan) DskLoadInstrDetail

func (x *Oan) DskLoadInstrDetail(i *Instr) bool

func (*Oan) DskLoadInstrStm

func (x *Oan) DskLoadInstrStm(i *Instr) bool

func (*Oan) DskSavInstrDetail

func (x *Oan) DskSavInstrDetail(i *Instr)

func (*Oan) DskSavInstrStm

func (x *Oan) DskSavInstrStm(i *Instr)

func (*Oan) Ifc

func (x *Oan) Ifc() interface{}

func (*Oan) Instr

func (x *Oan) Instr(name str.Str) (r *Instr)

Instr loads instrument details from an Oanda server.

func (*Oan) Load

func (x *Oan) Load(i *Instr, rng tme.Rng) (r *Stm)

func (*Oan) LoadHst

func (x *Oan) LoadHst(i *Instr)

func (*Oan) MayTrd

func (x *Oan) MayTrd() bol.Bol

func (*Oan) OpnEnd

func (x *Oan) OpnEnd()

func (*Oan) OpnStart

func (x *Oan) OpnStart()

func (*Oan) OpnTrd

func (x *Oan) OpnTrd(t *Trd, i *Instr) (bol.Bol, TrdRsnOpn)

ONE TRD AT A TIME ACROSS ENTIRE ACCOUNT

func (*Oan) Sub

func (x *Oan) Sub(i *Instr)

func (*Oan) Unsub

func (x *Oan) Unsub(i *Instr)

type OrdReq

type OrdReq struct {
	Type        str.Str
	Instrument  str.Str
	Units       bscint.Int
	TimeInForce str.Str
	PriceBound  flt.Flt
}

func (*OrdReq) JsnWrt

func (x *OrdReq) JsnWrt(i *Instr, b *strings.Builder)
{
  "order": {
    "price": "1.2000",
    "timeInForce": "GTC",
    "instrument": "EUR_CAD",
    "units": "10000",
    "clientExtensions": { // TODO
      "comment": "New idea for trading",
      "tag": "strategy_9",
      "id": "my_order_100"
    },
    "type": "MARKET_IF_TOUCHED",
    "positionFill": "DEFAULT"
  }
}

type Port

type Port struct {
	BalFstUsd flt.Flt
	BalLstUsd flt.Flt
	TrdPct    flt.Flt
	Trds      *Trds
}

type PortScp

type PortScp struct {
	Idx uint32
	Arr []*Port
}

type PosClsReq

type PosClsReq struct {
	IsBuy bol.Bol
}

func (*PosClsReq) JsnWrt

func (x *PosClsReq) JsnWrt(b *strings.Builder)

type Prfm

type Prfm struct {
	PnlPct    flt.Flt
	ScsPct    flt.Flt
	PipPerDay flt.Flt
	UsdPerDay flt.Flt
	ScsPerDay flt.Flt
	OpnPerDay flt.Flt
	PnlUsd    flt.Flt
	PipAvg    flt.Flt
	PipMdn    flt.Flt
	PipMin    flt.Flt
	PipMax    flt.Flt
	PipSum    flt.Flt
	DurAvg    tme.Tme
	DurMdn    tme.Tme
	DurMin    tme.Tme
	DurMax    tme.Tme
	LosLimMax flt.Flt
	DurLimMax tme.Tme
	DayCnt    unt.Unt
	TrdCnt    unt.Unt
	TrdPct    flt.Flt
	CstTotUsd flt.Flt
	CstSpdUsd flt.Flt
	CstComUsd flt.Flt
	Pth       str.Str
}

func CalcPrfm

func CalcPrfm(trds *Trds, dayCnt unt.Unt, losLimMax flt.Flt, durLimMax tme.Tme, pth string) (r *Prfm)

func (*Prfm) Dlt

func (x *Prfm) Dlt(v *Prfm) (r *PrfmDlt)

func (*Prfm) StrWrt

func (x *Prfm) StrWrt(b *strings.Builder) string

func (*Prfm) String

func (x *Prfm) String() string

type PrfmDlt

type PrfmDlt struct {
	PnlPctA      flt.Flt
	PnlPctB      flt.Flt
	PnlPctDlt    flt.Flt
	ScsPctA      flt.Flt
	ScsPctB      flt.Flt
	ScsPctDlt    flt.Flt
	PipPerDayA   flt.Flt
	PipPerDayB   flt.Flt
	PipPerDayDlt flt.Flt
	UsdPerDayA   flt.Flt
	UsdPerDayB   flt.Flt
	UsdPerDayDlt flt.Flt
	ScsPerDayA   flt.Flt
	ScsPerDayB   flt.Flt
	ScsPerDayDlt flt.Flt
	OpnPerDayA   flt.Flt
	OpnPerDayB   flt.Flt
	OpnPerDayDlt flt.Flt
	PnlUsdA      flt.Flt
	PnlUsdB      flt.Flt
	PnlUsdDlt    flt.Flt
	PipAvgA      flt.Flt
	PipAvgB      flt.Flt
	PipAvgDlt    flt.Flt
	PipMdnA      flt.Flt
	PipMdnB      flt.Flt
	PipMdnDlt    flt.Flt
	PipMinA      flt.Flt
	PipMinB      flt.Flt
	PipMinDlt    flt.Flt
	PipMaxA      flt.Flt
	PipMaxB      flt.Flt
	PipMaxDlt    flt.Flt
	PipSumA      flt.Flt
	PipSumB      flt.Flt
	PipSumDlt    flt.Flt
	DurAvgA      tme.Tme
	DurAvgB      tme.Tme
	DurAvgDlt    flt.Flt
	DurMdnA      tme.Tme
	DurMdnB      tme.Tme
	DurMdnDlt    flt.Flt
	DurMinA      tme.Tme
	DurMinB      tme.Tme
	DurMinDlt    flt.Flt
	DurMaxA      tme.Tme
	DurMaxB      tme.Tme
	DurMaxDlt    flt.Flt
	TrdCntA      unt.Unt
	TrdCntB      unt.Unt
	TrdCntDlt    flt.Flt
	TrdPctA      flt.Flt
	TrdPctB      flt.Flt
	TrdPctDlt    flt.Flt
	PthB         str.Str
}

func (*PrfmDlt) BytRed

func (x *PrfmDlt) BytRed(b []byte) (idx int)

func (*PrfmDlt) BytWrt

func (x *PrfmDlt) BytWrt(b *bytes.Buffer)

func (*PrfmDlt) Bytes

func (x *PrfmDlt) Bytes() []byte

func (*PrfmDlt) StrWrt

func (x *PrfmDlt) StrWrt(b *strings.Builder) string

func (*PrfmDlt) String

func (x *PrfmDlt) String() string

type PrfmDltScp

type PrfmDltScp struct {
	Idx uint32
	Arr []*PrfmDlt
}

type PrfmScp

type PrfmScp struct {
	Idx uint32
	Arr []*Prfm
}

type Prfms

type Prfms []*Prfm

func MakeEmpPrfms

func MakeEmpPrfms(cap unt.Unt) *Prfms

func MakePrfms

func MakePrfms(cap unt.Unt) *Prfms

func NewPrfms

func NewPrfms(vs ...*Prfm) *Prfms

func (*Prfms) At

func (x *Prfms) At(idx unt.Unt) *Prfm

func (*Prfms) Clr

func (x *Prfms) Clr() *Prfms

func (*Prfms) Cnt

func (x *Prfms) Cnt() unt.Unt

func (*Prfms) Cpy

func (x *Prfms) Cpy() *Prfms

func (*Prfms) CstComUsds

func (x *Prfms) CstComUsds() (r *flts.Flts)

func (*Prfms) CstSpdUsds

func (x *Prfms) CstSpdUsds() (r *flts.Flts)

func (*Prfms) CstTotUsds

func (x *Prfms) CstTotUsds() (r *flts.Flts)

func (*Prfms) DayCnts

func (x *Prfms) DayCnts() (r *unts.Unts)

func (*Prfms) Del

func (x *Prfms) Del(idx unt.Unt) (r *Prfm)

func (*Prfms) Dque

func (x *Prfms) Dque() (r *Prfm)

func (*Prfms) DurAvgs

func (x *Prfms) DurAvgs() (r *tmes.Tmes)

func (*Prfms) DurLimMaxs

func (x *Prfms) DurLimMaxs() (r *tmes.Tmes)

func (*Prfms) DurMaxs

func (x *Prfms) DurMaxs() (r *tmes.Tmes)

func (*Prfms) DurMdns

func (x *Prfms) DurMdns() (r *tmes.Tmes)

func (*Prfms) DurMins

func (x *Prfms) DurMins() (r *tmes.Tmes)

func (*Prfms) From

func (x *Prfms) From(idx unt.Unt) *Prfms

func (*Prfms) Fst

func (x *Prfms) Fst() *Prfm

func (*Prfms) FstIdx

func (x *Prfms) FstIdx() unt.Unt

func (*Prfms) In

func (x *Prfms) In(idx, lim unt.Unt) *Prfms

func (*Prfms) InBnd

func (x *Prfms) InBnd(b bnd.Bnd) *Prfms

func (*Prfms) Ins

func (x *Prfms) Ins(idx unt.Unt, elm *Prfm) *Prfms

func (*Prfms) LosLimMaxs

func (x *Prfms) LosLimMaxs() (r *flts.Flts)

func (*Prfms) Lst

func (x *Prfms) Lst() *Prfm

func (*Prfms) LstIdx

func (x *Prfms) LstIdx() unt.Unt

func (*Prfms) Mdl

func (x *Prfms) Mdl() *Prfm

func (*Prfms) MdlIdx

func (x *Prfms) MdlIdx() unt.Unt

func (*Prfms) Mrg

func (x *Prfms) Mrg(a ...*Prfms) *Prfms

func (*Prfms) Ok

func (x *Prfms) Ok() bol.Bol

func (*Prfms) OpnPerDays

func (x *Prfms) OpnPerDays() (r *flts.Flts)

func (*Prfms) PipAvgs

func (x *Prfms) PipAvgs() (r *flts.Flts)

func (*Prfms) PipMaxs

func (x *Prfms) PipMaxs() (r *flts.Flts)

func (*Prfms) PipMdns

func (x *Prfms) PipMdns() (r *flts.Flts)

func (*Prfms) PipMins

func (x *Prfms) PipMins() (r *flts.Flts)

func (*Prfms) PipPerDays

func (x *Prfms) PipPerDays() (r *flts.Flts)

func (*Prfms) PipSums

func (x *Prfms) PipSums() (r *flts.Flts)

func (*Prfms) PnlPcts

func (x *Prfms) PnlPcts() (r *flts.Flts)

func (*Prfms) PnlUsds

func (x *Prfms) PnlUsds() (r *flts.Flts)

func (*Prfms) Pop

func (x *Prfms) Pop() (r *Prfm)

func (*Prfms) Pths

func (x *Prfms) Pths() (r *strs.Strs)

func (*Prfms) Push

func (x *Prfms) Push(a ...*Prfm) *Prfms

func (*Prfms) Que

func (x *Prfms) Que(vs ...*Prfm) *Prfms

func (*Prfms) Rand

func (x *Prfms) Rand() *Prfms

func (*Prfms) Rev

func (x *Prfms) Rev() *Prfms

func (*Prfms) ScsPcts

func (x *Prfms) ScsPcts() (r *flts.Flts)

func (*Prfms) ScsPerDays

func (x *Prfms) ScsPerDays() (r *flts.Flts)

func (*Prfms) StrWrt

func (x *Prfms) StrWrt(b *strings.Builder)

func (*Prfms) String

func (x *Prfms) String() string

func (*Prfms) To

func (x *Prfms) To(lim unt.Unt) *Prfms

func (*Prfms) TrdCnts

func (x *Prfms) TrdCnts() (r *unts.Unts)

func (*Prfms) TrdPcts

func (x *Prfms) TrdPcts() (r *flts.Flts)

func (*Prfms) Upd

func (x *Prfms) Upd(idx unt.Unt, elm *Prfm) *Prfms

func (*Prfms) UsdPerDays

func (x *Prfms) UsdPerDays() (r *flts.Flts)

type PrfmsScp

type PrfmsScp struct {
	Idx uint32
	Arr []*Prfms
}

type Prv

type Prv interface {
	AcntRefresh() (balance flt.Flt)
	Instr(name str.Str) *Instr
	Sub(i *Instr)
	Unsub(i *Instr)
	LoadHst(i *Instr)
	OpnTrd(trd *Trd, i *Instr) (ok bol.Bol, rsn TrdRsnOpn)
	ClsTrd(trd *Trd, i *Instr) (ok bol.Bol)
	CalcOpn(trd *Trd, i *Instr)
	CalcCls(trd *Trd, i *Instr)
}

type Pth

type Pth interface {
	Name() str.Str
	PrmWrt(b *strings.Builder)
	Prm() string
	StrWrt(b *strings.Builder)
	String() string
}

type Stm

type Stm struct {
	Tmes    *tmes.Tmes
	Bids    *flts.Flts
	Asks    *flts.Flts
	BidLims *unts.Unts
	AskLims *unts.Unts
	RxIdx   unt.Unt
	RxTme   tme.Tme
}

func NewStm

func NewStm() (r *Stm)

func (*Stm) AskAt

func (x *Stm) AskAt(idx unt.Unt) flt.Flt

func (*Stm) AskBndByTmeBnd

func (x *Stm) AskBndByTmeBnd(tmeBnd bnd.Bnd) (r bnd.Bnd)

func (*Stm) AsksAt

func (x *Stm) AsksAt(idx unt.Unt) *flts.Flts

func (*Stm) AsksByTmeBnd

func (x *Stm) AsksByTmeBnd(tmeBnd bnd.Bnd) *flts.Flts

func (*Stm) BidAsk

func (x *Stm) BidAsk(t tme.Tme) (bid, ask flt.Flt)

func (*Stm) BidAskAt

func (x *Stm) BidAskAt(idx unt.Unt) (bid, ask flt.Flt)

func (*Stm) BidAt

func (x *Stm) BidAt(idx unt.Unt) flt.Flt

func (*Stm) BidBndByTmeBnd

func (x *Stm) BidBndByTmeBnd(tmeBnd bnd.Bnd) (r bnd.Bnd)

func (*Stm) BidsAsks

func (x *Stm) BidsAsks(t tme.Tme) (bids, asks *flts.Flts)

func (*Stm) BidsAsksAt

func (x *Stm) BidsAsksAt(idx unt.Unt) (bids, asks *flts.Flts)

func (*Stm) BidsAt

func (x *Stm) BidsAt(idx unt.Unt) *flts.Flts

func (*Stm) BidsByTmeBnd

func (x *Stm) BidsByTmeBnd(tmeBnd bnd.Bnd) *flts.Flts

func (*Stm) BytRed

func (x *Stm) BytRed(b []byte) (idx int)

func (*Stm) BytWrt

func (x *Stm) BytWrt(b *bytes.Buffer)

func (*Stm) Bytes

func (x *Stm) Bytes() []byte

func (*Stm) Clr

func (x *Stm) Clr() (r *Stm)

func (*Stm) Cnt

func (x *Stm) Cnt() unt.Unt

func (*Stm) Cpy

func (x *Stm) Cpy() (r *Stm)

func (*Stm) From

func (x *Stm) From(idx unt.Unt) (r *Stm)

func (*Stm) GapFil

func (x *Stm) GapFil(skpMktWeek ...bool)

func (*Stm) GapFilLst

func (x *Stm) GapFilLst() (r TmeIdx)

func (*Stm) GapFilTo

func (x *Stm) GapFilTo(heartTme tme.Tme)

func (*Stm) In

func (x *Stm) In(idx, lim unt.Unt) (r *Stm)

func (*Stm) InRng

func (x *Stm) InRng(fromTo ...tme.Tme) (r *Stm)

func (*Stm) OanJsnRed

func (x *Stm) OanJsnRed(j *jsn.Jsnr)

func (*Stm) Push

func (x *Stm) Push(v *Stm) *Stm

func (*Stm) PushGap

func (x *Stm) PushGap(gapTme tme.Tme, v *Tic)

func (*Stm) PushTic

func (x *Stm) PushTic(v *Tic)

func (*Stm) Rng

func (x *Stm) Rng() (r tme.Rng)

func (*Stm) Spds

func (x *Stm) Spds(i *Instr) (r *flts.Flts)

func (*Stm) Tic

func (x *Stm) Tic(idx unt.Unt) (r *Tic)

func (*Stm) To

func (x *Stm) To(lim unt.Unt) (r *Stm)

func (*Stm) Validate

func (x *Stm) Validate()

func (*Stm) ValidateLen

func (x *Stm) ValidateLen()

func (*Stm) ValidateLims

func (x *Stm) ValidateLims()

func (*Stm) ValidateOneLims

func (x *Stm) ValidateOneLims(name string, vs *unts.Unts)

func (*Stm) ValidateTmeGap

func (x *Stm) ValidateTmeGap()

type Tic

type Tic struct {
	Tme  tme.Tme
	Bids *flts.Flts
	Asks *flts.Flts
}

type TicRow

type TicRow struct {
	Time time.Time
	Tick string
}

type Ticr

type Ticr struct {
	RxPktC        chan byte
	RxHeartC      chan tme.Tme
	RxTicsExitC   chan bool
	RxTicsExitedC chan bool
	RxInstrs      map[str.Str]*Instr
	// RxPktTme      tme.Tme
	RxMu sync.Mutex

	TxTicsC       chan InstrTic // sent by Oan; monitored by rlt
	TxTicsExitedC chan bool

	Cfg *cfg.Cfg
}

func NewTicr

func NewTicr(cfg *cfg.Cfg) (r *Ticr)

func (*Ticr) Cls

func (x *Ticr) Cls()

func (*Ticr) ClsRx

func (x *Ticr) ClsRx()

func (*Ticr) ClsTx

func (x *Ticr) ClsTx()

func (*Ticr) OpnRx

func (x *Ticr) OpnRx(instrs map[str.Str]*Instr)

func (*Ticr) OpnTx

func (x *Ticr) OpnTx()

type TmeFlt

type TmeFlt struct {
	Tme tme.Tme
	Flt flt.Flt
}

type TmeFltRx

type TmeFltRx func(pkt TmeFlt) []sys.Act

type TmeFltRxs

type TmeFltRxs map[uint64]TmeFltRx

type TmeFltTx

type TmeFltTx struct {
	Pkt TmeFlt
	Rx  TmeFltRx
	// contains filtered or unexported fields
}

func NewTmeFltTx

func NewTmeFltTx(pkt TmeFlt, rx TmeFltRx, tier ...int) (r *TmeFltTx)

func (*TmeFltTx) Act

func (x *TmeFltTx) Act()

func (*TmeFltTx) DecTier

func (x *TmeFltTx) DecTier()

func (*TmeFltTx) Ret

func (x *TmeFltTx) Ret() []sys.Act

func (*TmeFltTx) Tier

func (x *TmeFltTx) Tier() int

type TmeFltTxr

type TmeFltTxr interface {
	Sub(rx TmeFltRx, id uint32, slot ...uint32)
	Unsub(id uint32, slot ...uint32)
}

type TmeFlts

type TmeFlts struct {
	Tme  tme.Tme
	Flts *flts.Flts
}

type TmeFltsRx

type TmeFltsRx func(pkt TmeFlts) []sys.Act

type TmeFltsRxs

type TmeFltsRxs map[uint64]TmeFltsRx

type TmeFltsTx

type TmeFltsTx struct {
	Pkt TmeFlts
	Rx  TmeFltsRx
	// contains filtered or unexported fields
}

func NewTmeFltsTx

func NewTmeFltsTx(pkt TmeFlts, rx TmeFltsRx, tier ...int) (r *TmeFltsTx)

func (*TmeFltsTx) Act

func (x *TmeFltsTx) Act()

func (*TmeFltsTx) DecTier

func (x *TmeFltsTx) DecTier()

func (*TmeFltsTx) Ret

func (x *TmeFltsTx) Ret() []sys.Act

func (*TmeFltsTx) Tier

func (x *TmeFltsTx) Tier() int

type TmeFltsTxr

type TmeFltsTxr interface {
	Sub(rx TmeFltsRx, id uint32, slot ...uint32)
	Unsub(id uint32, slot ...uint32)
}

type TmeIdx

type TmeIdx struct {
	Tme tme.Tme
	Idx unt.Unt
}

type TmeIdxRx

type TmeIdxRx func(pkt TmeIdx) []sys.Act

type TmeIdxRxs

type TmeIdxRxs map[uint64]TmeIdxRx

type TmeIdxTx

type TmeIdxTx struct {
	Pkt TmeIdx
	Rx  TmeIdxRx
	// contains filtered or unexported fields
}

func NewTmeIdxTx

func NewTmeIdxTx(pkt TmeIdx, rx TmeIdxRx, tier ...int) (r *TmeIdxTx)

func (*TmeIdxTx) Act

func (x *TmeIdxTx) Act()

func (*TmeIdxTx) DecTier

func (x *TmeIdxTx) DecTier()

func (*TmeIdxTx) Ret

func (x *TmeIdxTx) Ret() []sys.Act

func (*TmeIdxTx) Tier

func (x *TmeIdxTx) Tier() int

type TmeIdxTxr

type TmeIdxTxr interface {
	Sub(rx TmeIdxRx, id uint32, slot ...uint32)
	Unsub(id uint32, slot ...uint32)
}

type TmeIdxs

type TmeIdxs []TmeIdx

func MakeEmpTmeIdxs

func MakeEmpTmeIdxs(cap unt.Unt) *TmeIdxs

func MakeTmeIdxs

func MakeTmeIdxs(cap unt.Unt) *TmeIdxs

func NewTmeIdxs

func NewTmeIdxs(vs ...TmeIdx) *TmeIdxs

func (*TmeIdxs) At

func (x *TmeIdxs) At(idx unt.Unt) TmeIdx

func (*TmeIdxs) Clr

func (x *TmeIdxs) Clr() *TmeIdxs

func (*TmeIdxs) Cnt

func (x *TmeIdxs) Cnt() unt.Unt

func (*TmeIdxs) Cpy

func (x *TmeIdxs) Cpy() *TmeIdxs

func (*TmeIdxs) Del

func (x *TmeIdxs) Del(idx unt.Unt) (r TmeIdx)

func (*TmeIdxs) Dque

func (x *TmeIdxs) Dque() (r TmeIdx)

func (*TmeIdxs) From

func (x *TmeIdxs) From(idx unt.Unt) *TmeIdxs

func (*TmeIdxs) Fst

func (x *TmeIdxs) Fst() TmeIdx

func (*TmeIdxs) FstIdx

func (x *TmeIdxs) FstIdx() unt.Unt

func (*TmeIdxs) In

func (x *TmeIdxs) In(idx, lim unt.Unt) *TmeIdxs

func (*TmeIdxs) InBnd

func (x *TmeIdxs) InBnd(b bnd.Bnd) *TmeIdxs

func (*TmeIdxs) Ins

func (x *TmeIdxs) Ins(idx unt.Unt, elm TmeIdx) *TmeIdxs

func (*TmeIdxs) Lst

func (x *TmeIdxs) Lst() TmeIdx

func (*TmeIdxs) LstIdx

func (x *TmeIdxs) LstIdx() unt.Unt

func (*TmeIdxs) Mdl

func (x *TmeIdxs) Mdl() TmeIdx

func (*TmeIdxs) MdlIdx

func (x *TmeIdxs) MdlIdx() unt.Unt

func (*TmeIdxs) Mrg

func (x *TmeIdxs) Mrg(a ...*TmeIdxs) *TmeIdxs

func (*TmeIdxs) Ok

func (x *TmeIdxs) Ok() bol.Bol

func (*TmeIdxs) Pop

func (x *TmeIdxs) Pop() (r TmeIdx)

func (*TmeIdxs) Push

func (x *TmeIdxs) Push(a ...TmeIdx) *TmeIdxs

func (*TmeIdxs) Que

func (x *TmeIdxs) Que(vs ...TmeIdx) *TmeIdxs

func (*TmeIdxs) Rand

func (x *TmeIdxs) Rand() *TmeIdxs

func (*TmeIdxs) Rev

func (x *TmeIdxs) Rev() *TmeIdxs

func (*TmeIdxs) To

func (x *TmeIdxs) To(lim unt.Unt) *TmeIdxs

func (*TmeIdxs) Upd

func (x *TmeIdxs) Upd(idx unt.Unt, elm TmeIdx) *TmeIdxs

type Trd

type Trd struct {
	OpnTme        tme.Tme
	ClsTme        tme.Tme
	OpnBid        flt.Flt
	ClsBid        flt.Flt
	OpnAsk        flt.Flt
	ClsAsk        flt.Flt
	OpnSpd        flt.Flt
	ClsSpd        flt.Flt
	ClsRsn        str.Str
	Pip           flt.Flt
	Dur           tme.Tme
	IsLong        bol.Bol
	PnlPct        flt.Flt
	PnlPctPredict flt.Flt
	PnlUsd        flt.Flt
	PnlGrsUsd     flt.Flt
	CstComUsd     flt.Flt
	CstClsSpdUsd  flt.Flt
	CstOpnSpdUsd  flt.Flt
	OpnBalUsd     flt.Flt
	ClsBalUsd     flt.Flt
	ClsBalUsdAct  flt.Flt
	TrdPct        flt.Flt
	MrgnRtio      flt.Flt
	Units         flt.Flt
	Instr         str.Str
	OpnReq        str.Str
	OpnRes        str.Str
	ClsReq        str.Str
	ClsRes        str.Str
}

func (*Trd) CalcPip

func (x *Trd) CalcPip(instrPip flt.Flt)

func (*Trd) CalcPnl

func (x *Trd) CalcPnl(i *Instr, opnBalUsd, trdPct flt.Flt)

func (*Trd) ClsMid

func (x *Trd) ClsMid() flt.Flt

func (*Trd) OpnMid

func (x *Trd) OpnMid() flt.Flt

func (*Trd) StrWrt

func (x *Trd) StrWrt(b *strings.Builder) string

func (*Trd) String

func (x *Trd) String() string

type TrdRsnCls

type TrdRsnCls byte
const (
	NoTrdRsnCls TrdRsnCls = iota
	Prf
	Los
	Dur
	Cnd
)

func (TrdRsnCls) Str

func (x TrdRsnCls) Str() str.Str

func (TrdRsnCls) String

func (x TrdRsnCls) String() string

type TrdRsnOpn

type TrdRsnOpn byte
const (
	NoTrdRsnOpn TrdRsnOpn = iota
	ErrMktWeek
	ErrOpnCnd
	NearMktOpn
	NearMktCls
	SpdLrg
	NoCls
	PrvReject
	InTrd
	FilHstGap
	NoCapital
	PrvErr
)

func (TrdRsnOpn) String

func (x TrdRsnOpn) String() string

type TrdRx

type TrdRx func(pkt *Trd) []sys.Act

type TrdRxs

type TrdRxs map[uint64]TrdRx

type TrdScp

type TrdScp struct {
	Idx uint32
	Arr []*Trd
}

type TrdTx

type TrdTx struct {
	Pkt *Trd
	Rx  TrdRx
	// contains filtered or unexported fields
}

func NewTrdTx

func NewTrdTx(pkt *Trd, rx TrdRx, tier ...int) (r *TrdTx)

func (*TrdTx) Act

func (x *TrdTx) Act()

func (*TrdTx) DecTier

func (x *TrdTx) DecTier()

func (*TrdTx) Ret

func (x *TrdTx) Ret() []sys.Act

func (*TrdTx) Tier

func (x *TrdTx) Tier() int

type TrdTxr

type TrdTxr interface {
	Sub(rx TrdRx, id uint32, slot ...uint32)
	Unsub(id uint32, slot ...uint32)
}

type Trds

type Trds []*Trd

func MakeEmpTrds

func MakeEmpTrds(cap unt.Unt) *Trds

func MakeTrds

func MakeTrds(cap unt.Unt) *Trds

func NewTrds

func NewTrds(vs ...*Trd) *Trds

func (*Trds) At

func (x *Trds) At(idx unt.Unt) *Trd

func (*Trds) Clr

func (x *Trds) Clr() *Trds

func (*Trds) ClsAsks

func (x *Trds) ClsAsks() (r *flts.Flts)

func (*Trds) ClsBalUsdActs

func (x *Trds) ClsBalUsdActs() (r *flts.Flts)

func (*Trds) ClsBalUsds

func (x *Trds) ClsBalUsds() (r *flts.Flts)

func (*Trds) ClsBids

func (x *Trds) ClsBids() (r *flts.Flts)

func (*Trds) ClsReqs

func (x *Trds) ClsReqs() (r *strs.Strs)

func (*Trds) ClsRess

func (x *Trds) ClsRess() (r *strs.Strs)

func (*Trds) ClsRsns

func (x *Trds) ClsRsns() (r *strs.Strs)

func (*Trds) ClsSpds

func (x *Trds) ClsSpds() (r *flts.Flts)

func (*Trds) ClsTmes

func (x *Trds) ClsTmes() (r *tmes.Tmes)

func (*Trds) Cnt

func (x *Trds) Cnt() unt.Unt

func (*Trds) Cpy

func (x *Trds) Cpy() *Trds

func (*Trds) CstClsSpdUsds

func (x *Trds) CstClsSpdUsds() (r *flts.Flts)

func (*Trds) CstComUsds

func (x *Trds) CstComUsds() (r *flts.Flts)

func (*Trds) CstOpnSpdUsds

func (x *Trds) CstOpnSpdUsds() (r *flts.Flts)

func (*Trds) Del

func (x *Trds) Del(idx unt.Unt) (r *Trd)

func (*Trds) Dque

func (x *Trds) Dque() (r *Trd)

func (*Trds) Durs

func (x *Trds) Durs() (r *tmes.Tmes)

func (*Trds) From

func (x *Trds) From(idx unt.Unt) *Trds

func (*Trds) Fst

func (x *Trds) Fst() *Trd

func (*Trds) FstIdx

func (x *Trds) FstIdx() unt.Unt

func (*Trds) In

func (x *Trds) In(idx, lim unt.Unt) *Trds

func (*Trds) InBnd

func (x *Trds) InBnd(b bnd.Bnd) *Trds

func (*Trds) Ins

func (x *Trds) Ins(idx unt.Unt, elm *Trd) *Trds

func (*Trds) Instrs

func (x *Trds) Instrs() (r *strs.Strs)

func (*Trds) IsLongs

func (x *Trds) IsLongs() (r *bols.Bols)

func (*Trds) Lst

func (x *Trds) Lst() *Trd

func (*Trds) LstIdx

func (x *Trds) LstIdx() unt.Unt

func (*Trds) Mdl

func (x *Trds) Mdl() *Trd

func (*Trds) MdlIdx

func (x *Trds) MdlIdx() unt.Unt

func (*Trds) Mrg

func (x *Trds) Mrg(a ...*Trds) *Trds

func (*Trds) MrgnRtios

func (x *Trds) MrgnRtios() (r *flts.Flts)

func (*Trds) Ok

func (x *Trds) Ok() bol.Bol

func (*Trds) OpnAsks

func (x *Trds) OpnAsks() (r *flts.Flts)

func (*Trds) OpnBalUsds

func (x *Trds) OpnBalUsds() (r *flts.Flts)

func (*Trds) OpnBids

func (x *Trds) OpnBids() (r *flts.Flts)

func (*Trds) OpnReqs

func (x *Trds) OpnReqs() (r *strs.Strs)

func (*Trds) OpnRess

func (x *Trds) OpnRess() (r *strs.Strs)

func (*Trds) OpnSpds

func (x *Trds) OpnSpds() (r *flts.Flts)

func (*Trds) OpnTmes

func (x *Trds) OpnTmes() (r *tmes.Tmes)

func (*Trds) Pips

func (x *Trds) Pips() (r *flts.Flts)

func (*Trds) PnlGrsUsds

func (x *Trds) PnlGrsUsds() (r *flts.Flts)

func (*Trds) PnlPctPredicts

func (x *Trds) PnlPctPredicts() (r *flts.Flts)

func (*Trds) PnlPcts

func (x *Trds) PnlPcts() (r *flts.Flts)

func (*Trds) PnlUsds

func (x *Trds) PnlUsds() (r *flts.Flts)

func (*Trds) Pop

func (x *Trds) Pop() (r *Trd)

func (*Trds) Push

func (x *Trds) Push(a ...*Trd) *Trds

func (*Trds) Que

func (x *Trds) Que(vs ...*Trd) *Trds

func (*Trds) Rand

func (x *Trds) Rand() *Trds

func (*Trds) Rev

func (x *Trds) Rev() *Trds

func (*Trds) SelClsAskEql

func (x *Trds) SelClsAskEql(v flt.Flt) (r *Trds)

func (*Trds) SelClsAskGeq

func (x *Trds) SelClsAskGeq(v flt.Flt) (r *Trds)

func (*Trds) SelClsAskGtr

func (x *Trds) SelClsAskGtr(v flt.Flt) (r *Trds)

func (*Trds) SelClsAskLeq

func (x *Trds) SelClsAskLeq(v flt.Flt) (r *Trds)

func (*Trds) SelClsAskLss

func (x *Trds) SelClsAskLss(v flt.Flt) (r *Trds)

func (*Trds) SelClsAskNeq

func (x *Trds) SelClsAskNeq(v flt.Flt) (r *Trds)

func (*Trds) SelClsAskSplt

func (x *Trds) SelClsAskSplt(v flt.Flt) (btm, top *Trds)

func (*Trds) SelClsBalUsdActEql

func (x *Trds) SelClsBalUsdActEql(v flt.Flt) (r *Trds)

func (*Trds) SelClsBalUsdActGeq

func (x *Trds) SelClsBalUsdActGeq(v flt.Flt) (r *Trds)

func (*Trds) SelClsBalUsdActGtr

func (x *Trds) SelClsBalUsdActGtr(v flt.Flt) (r *Trds)

func (*Trds) SelClsBalUsdActLeq

func (x *Trds) SelClsBalUsdActLeq(v flt.Flt) (r *Trds)

func (*Trds) SelClsBalUsdActLss

func (x *Trds) SelClsBalUsdActLss(v flt.Flt) (r *Trds)

func (*Trds) SelClsBalUsdActNeq

func (x *Trds) SelClsBalUsdActNeq(v flt.Flt) (r *Trds)

func (*Trds) SelClsBalUsdActSplt

func (x *Trds) SelClsBalUsdActSplt(v flt.Flt) (btm, top *Trds)

func (*Trds) SelClsBalUsdEql

func (x *Trds) SelClsBalUsdEql(v flt.Flt) (r *Trds)

func (*Trds) SelClsBalUsdGeq

func (x *Trds) SelClsBalUsdGeq(v flt.Flt) (r *Trds)

func (*Trds) SelClsBalUsdGtr

func (x *Trds) SelClsBalUsdGtr(v flt.Flt) (r *Trds)

func (*Trds) SelClsBalUsdLeq

func (x *Trds) SelClsBalUsdLeq(v flt.Flt) (r *Trds)

func (*Trds) SelClsBalUsdLss

func (x *Trds) SelClsBalUsdLss(v flt.Flt) (r *Trds)

func (*Trds) SelClsBalUsdNeq

func (x *Trds) SelClsBalUsdNeq(v flt.Flt) (r *Trds)

func (*Trds) SelClsBalUsdSplt

func (x *Trds) SelClsBalUsdSplt(v flt.Flt) (btm, top *Trds)

func (*Trds) SelClsBidEql

func (x *Trds) SelClsBidEql(v flt.Flt) (r *Trds)

func (*Trds) SelClsBidGeq

func (x *Trds) SelClsBidGeq(v flt.Flt) (r *Trds)

func (*Trds) SelClsBidGtr

func (x *Trds) SelClsBidGtr(v flt.Flt) (r *Trds)

func (*Trds) SelClsBidLeq

func (x *Trds) SelClsBidLeq(v flt.Flt) (r *Trds)

func (*Trds) SelClsBidLss

func (x *Trds) SelClsBidLss(v flt.Flt) (r *Trds)

func (*Trds) SelClsBidNeq

func (x *Trds) SelClsBidNeq(v flt.Flt) (r *Trds)

func (*Trds) SelClsBidSplt

func (x *Trds) SelClsBidSplt(v flt.Flt) (btm, top *Trds)

func (*Trds) SelClsReqEql

func (x *Trds) SelClsReqEql(v str.Str) (r *Trds)

func (*Trds) SelClsReqGeq

func (x *Trds) SelClsReqGeq(v str.Str) (r *Trds)

func (*Trds) SelClsReqGtr

func (x *Trds) SelClsReqGtr(v str.Str) (r *Trds)

func (*Trds) SelClsReqLeq

func (x *Trds) SelClsReqLeq(v str.Str) (r *Trds)

func (*Trds) SelClsReqLss

func (x *Trds) SelClsReqLss(v str.Str) (r *Trds)

func (*Trds) SelClsReqNeq

func (x *Trds) SelClsReqNeq(v str.Str) (r *Trds)

func (*Trds) SelClsReqSplt

func (x *Trds) SelClsReqSplt(v str.Str) (btm, top *Trds)

func (*Trds) SelClsResEql

func (x *Trds) SelClsResEql(v str.Str) (r *Trds)

func (*Trds) SelClsResGeq

func (x *Trds) SelClsResGeq(v str.Str) (r *Trds)

func (*Trds) SelClsResGtr

func (x *Trds) SelClsResGtr(v str.Str) (r *Trds)

func (*Trds) SelClsResLeq

func (x *Trds) SelClsResLeq(v str.Str) (r *Trds)

func (*Trds) SelClsResLss

func (x *Trds) SelClsResLss(v str.Str) (r *Trds)

func (*Trds) SelClsResNeq

func (x *Trds) SelClsResNeq(v str.Str) (r *Trds)

func (*Trds) SelClsResSplt

func (x *Trds) SelClsResSplt(v str.Str) (btm, top *Trds)

func (*Trds) SelClsRsnEql

func (x *Trds) SelClsRsnEql(v str.Str) (r *Trds)

func (*Trds) SelClsRsnGeq

func (x *Trds) SelClsRsnGeq(v str.Str) (r *Trds)

func (*Trds) SelClsRsnGtr

func (x *Trds) SelClsRsnGtr(v str.Str) (r *Trds)

func (*Trds) SelClsRsnLeq

func (x *Trds) SelClsRsnLeq(v str.Str) (r *Trds)

func (*Trds) SelClsRsnLss

func (x *Trds) SelClsRsnLss(v str.Str) (r *Trds)

func (*Trds) SelClsRsnNeq

func (x *Trds) SelClsRsnNeq(v str.Str) (r *Trds)

func (*Trds) SelClsRsnSplt

func (x *Trds) SelClsRsnSplt(v str.Str) (btm, top *Trds)

func (*Trds) SelClsSpdEql

func (x *Trds) SelClsSpdEql(v flt.Flt) (r *Trds)

func (*Trds) SelClsSpdGeq

func (x *Trds) SelClsSpdGeq(v flt.Flt) (r *Trds)

func (*Trds) SelClsSpdGtr

func (x *Trds) SelClsSpdGtr(v flt.Flt) (r *Trds)

func (*Trds) SelClsSpdLeq

func (x *Trds) SelClsSpdLeq(v flt.Flt) (r *Trds)

func (*Trds) SelClsSpdLss

func (x *Trds) SelClsSpdLss(v flt.Flt) (r *Trds)

func (*Trds) SelClsSpdNeq

func (x *Trds) SelClsSpdNeq(v flt.Flt) (r *Trds)

func (*Trds) SelClsSpdSplt

func (x *Trds) SelClsSpdSplt(v flt.Flt) (btm, top *Trds)

func (*Trds) SelClsTmeEql

func (x *Trds) SelClsTmeEql(v tme.Tme) (r *Trds)

func (*Trds) SelClsTmeGeq

func (x *Trds) SelClsTmeGeq(v tme.Tme) (r *Trds)

func (*Trds) SelClsTmeGtr

func (x *Trds) SelClsTmeGtr(v tme.Tme) (r *Trds)

func (*Trds) SelClsTmeLeq

func (x *Trds) SelClsTmeLeq(v tme.Tme) (r *Trds)

func (*Trds) SelClsTmeLss

func (x *Trds) SelClsTmeLss(v tme.Tme) (r *Trds)

func (*Trds) SelClsTmeNeq

func (x *Trds) SelClsTmeNeq(v tme.Tme) (r *Trds)

func (*Trds) SelClsTmeSplt

func (x *Trds) SelClsTmeSplt(v tme.Tme) (btm, top *Trds)

func (*Trds) SelCstClsSpdUsdEql

func (x *Trds) SelCstClsSpdUsdEql(v flt.Flt) (r *Trds)

func (*Trds) SelCstClsSpdUsdGeq

func (x *Trds) SelCstClsSpdUsdGeq(v flt.Flt) (r *Trds)

func (*Trds) SelCstClsSpdUsdGtr

func (x *Trds) SelCstClsSpdUsdGtr(v flt.Flt) (r *Trds)

func (*Trds) SelCstClsSpdUsdLeq

func (x *Trds) SelCstClsSpdUsdLeq(v flt.Flt) (r *Trds)

func (*Trds) SelCstClsSpdUsdLss

func (x *Trds) SelCstClsSpdUsdLss(v flt.Flt) (r *Trds)

func (*Trds) SelCstClsSpdUsdNeq

func (x *Trds) SelCstClsSpdUsdNeq(v flt.Flt) (r *Trds)

func (*Trds) SelCstClsSpdUsdSplt

func (x *Trds) SelCstClsSpdUsdSplt(v flt.Flt) (btm, top *Trds)

func (*Trds) SelCstComUsdEql

func (x *Trds) SelCstComUsdEql(v flt.Flt) (r *Trds)

func (*Trds) SelCstComUsdGeq

func (x *Trds) SelCstComUsdGeq(v flt.Flt) (r *Trds)

func (*Trds) SelCstComUsdGtr

func (x *Trds) SelCstComUsdGtr(v flt.Flt) (r *Trds)

func (*Trds) SelCstComUsdLeq

func (x *Trds) SelCstComUsdLeq(v flt.Flt) (r *Trds)

func (*Trds) SelCstComUsdLss

func (x *Trds) SelCstComUsdLss(v flt.Flt) (r *Trds)

func (*Trds) SelCstComUsdNeq

func (x *Trds) SelCstComUsdNeq(v flt.Flt) (r *Trds)

func (*Trds) SelCstComUsdSplt

func (x *Trds) SelCstComUsdSplt(v flt.Flt) (btm, top *Trds)

func (*Trds) SelCstOpnSpdUsdEql

func (x *Trds) SelCstOpnSpdUsdEql(v flt.Flt) (r *Trds)

func (*Trds) SelCstOpnSpdUsdGeq

func (x *Trds) SelCstOpnSpdUsdGeq(v flt.Flt) (r *Trds)

func (*Trds) SelCstOpnSpdUsdGtr

func (x *Trds) SelCstOpnSpdUsdGtr(v flt.Flt) (r *Trds)

func (*Trds) SelCstOpnSpdUsdLeq

func (x *Trds) SelCstOpnSpdUsdLeq(v flt.Flt) (r *Trds)

func (*Trds) SelCstOpnSpdUsdLss

func (x *Trds) SelCstOpnSpdUsdLss(v flt.Flt) (r *Trds)

func (*Trds) SelCstOpnSpdUsdNeq

func (x *Trds) SelCstOpnSpdUsdNeq(v flt.Flt) (r *Trds)

func (*Trds) SelCstOpnSpdUsdSplt

func (x *Trds) SelCstOpnSpdUsdSplt(v flt.Flt) (btm, top *Trds)

func (*Trds) SelDurEql

func (x *Trds) SelDurEql(v tme.Tme) (r *Trds)

func (*Trds) SelDurGeq

func (x *Trds) SelDurGeq(v tme.Tme) (r *Trds)

func (*Trds) SelDurGtr

func (x *Trds) SelDurGtr(v tme.Tme) (r *Trds)

func (*Trds) SelDurLeq

func (x *Trds) SelDurLeq(v tme.Tme) (r *Trds)

func (*Trds) SelDurLss

func (x *Trds) SelDurLss(v tme.Tme) (r *Trds)

func (*Trds) SelDurNeq

func (x *Trds) SelDurNeq(v tme.Tme) (r *Trds)

func (*Trds) SelDurSplt

func (x *Trds) SelDurSplt(v tme.Tme) (btm, top *Trds)

func (*Trds) SelInstrEql

func (x *Trds) SelInstrEql(v str.Str) (r *Trds)

func (*Trds) SelInstrGeq

func (x *Trds) SelInstrGeq(v str.Str) (r *Trds)

func (*Trds) SelInstrGtr

func (x *Trds) SelInstrGtr(v str.Str) (r *Trds)

func (*Trds) SelInstrLeq

func (x *Trds) SelInstrLeq(v str.Str) (r *Trds)

func (*Trds) SelInstrLss

func (x *Trds) SelInstrLss(v str.Str) (r *Trds)

func (*Trds) SelInstrNeq

func (x *Trds) SelInstrNeq(v str.Str) (r *Trds)

func (*Trds) SelInstrSplt

func (x *Trds) SelInstrSplt(v str.Str) (btm, top *Trds)

func (*Trds) SelIsLongEql

func (x *Trds) SelIsLongEql(v bol.Bol) (r *Trds)

func (*Trds) SelIsLongNeq

func (x *Trds) SelIsLongNeq(v bol.Bol) (r *Trds)

func (*Trds) SelMrgnRtioEql

func (x *Trds) SelMrgnRtioEql(v flt.Flt) (r *Trds)

func (*Trds) SelMrgnRtioGeq

func (x *Trds) SelMrgnRtioGeq(v flt.Flt) (r *Trds)

func (*Trds) SelMrgnRtioGtr

func (x *Trds) SelMrgnRtioGtr(v flt.Flt) (r *Trds)

func (*Trds) SelMrgnRtioLeq

func (x *Trds) SelMrgnRtioLeq(v flt.Flt) (r *Trds)

func (*Trds) SelMrgnRtioLss

func (x *Trds) SelMrgnRtioLss(v flt.Flt) (r *Trds)

func (*Trds) SelMrgnRtioNeq

func (x *Trds) SelMrgnRtioNeq(v flt.Flt) (r *Trds)

func (*Trds) SelMrgnRtioSplt

func (x *Trds) SelMrgnRtioSplt(v flt.Flt) (btm, top *Trds)

func (*Trds) SelOpnAskEql

func (x *Trds) SelOpnAskEql(v flt.Flt) (r *Trds)

func (*Trds) SelOpnAskGeq

func (x *Trds) SelOpnAskGeq(v flt.Flt) (r *Trds)

func (*Trds) SelOpnAskGtr

func (x *Trds) SelOpnAskGtr(v flt.Flt) (r *Trds)

func (*Trds) SelOpnAskLeq

func (x *Trds) SelOpnAskLeq(v flt.Flt) (r *Trds)

func (*Trds) SelOpnAskLss

func (x *Trds) SelOpnAskLss(v flt.Flt) (r *Trds)

func (*Trds) SelOpnAskNeq

func (x *Trds) SelOpnAskNeq(v flt.Flt) (r *Trds)

func (*Trds) SelOpnAskSplt

func (x *Trds) SelOpnAskSplt(v flt.Flt) (btm, top *Trds)

func (*Trds) SelOpnBalUsdEql

func (x *Trds) SelOpnBalUsdEql(v flt.Flt) (r *Trds)

func (*Trds) SelOpnBalUsdGeq

func (x *Trds) SelOpnBalUsdGeq(v flt.Flt) (r *Trds)

func (*Trds) SelOpnBalUsdGtr

func (x *Trds) SelOpnBalUsdGtr(v flt.Flt) (r *Trds)

func (*Trds) SelOpnBalUsdLeq

func (x *Trds) SelOpnBalUsdLeq(v flt.Flt) (r *Trds)

func (*Trds) SelOpnBalUsdLss

func (x *Trds) SelOpnBalUsdLss(v flt.Flt) (r *Trds)

func (*Trds) SelOpnBalUsdNeq

func (x *Trds) SelOpnBalUsdNeq(v flt.Flt) (r *Trds)

func (*Trds) SelOpnBalUsdSplt

func (x *Trds) SelOpnBalUsdSplt(v flt.Flt) (btm, top *Trds)

func (*Trds) SelOpnBidEql

func (x *Trds) SelOpnBidEql(v flt.Flt) (r *Trds)

func (*Trds) SelOpnBidGeq

func (x *Trds) SelOpnBidGeq(v flt.Flt) (r *Trds)

func (*Trds) SelOpnBidGtr

func (x *Trds) SelOpnBidGtr(v flt.Flt) (r *Trds)

func (*Trds) SelOpnBidLeq

func (x *Trds) SelOpnBidLeq(v flt.Flt) (r *Trds)

func (*Trds) SelOpnBidLss

func (x *Trds) SelOpnBidLss(v flt.Flt) (r *Trds)

func (*Trds) SelOpnBidNeq

func (x *Trds) SelOpnBidNeq(v flt.Flt) (r *Trds)

func (*Trds) SelOpnBidSplt

func (x *Trds) SelOpnBidSplt(v flt.Flt) (btm, top *Trds)

func (*Trds) SelOpnReqEql

func (x *Trds) SelOpnReqEql(v str.Str) (r *Trds)

func (*Trds) SelOpnReqGeq

func (x *Trds) SelOpnReqGeq(v str.Str) (r *Trds)

func (*Trds) SelOpnReqGtr

func (x *Trds) SelOpnReqGtr(v str.Str) (r *Trds)

func (*Trds) SelOpnReqLeq

func (x *Trds) SelOpnReqLeq(v str.Str) (r *Trds)

func (*Trds) SelOpnReqLss

func (x *Trds) SelOpnReqLss(v str.Str) (r *Trds)

func (*Trds) SelOpnReqNeq

func (x *Trds) SelOpnReqNeq(v str.Str) (r *Trds)

func (*Trds) SelOpnReqSplt

func (x *Trds) SelOpnReqSplt(v str.Str) (btm, top *Trds)

func (*Trds) SelOpnResEql

func (x *Trds) SelOpnResEql(v str.Str) (r *Trds)

func (*Trds) SelOpnResGeq

func (x *Trds) SelOpnResGeq(v str.Str) (r *Trds)

func (*Trds) SelOpnResGtr

func (x *Trds) SelOpnResGtr(v str.Str) (r *Trds)

func (*Trds) SelOpnResLeq

func (x *Trds) SelOpnResLeq(v str.Str) (r *Trds)

func (*Trds) SelOpnResLss

func (x *Trds) SelOpnResLss(v str.Str) (r *Trds)

func (*Trds) SelOpnResNeq

func (x *Trds) SelOpnResNeq(v str.Str) (r *Trds)

func (*Trds) SelOpnResSplt

func (x *Trds) SelOpnResSplt(v str.Str) (btm, top *Trds)

func (*Trds) SelOpnSpdEql

func (x *Trds) SelOpnSpdEql(v flt.Flt) (r *Trds)

func (*Trds) SelOpnSpdGeq

func (x *Trds) SelOpnSpdGeq(v flt.Flt) (r *Trds)

func (*Trds) SelOpnSpdGtr

func (x *Trds) SelOpnSpdGtr(v flt.Flt) (r *Trds)

func (*Trds) SelOpnSpdLeq

func (x *Trds) SelOpnSpdLeq(v flt.Flt) (r *Trds)

func (*Trds) SelOpnSpdLss

func (x *Trds) SelOpnSpdLss(v flt.Flt) (r *Trds)

func (*Trds) SelOpnSpdNeq

func (x *Trds) SelOpnSpdNeq(v flt.Flt) (r *Trds)

func (*Trds) SelOpnSpdSplt

func (x *Trds) SelOpnSpdSplt(v flt.Flt) (btm, top *Trds)

func (*Trds) SelOpnTmeEql

func (x *Trds) SelOpnTmeEql(v tme.Tme) (r *Trds)

func (*Trds) SelOpnTmeGeq

func (x *Trds) SelOpnTmeGeq(v tme.Tme) (r *Trds)

func (*Trds) SelOpnTmeGtr

func (x *Trds) SelOpnTmeGtr(v tme.Tme) (r *Trds)

func (*Trds) SelOpnTmeLeq

func (x *Trds) SelOpnTmeLeq(v tme.Tme) (r *Trds)

func (*Trds) SelOpnTmeLss

func (x *Trds) SelOpnTmeLss(v tme.Tme) (r *Trds)

func (*Trds) SelOpnTmeNeq

func (x *Trds) SelOpnTmeNeq(v tme.Tme) (r *Trds)

func (*Trds) SelOpnTmeSplt

func (x *Trds) SelOpnTmeSplt(v tme.Tme) (btm, top *Trds)

func (*Trds) SelPipEql

func (x *Trds) SelPipEql(v flt.Flt) (r *Trds)

func (*Trds) SelPipGeq

func (x *Trds) SelPipGeq(v flt.Flt) (r *Trds)

func (*Trds) SelPipGtr

func (x *Trds) SelPipGtr(v flt.Flt) (r *Trds)

func (*Trds) SelPipLeq

func (x *Trds) SelPipLeq(v flt.Flt) (r *Trds)

func (*Trds) SelPipLss

func (x *Trds) SelPipLss(v flt.Flt) (r *Trds)

func (*Trds) SelPipNeq

func (x *Trds) SelPipNeq(v flt.Flt) (r *Trds)

func (*Trds) SelPipSplt

func (x *Trds) SelPipSplt(v flt.Flt) (btm, top *Trds)

func (*Trds) SelPnlGrsUsdEql

func (x *Trds) SelPnlGrsUsdEql(v flt.Flt) (r *Trds)

func (*Trds) SelPnlGrsUsdGeq

func (x *Trds) SelPnlGrsUsdGeq(v flt.Flt) (r *Trds)

func (*Trds) SelPnlGrsUsdGtr

func (x *Trds) SelPnlGrsUsdGtr(v flt.Flt) (r *Trds)

func (*Trds) SelPnlGrsUsdLeq

func (x *Trds) SelPnlGrsUsdLeq(v flt.Flt) (r *Trds)

func (*Trds) SelPnlGrsUsdLss

func (x *Trds) SelPnlGrsUsdLss(v flt.Flt) (r *Trds)

func (*Trds) SelPnlGrsUsdNeq

func (x *Trds) SelPnlGrsUsdNeq(v flt.Flt) (r *Trds)

func (*Trds) SelPnlGrsUsdSplt

func (x *Trds) SelPnlGrsUsdSplt(v flt.Flt) (btm, top *Trds)

func (*Trds) SelPnlPctEql

func (x *Trds) SelPnlPctEql(v flt.Flt) (r *Trds)

func (*Trds) SelPnlPctGeq

func (x *Trds) SelPnlPctGeq(v flt.Flt) (r *Trds)

func (*Trds) SelPnlPctGtr

func (x *Trds) SelPnlPctGtr(v flt.Flt) (r *Trds)

func (*Trds) SelPnlPctLeq

func (x *Trds) SelPnlPctLeq(v flt.Flt) (r *Trds)

func (*Trds) SelPnlPctLss

func (x *Trds) SelPnlPctLss(v flt.Flt) (r *Trds)

func (*Trds) SelPnlPctNeq

func (x *Trds) SelPnlPctNeq(v flt.Flt) (r *Trds)

func (*Trds) SelPnlPctPredictEql

func (x *Trds) SelPnlPctPredictEql(v flt.Flt) (r *Trds)

func (*Trds) SelPnlPctPredictGeq

func (x *Trds) SelPnlPctPredictGeq(v flt.Flt) (r *Trds)

func (*Trds) SelPnlPctPredictGtr

func (x *Trds) SelPnlPctPredictGtr(v flt.Flt) (r *Trds)

func (*Trds) SelPnlPctPredictLeq

func (x *Trds) SelPnlPctPredictLeq(v flt.Flt) (r *Trds)

func (*Trds) SelPnlPctPredictLss

func (x *Trds) SelPnlPctPredictLss(v flt.Flt) (r *Trds)

func (*Trds) SelPnlPctPredictNeq

func (x *Trds) SelPnlPctPredictNeq(v flt.Flt) (r *Trds)

func (*Trds) SelPnlPctPredictSplt

func (x *Trds) SelPnlPctPredictSplt(v flt.Flt) (btm, top *Trds)

func (*Trds) SelPnlPctSplt

func (x *Trds) SelPnlPctSplt(v flt.Flt) (btm, top *Trds)

func (*Trds) SelPnlUsdEql

func (x *Trds) SelPnlUsdEql(v flt.Flt) (r *Trds)

func (*Trds) SelPnlUsdGeq

func (x *Trds) SelPnlUsdGeq(v flt.Flt) (r *Trds)

func (*Trds) SelPnlUsdGtr

func (x *Trds) SelPnlUsdGtr(v flt.Flt) (r *Trds)

func (*Trds) SelPnlUsdLeq

func (x *Trds) SelPnlUsdLeq(v flt.Flt) (r *Trds)

func (*Trds) SelPnlUsdLss

func (x *Trds) SelPnlUsdLss(v flt.Flt) (r *Trds)

func (*Trds) SelPnlUsdNeq

func (x *Trds) SelPnlUsdNeq(v flt.Flt) (r *Trds)

func (*Trds) SelPnlUsdSplt

func (x *Trds) SelPnlUsdSplt(v flt.Flt) (btm, top *Trds)

func (*Trds) SelTrdPctEql

func (x *Trds) SelTrdPctEql(v flt.Flt) (r *Trds)

func (*Trds) SelTrdPctGeq

func (x *Trds) SelTrdPctGeq(v flt.Flt) (r *Trds)

func (*Trds) SelTrdPctGtr

func (x *Trds) SelTrdPctGtr(v flt.Flt) (r *Trds)

func (*Trds) SelTrdPctLeq

func (x *Trds) SelTrdPctLeq(v flt.Flt) (r *Trds)

func (*Trds) SelTrdPctLss

func (x *Trds) SelTrdPctLss(v flt.Flt) (r *Trds)

func (*Trds) SelTrdPctNeq

func (x *Trds) SelTrdPctNeq(v flt.Flt) (r *Trds)

func (*Trds) SelTrdPctSplt

func (x *Trds) SelTrdPctSplt(v flt.Flt) (btm, top *Trds)

func (*Trds) SelUnitsEql

func (x *Trds) SelUnitsEql(v flt.Flt) (r *Trds)

func (*Trds) SelUnitsGeq

func (x *Trds) SelUnitsGeq(v flt.Flt) (r *Trds)

func (*Trds) SelUnitsGtr

func (x *Trds) SelUnitsGtr(v flt.Flt) (r *Trds)

func (*Trds) SelUnitsLeq

func (x *Trds) SelUnitsLeq(v flt.Flt) (r *Trds)

func (*Trds) SelUnitsLss

func (x *Trds) SelUnitsLss(v flt.Flt) (r *Trds)

func (*Trds) SelUnitsNeq

func (x *Trds) SelUnitsNeq(v flt.Flt) (r *Trds)

func (*Trds) SelUnitsSplt

func (x *Trds) SelUnitsSplt(v flt.Flt) (btm, top *Trds)

func (*Trds) StrWrt

func (x *Trds) StrWrt(b *strings.Builder)

func (*Trds) String

func (x *Trds) String() string

func (*Trds) To

func (x *Trds) To(lim unt.Unt) *Trds

func (*Trds) TrdPcts

func (x *Trds) TrdPcts() (r *flts.Flts)

func (*Trds) Unitss

func (x *Trds) Unitss() (r *flts.Flts)

func (*Trds) Upd

func (x *Trds) Upd(idx unt.Unt, elm *Trd) *Trds

type TrdsScp

type TrdsScp struct {
	Idx uint32
	Arr []*Trds
}

type Tx

type Tx interface {
	Ret() []sys.Act
	Tier() int
	DecTier()
}

Directories

Path Synopsis
hst
vis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL