public static MarginTradingAccountGroup ConvertToDomain(this AccountGroupRecord group) { return(new MarginTradingAccountGroup { BaseAssetId = group.BaseAssetId, MarginCall = group.MarginCall, StopOut = group.StopOut, TradingConditionId = group.TradingConditionId, DepositTransferLimit = group.DepositTransferLimit }); }
public async Task AddOrEditAccountGroupAsync(AccountGroupRecord model) { await Api.ApiBackofficeAccountGroupsAddPostAsync(_settings.ApiKey, model.ConvertToDomain()); }