Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
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
Prev Previous commit
test: updating tests to match new return
  • Loading branch information
O-Mutt committed Mar 15, 2025
commit 7bd8822684608ee2a183deb277ca387f7274cc3f
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ The following cryptocurrency services are supported:

Exchange constructors are private, to get access to an exchange in code use:

`ExchangeAPI.GetExchangeAPIAsync<>()`.
`ExchangeAPI.GetExchangeAPIAsync<T>()`.

### Installing the CLI

Expand Down
24 changes: 12 additions & 12 deletions tests/ExchangeSharpTests/ExchangeBinanceAPITests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -34,22 +34,22 @@ public void DeserializeDiff()
string toParse =
@"{
""e"": ""depthUpdate"",
""E"": 123456789,
""s"": ""BNBBTC"",
""U"": 157,
""u"": 160,
""b"": [
""E"": 123456789,
""s"": ""BNBBTC"",
""U"": 157,
""u"": 160,
""b"": [
[
""0.0024"",
""0.0024"",
""10"",
[]
[]
]
],
""a"": [
""a"": [
[
""0.0026"",
""100"",
[]
""0.0026"",
""100"",
[]
]
]
}";
Expand Down Expand Up @@ -116,7 +116,7 @@ public async Task CurrenciesParsedCorrectly()
requestMaker
.MakeRequestAsync(
"/capital/config/getall",
((ExchangeBinanceAPI)binance).BaseUrlSApi
binance.BaseUrlSApi
)
.Returns(
new IAPIRequestMaker.RequestResult<string>()
Expand Down
2 changes: 1 addition & 1 deletion tests/ExchangeSharpTests/ExchangeMEXCAPITests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ namespace ExchangeSharpTests;
public class MEXCAPITests
{
private const string MarketSymbol = "ETHBTC";
private static IExchangeAPI _api;
private static ExchangeMEXCAPI _api;

[AssemblyInitialize]
public static async Task AssemblyInitialize(TestContext testContext)
Expand Down