risk_manager.go 348 B

12345678910111213
  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. GetProfitRate() float64
  9. GetOrderSize(symbol string, bid float64) float64
  10. }