コード例 #1
0
 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
     });
 }
コード例 #2
0
 public async Task AddOrEditAccountGroupAsync(AccountGroupRecord model)
 {
     await Api.ApiBackofficeAccountGroupsAddPostAsync(_settings.ApiKey, model.ConvertToDomain());
 }