Versions in this module Expand all Collapse all v1 v1.1.0 Dec 5, 2026 Changes in this version + const MMR + const MakerFee + const TakerFee + type Account struct + Fills []Fill + Leverage float64 + Mode string + Orders []Order + Pos *Position + Wallet float64 + func NewAccount(wallet, leverage float64, mode string) *Account + func (a *Account) ExecuteFill(side string, qty, price float64, maker bool) + func (a *Account) LiqPrice() float64 + func (a *Account) ProcessBar(bar Bar, prevClose float64) + type Bar struct + C float64 + H float64 + L float64 + O float64 + type Fill struct + Fee float64 + Kind string + Price float64 + Qty float64 + Side string + type Order struct + ID int + Price float64 + Qty float64 + Side string + Trigger float64 + Type string + type Position struct + Entry float64 + Margin float64 + Qty float64 + SL *float64 + Side string + TP *float64