-
-
Notifications
You must be signed in to change notification settings - Fork 372
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
BinanceGroupCommon OnGetCurrenciesAsync fix. ExchangePoloniexAPI ParseOrderTrades handle ExchangeOrderResult.AmountFilled as nullable.
- Loading branch information
Showing
6 changed files
with
176 additions
and
56 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
154 changes: 127 additions & 27 deletions
154
src/ExchangeSharp/API/Exchanges/BinanceGroup/Models/Currency.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,49 +1,149 @@ | ||
using System; | ||
using Newtonsoft.Json; | ||
|
||
namespace ExchangeSharp.BinanceGroup | ||
{ | ||
public class Currency | ||
{ | ||
[JsonProperty("coin")] | ||
public string Coin { get; set; } | ||
[JsonProperty("id")] | ||
public long? Id { get; set; } | ||
|
||
[JsonProperty("depositAllEnable")] | ||
public bool DepositAllEnable { get; set; } | ||
[JsonProperty("assetCode")] | ||
public string AssetCode { get; set; } | ||
|
||
[JsonProperty("free")] | ||
public string Free { get; set; } | ||
[JsonProperty("assetName")] | ||
public string AssetName { get; set; } | ||
|
||
[JsonProperty("freeze")] | ||
public string Freeze { get; set; } | ||
[JsonProperty("unit")] | ||
public string Unit { get; set; } | ||
|
||
[JsonProperty("ipoable")] | ||
public string Ipoable { get; set; } | ||
[JsonProperty("transactionFee")] | ||
public double? TransactionFee { get; set; } | ||
|
||
[JsonProperty("ipoing")] | ||
public string Ipoing { get; set; } | ||
[JsonProperty("commissionRate")] | ||
public long? CommissionRate { get; set; } | ||
|
||
[JsonProperty("freeAuditWithdrawAmt")] | ||
public long? FreeAuditWithdrawAmt { get; set; } | ||
|
||
[JsonProperty("freeUserChargeAmount")] | ||
public long? FreeUserChargeAmount { get; set; } | ||
|
||
[JsonProperty("minProductWithdraw")] | ||
public decimal? MinProductWithdraw { get; set; } | ||
|
||
[JsonProperty("withdrawIntegerMultiple")] | ||
public float? WithdrawIntegerMultiple { get; set; } | ||
|
||
[JsonProperty("confirmTimes")] | ||
public int? ConfirmTimes { get; set; } | ||
|
||
[JsonProperty("chargeLockConfirmTimes")] | ||
public int? ChargeLockConfirmTimes { get; set; } | ||
|
||
[JsonProperty("createTime")] | ||
public object CreateTime { get; set; } | ||
|
||
[JsonProperty("test")] | ||
public long? Test { get; set; } | ||
|
||
[JsonProperty("url")] | ||
public Uri Url { get; set; } | ||
|
||
[JsonProperty("addressUrl")] | ||
public Uri AddressUrl { get; set; } | ||
|
||
[JsonProperty("blockUrl")] | ||
public string BlockUrl { get; set; } | ||
|
||
[JsonProperty("enableCharge")] | ||
public bool? EnableCharge { get; set; } | ||
|
||
[JsonProperty("enableWithdraw")] | ||
public bool? EnableWithdraw { get; set; } | ||
|
||
[JsonProperty("regEx")] | ||
public string RegEx { get; set; } | ||
|
||
[JsonProperty("regExTag")] | ||
public string RegExTag { get; set; } | ||
|
||
[JsonProperty("gas")] | ||
public long? Gas { get; set; } | ||
|
||
[JsonProperty("parentCode")] | ||
public string ParentCode { get; set; } | ||
|
||
[JsonProperty("isLegalMoney")] | ||
public bool IsLegalMoney { get; set; } | ||
public bool? IsLegalMoney { get; set; } | ||
|
||
[JsonProperty("reconciliationAmount")] | ||
public long? ReconciliationAmount { get; set; } | ||
|
||
[JsonProperty("seqNum")] | ||
public long? SeqNum { get; set; } | ||
|
||
[JsonProperty("chineseName")] | ||
public string ChineseName { get; set; } | ||
|
||
[JsonProperty("cnLink")] | ||
public Uri CnLink { get; set; } | ||
|
||
[JsonProperty("enLink")] | ||
public Uri EnLink { get; set; } | ||
|
||
[JsonProperty("logoUrl")] | ||
public string LogoUrl { get; set; } | ||
|
||
[JsonProperty("fullLogoUrl")] | ||
public Uri FullLogoUrl { get; set; } | ||
|
||
[JsonProperty("forceStatus")] | ||
public bool? ForceStatus { get; set; } | ||
|
||
[JsonProperty("resetAddressStatus")] | ||
public bool? ResetAddressStatus { get; set; } | ||
|
||
[JsonProperty("chargeDescCn")] | ||
public object ChargeDescCn { get; set; } | ||
|
||
[JsonProperty("chargeDescEn")] | ||
public object ChargeDescEn { get; set; } | ||
|
||
[JsonProperty("assetLabel")] | ||
public object AssetLabel { get; set; } | ||
|
||
[JsonProperty("sameAddress")] | ||
public bool? SameAddress { get; set; } | ||
|
||
[JsonProperty("depositTipStatus")] | ||
public bool? DepositTipStatus { get; set; } | ||
|
||
[JsonProperty("dynamicFeeStatus")] | ||
public bool? DynamicFeeStatus { get; set; } | ||
|
||
[JsonProperty("depositTipEn")] | ||
public object DepositTipEn { get; set; } | ||
|
||
[JsonProperty("locked")] | ||
public string Locked { get; set; } | ||
[JsonProperty("depositTipCn")] | ||
public object DepositTipCn { get; set; } | ||
|
||
[JsonProperty("name")] | ||
public string Name { get; set; } | ||
[JsonProperty("assetLabelEn")] | ||
public object AssetLabelEn { get; set; } | ||
|
||
[JsonProperty("storage")] | ||
public string Storage { get; set; } | ||
[JsonProperty("supportMarket")] | ||
public object SupportMarket { get; set; } | ||
|
||
[JsonProperty("trading")] | ||
public bool Trading { get; set; } | ||
[JsonProperty("feeReferenceAsset")] | ||
public string FeeReferenceAsset { get; set; } | ||
|
||
[JsonProperty("withdrawAllEnable")] | ||
public bool WithdrawAllEnable { get; set; } | ||
[JsonProperty("feeRate")] | ||
public decimal? FeeRate { get; set; } | ||
|
||
[JsonProperty("withdrawing")] | ||
public string Withdrawing { get; set; } | ||
[JsonProperty("feeDigit")] | ||
public long? FeeDigit { get; set; } | ||
|
||
[JsonProperty("networkList")] | ||
public CurrencyNetwork[] NetworkList { get; set; } | ||
[JsonProperty("legalMoney")] | ||
public bool? LegalMoney { get; set; } | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
namespace ExchangeSharp.Utility | ||
{ | ||
public static class DecimalExtensions | ||
{ | ||
/// <summary> | ||
/// Remove trailing zeros. | ||
/// </summary> | ||
/// <param name="value">The decimal value to normalize.</param> | ||
/// <returns></returns> | ||
public static decimal Normalize(this decimal value) | ||
{ | ||
return value / 1.0000000000000000000000000000m; | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters