Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
JKorf committed Apr 6, 2024
1 parent 223d5de commit cc55241
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ The library is targeting both `.NET Standard 2.0` and `.NET Standard 2.1` for op
```csharp
// Get the ETH/USDT ticker via rest request
var restClient = new CoinExRestClient();
var tickerResult = await restClient.SpotApi.ExchangeData.GetTickerAsync("ETHUSDT");
var tickerResult = await restClient.SpotApiV2.ExchangeData.GetTickerAsync(new [] { "ETHUSDT" });
var lastPrice = tickerResult.Data.Ticker.LastPrice;
```

Expand All @@ -37,9 +37,9 @@ var lastPrice = tickerResult.Data.Ticker.LastPrice;
```csharp
// Subscribe to ETH/USDT ticker updates via the websocket API
var socketClient = new CoinExSocketClient();
var tickerSubscriptionResult = socketClient.SpotApi.SubscribeToTickerUpdatesAsync("ETHUSDT", (update) =>
var tickerSubscriptionResult = socketClient.SpotApiV2.SubscribeToTickerUpdatesAsync(new [] { "ETHUSDT" }, (update) =>
{
var lastPrice = update.Data.LastPrice;
var lastPrice = update.Data.First().LastPrice;
});
```

Expand Down

0 comments on commit cc55241

Please sign in to comment.