2
0

risk_manager.go 428 B

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