Documentation ¶
Index ¶
- Constants
- func DecimalToFloat64(d decimal.Decimal) float64
- type ClientID
- type PlaceConfig
- type Placer
- func (p *Placer) AccountInfo() error
- func (p *Placer) BalanceAdd(coin string, usdValueDiff decimal.Decimal, coinValueDiff decimal.Decimal)
- func (p *Placer) BalanceSub(coin string, usdValueDiff decimal.Decimal, coinValueDiff decimal.Decimal)
- func (p *Placer) Calc(sb *store.Surebet) chan int64
- func (p *Placer) Close()
- func (p *Placer) ConnectAndSubscribe() error
- func (p *Placer) FindBalance(coin string) *store.BalanceEmb
- func (p *Placer) FindHeal(id int64, withOrders bool) *store.Heal
- func (p *Placer) FindMarket(symbol string) *store.MarketEmb
- func (p *Placer) GetBalances() error
- func (p *Placer) GetMarkets() error
- func (p *Placer) GetOpenBuySell(coin string) (decimal.Decimal, decimal.Decimal)
- func (p *Placer) GetOpenOrders() error
- func (p *Placer) GetOrdersHistory() error
- func (p *Placer) Lock(symbol string) chan int64
- func (p *Placer) PlaceOrder(ctx context.Context, param store.PlaceParamsEmb) (*store.Order, error)
- func (p *Placer) Run() error
- func (p *Placer) SurebetHandler(sb *store.Surebet)
- func (p *Placer) Unlock(symbol string)
Constants ¶
View Source
const ( BET = "b" HEAL = "h" )
Variables ¶
This section is empty.
Functions ¶
func DecimalToFloat64 ¶
Types ¶
type PlaceConfig ¶
type PlaceConfig struct { MaxStake decimal.Decimal TargetProfit decimal.Decimal TargetAmount decimal.Decimal ReferralRate decimal.Decimal BinFtxVolumeRatio decimal.Decimal ProfitDiffRatio decimal.Decimal AvgPriceDiffRatio decimal.Decimal ProfitIncRatio decimal.Decimal MinVolume decimal.Decimal RehealThreshold decimal.Decimal SizeRatioMultiplayer decimal.Decimal }
type Placer ¶
type Placer struct {
// contains filtered or unexported fields
}
func (*Placer) AccountInfo ¶
func (*Placer) BalanceAdd ¶
func (*Placer) BalanceSub ¶
func (*Placer) ConnectAndSubscribe ¶
func (*Placer) FindBalance ¶
func (p *Placer) FindBalance(coin string) *store.BalanceEmb
func (*Placer) GetBalances ¶
func (*Placer) GetMarkets ¶
func (*Placer) GetOpenBuySell ¶
func (*Placer) GetOpenOrders ¶
func (*Placer) GetOrdersHistory ¶
func (*Placer) PlaceOrder ¶
func (*Placer) SurebetHandler ¶
Source Files ¶
Click to show internal directories.
Click to hide internal directories.