func (us userStore) LimitTrade(userID string) bool {
	us.m.RLock()
	defer us.m.RUnlock()
	val := us.user[userID]
	if len(val.trades) == 0 {
		return false
	}
	return len(val.trades) == MaxTrade
}
// LimitTrade returns true when the user has reached
// the max amount of trade creation
LimitTrade returns true when the user has reached
the max amount of trade creation
// LimitTrade returns true when the user has reached // the max amount of trade creation
func (us userStore) LimitTrade(userID string) bool {
	us.m.RLock()
	defer us.m.RUnlock()
	val := us.user[userID]
	if len(val.trades) == 0 {
		return false
	}
	return len(val.trades) == MaxTrade
}
func ( us userStore ) LimitTrade ( userID string ) bool { us . m . RLock ( ) defer us . m . RUnlock ( ) val := us . user [ userID ] if len ( val . trades ) == 0 { return false } return len ( val . trades ) == MaxTrade }
LimitTrade returns true when the user has reached
the max amount of trade creation
LimitTrade returns true when the user has reached the max amount of trade creation