risk_manager.go 415 B

12345678910111213141516
  1. package sentio
  2. type RiskManager interface {
  3. StopLoss(symbol string, current float64, safe bool) float64
  4. TakeProfit(symbol string, current float64, safe bool) float64
  5. GetBalance() (float64, float64)
  6. GetPnL() (float64, float64)
  7. GetWinStreak() uint
  8. GetLoseStreak() uint
  9. GetProfitRate() float64
  10. GetOrderSize(symbol string, bid float64) (float64, float64)
  11. UpdatePositions() error
  12. ResetState(streaks bool)
  13. }