risk_manager.go 357 B

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