Documentation ¶
Index ¶
- func Round(val float64, precision int) float64
- func RoundDown(val float64, precision int) float64
- func RoundUp(val float64, precision int) float64
- type FtxTrade
- func (ft *FtxTrade) ArbEnd(subAcc string, spot string)
- func (ft *FtxTrade) ArbStart(subAcc string, name string)
- func (ft *FtxTrade) BuyCoin(subAcc string, coin string, buyQty float64, sellQty float64, tp float64)
- func (ft *FtxTrade) CheckFuturePosition(client *ftx.FtxClient, future string) (structs.Position, error)
- func (ft *FtxTrade) CheckSpotBalance(client *ftx.FtxClient, subAcc string, spot string) (structs.SubaccountBalance, error)
- func (ft *FtxTrade) GetAtr(coin string) (atr float64, close float64, err error)
- func (ft *FtxTrade) GetOverview(subAcc string) string
- func (ft *FtxTrade) Portfolio(subAcc string)
- func (ft *FtxTrade) PortfolioFTX(subAcc string)
- func (ft *FtxTrade) RunHealthPing()
- func (ft *FtxTrade) RunPositionsCheck()
- func (ft *FtxTrade) TpCoinBull(subAcc string, market string, coin string)
- func (ft *FtxTrade) TradeLevCrypto(msg types.JSONMessageBody, risk float64, side string, sideOpposite string, ...)
- type Item
- type PorftolioItem
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type FtxTrade ¶
type FtxTrade struct {
// contains filtered or unexported fields
}
func New ¶
func New(cfg config.Config, notif notification.Notification, appState state.State) *FtxTrade
func (*FtxTrade) CheckFuturePosition ¶
func (*FtxTrade) CheckSpotBalance ¶
func (*FtxTrade) GetOverview ¶
func (*FtxTrade) PortfolioFTX ¶
signal comes buy with available money
func (*FtxTrade) RunHealthPing ¶
func (ft *FtxTrade) RunHealthPing()
func (*FtxTrade) RunPositionsCheck ¶
func (ft *FtxTrade) RunPositionsCheck()
func (*FtxTrade) TpCoinBull ¶
func (*FtxTrade) TradeLevCrypto ¶
type PorftolioItem ¶
Click to show internal directories.
Click to hide internal directories.