diff --git a/README.md b/README.md index eeb8302..1d75b71 100644 --- a/README.md +++ b/README.md @@ -97,10 +97,10 @@ separate repository so it is contained, as the goal for [Solnet](https://github. ## Dependencies - BlockMountain.TradingView v1.0.0 -- Solnet.Serum v6.0.8 -- Solnet.Wallet v6.0.8 -- Solnet.Rpc v6.0.8 -- Solnet.Programs v6.0.8 +- Solnet.Serum v6.0.12 +- Solnet.Wallet v6.0.12 +- Solnet.Rpc v6.0.12 +- Solnet.Programs v6.0.12 ## Examples diff --git a/SharedBuildProperties.props b/SharedBuildProperties.props index adb272a..a32f6d0 100644 --- a/SharedBuildProperties.props +++ b/SharedBuildProperties.props @@ -2,7 +2,7 @@ xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> Solnet.Mango - 6.0.8 + 6.0.12 Copyright 2022 © blockmountain blockmountain blockmountain diff --git a/Solnet.Mango.Examples/HistoricalDataExample.cs b/Solnet.Mango.Examples/HistoricalDataExample.cs index 284df6d..95357c2 100644 --- a/Solnet.Mango.Examples/HistoricalDataExample.cs +++ b/Solnet.Mango.Examples/HistoricalDataExample.cs @@ -37,6 +37,9 @@ public HistoricalDataExample() public void Run() { + var now = DateTime.Now; + var ohlcv = _mangoHistoricalDataService.GetHistory(now.Subtract(TimeSpan.FromDays(30)), now, "SOL-PERP", "1D"); + //var spotStats = _mangoHistoricalDataService.GetMarginLendingStats(); //var perpStats = _mangoHistoricalDataService.GetPerpStats(); diff --git a/Solnet.Mango.Examples/Solnet.Mango.Examples.csproj b/Solnet.Mango.Examples/Solnet.Mango.Examples.csproj index 3cb2624..ce930cc 100644 --- a/Solnet.Mango.Examples/Solnet.Mango.Examples.csproj +++ b/Solnet.Mango.Examples/Solnet.Mango.Examples.csproj @@ -13,12 +13,12 @@ - - - - - - + + + + + + diff --git a/Solnet.Mango.Historical.Test/MangoHistoricalDataServiceTest.cs b/Solnet.Mango.Historical.Test/MangoHistoricalDataServiceTest.cs index 9969d03..11e3043 100644 --- a/Solnet.Mango.Historical.Test/MangoHistoricalDataServiceTest.cs +++ b/Solnet.Mango.Historical.Test/MangoHistoricalDataServiceTest.cs @@ -317,7 +317,7 @@ public void GetVolumeInfoUnsuccessful() public void GetRecentTrades() { string responseData = File.ReadAllText("Resources/RecentTrades.json"); - var url = EventHistoryApiCandlesBaseUrl + "trades/address/2TgaaVoHgnSeEtXvWTx13zQeTf4hYWAMEiMQdcG6EwHi"; + var url = EventHistoryApiCandlesBaseUrl + "tv/trades/address/2TgaaVoHgnSeEtXvWTx13zQeTf4hYWAMEiMQdcG6EwHi"; Mock messageHandlerMock = SetupHttpClientTest(responseData, url); HttpClient httpClient = new(messageHandlerMock.Object) @@ -341,7 +341,7 @@ public void GetRecentTrades() public void GetRecentTradesUnsuccessful() { Mock messageHandlerMock = SetupHttpClientUnsuccessfulTest(); - var url = EventHistoryApiCandlesBaseUrl + "trades/address/2TgaaVoHgnSeEtXvWTx13zQeTf4hYWAMEiMQdcG6EwHi"; + var url = EventHistoryApiCandlesBaseUrl + "tv/trades/address/2TgaaVoHgnSeEtXvWTx13zQeTf4hYWAMEiMQdcG6EwHi"; HttpClient httpClient = new(messageHandlerMock.Object) { diff --git a/Solnet.Mango.Historical/MangoHistoricalDataService.cs b/Solnet.Mango.Historical/MangoHistoricalDataService.cs index 69c8fb2..776bc96 100644 --- a/Solnet.Mango.Historical/MangoHistoricalDataService.cs +++ b/Solnet.Mango.Historical/MangoHistoricalDataService.cs @@ -35,7 +35,7 @@ public class MangoHistoricalDataService : IMangoHistoricalDataService /// /// The base url for the candlestick data endpoints. /// - private static readonly string EventHistoryApiCandlesBaseUrl = "https://event-history-api-candles.herokuapp.com/"; + private static readonly string EventHistoryApiCandlesBaseUrl = "https://event-history-api-candles.herokuapp.com/tv/"; /// /// The base url for the mango fills service. diff --git a/Solnet.Mango.Test/Solnet.Mango.Test.csproj b/Solnet.Mango.Test/Solnet.Mango.Test.csproj index ea29be6..21d65ff 100644 --- a/Solnet.Mango.Test/Solnet.Mango.Test.csproj +++ b/Solnet.Mango.Test/Solnet.Mango.Test.csproj @@ -18,9 +18,9 @@ runtime; build; native; contentfiles; analyzers; buildtransitive all - - - + + + diff --git a/Solnet.Mango/Solnet.Mango.csproj b/Solnet.Mango/Solnet.Mango.csproj index 4d6d4e3..11eeeb1 100644 --- a/Solnet.Mango/Solnet.Mango.csproj +++ b/Solnet.Mango/Solnet.Mango.csproj @@ -23,10 +23,10 @@ - - - - + + + +