Skip to content

Commit fc7ce87

Browse files
committed
Update readme with latest syntax
1 parent 9cf6379 commit fc7ce87

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

README.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,10 @@ The following cryptocurrency services are supported:
5959

6060
- Cryptowatch (partial)
6161

62+
Exchange constructors are private, to get access to an exchange in code use:
63+
64+
`ExchangeAPI.GetExchangeAPI`.
65+
6266
### Installing the CLI
6367

6468
On \*nix systems:
@@ -116,7 +120,7 @@ e.g.
116120
public static async Task Main(string[] args)
117121
{
118122
// create a web socket connection to Binance. Note you can Dispose the socket anytime to shut it down.
119-
using var api = new ExchangeBinanceAPI();
123+
using var api = ExchangeAPI.GetExchangeAPI<ExchangeBinanceAPI>();
120124
// the web socket will handle disconnects and attempt to re-connect automatically.
121125
using var socket = await api.GetTickersWebSocket(tickers =>
122126
{

0 commit comments

Comments
 (0)