Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -1145,6 +1145,11 @@ ExchangeWithdrawalRequest withdrawalRequest
payload["addressTag"] = withdrawalRequest.AddressTag;
}

if (!string.IsNullOrWhiteSpace(withdrawalRequest.Network))
{
payload["network"] = withdrawalRequest.Network;
}

JToken response = await MakeJsonRequestAsync<JToken>(
"/capital/withdraw/apply",
BaseUrlSApi,
Expand Down
9 changes: 7 additions & 2 deletions src/ExchangeSharp/Model/ExchangeWithdrawalRequest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,13 @@ public sealed class ExchangeWithdrawalRequest
/// </summary>
public SecureString Code { get; set; }

/// <summary>Returns a <see cref="System.String" /> that represents this instance.</summary>
/// <returns>A <see cref="System.String" /> that represents this instance.</returns>
/// <summary>
/// Network to use for the withdrawal
/// </summary>
public string Network { get; set; }

/// <summary>Returns a <see cref="string" /> that represents this instance.</summary>
/// <returns>A <see cref="string" /> that represents this instance.</returns>
public override string ToString()
{
// 2.75 ETH to 0x1234asdf
Expand Down