package livetrading

import (
	"git.toki-labs.com/toki/alt/packages/domain/market"
	"git.toki-labs.com/toki/alt/packages/domain/trading"
)

// DefaultRiskPolicy returns the worker's conservative default live risk policy.
// These values limit accidental large orders; operators can adjust them at
// runtime via Service.SetRiskPolicy without restarting the worker.
func DefaultRiskPolicy() trading.RiskPolicy {
	return trading.RiskPolicy{
		MaxOrderNotionalByCurrency: map[market.Currency]market.Decimal{
			market.CurrencyKRW: {Value: "1000000"},
			market.CurrencyUSD: {Value: "1000"},
		},
		MaxDailyOrders:    5,
		MaxOpenOrders:     3,
		AllowShortSelling: false,
	}
}
