diff --git a/CoinbasePro.Specs/WebSocket/WebSocketSpecs.cs b/CoinbasePro.Specs/WebSocket/WebSocketSpecs.cs index dba2bad1..e710fcb8 100644 --- a/CoinbasePro.Specs/WebSocket/WebSocketSpecs.cs +++ b/CoinbasePro.Specs/WebSocket/WebSocketSpecs.cs @@ -68,6 +68,20 @@ class when_calling_start_and_not_providing_product_types exception.ShouldBeOfExactType(); } + class when_calling_stop + { + class before_calling_start + { + Because of = () => + Subject.Stop(); + + It should_not_have_attempted_to_close_the_feed = () => + The(). + WasNotToldTo(p => + p.Close()); + } + } + class when_setting_the_auto_send_ping_interval { class when_the_websocket_closes_and_restarts @@ -252,7 +266,6 @@ class when_response_type_is_heartbeat It should_have_invoked_heartbeat_response = () => The(). WasToldTo(p => p.Invoke(Param.IsAny>>(), Param.IsAny(), Param.IsAny>())); - } class when_response_type_is_received diff --git a/CoinbasePro/Services/Products/ProductsService.cs b/CoinbasePro/Services/Products/ProductsService.cs index 089b0edc..35166fc0 100644 --- a/CoinbasePro/Services/Products/ProductsService.cs +++ b/CoinbasePro/Services/Products/ProductsService.cs @@ -95,7 +95,6 @@ public async Task> GetHistoricRatesAsync( if (previousBatchEnd == batchEnd) { break; } - } while (batchStart > start); return candleList; diff --git a/CoinbasePro/Shared/Types/Currency.cs b/CoinbasePro/Shared/Types/Currency.cs index 51fac639..44b6b772 100644 --- a/CoinbasePro/Shared/Types/Currency.cs +++ b/CoinbasePro/Shared/Types/Currency.cs @@ -20,6 +20,7 @@ public enum Currency USD, USDC, Unknown, + XLM, XRP, ZEC, ZIL, diff --git a/CoinbasePro/Shared/Types/ProductType.cs b/CoinbasePro/Shared/Types/ProductType.cs index 82f29935..682d15e3 100644 --- a/CoinbasePro/Shared/Types/ProductType.cs +++ b/CoinbasePro/Shared/Types/ProductType.cs @@ -79,6 +79,12 @@ public enum ProductType [EnumMember(Value = "XRP-BTC")] XrpBtc, [EnumMember(Value = "XRP-USD")] - XrpUsd + XrpUsd, + [EnumMember(Value = "XLM-USD")] + XlmUsd, + [EnumMember(Value = "XLM-BTC")] + XlmBtc, + [EnumMember(Value = "XLM-EUR")] + XlmEur } }