Connectors/Coinbase/README.md
This folder contains the Coinbase connector for the StockSharp platform. The implementation provides both market data and transactional access to the Coinbase Advanced Trade API. It can be used as a reference for creating your own connectors or as a ready‑to‑use adapter in your trading application.
CoinbaseMessageAdapter and assign your credentials:var adapter = new CoinbaseMessageAdapter(new IncrementalIdGenerator())
{
Key = "YOUR_KEY".ToSecureString(),
Secret = "YOUR_SECRET".ToSecureString(),
Passphrase = "YOUR_PASSPHRASE".ToSecureString()
};
Connector or other S# component and connect as usual.Market data subscriptions and order commands are handled through the standard S# message model. Live candle updates are available for the 5‑minute timeframe, other periods are built from ticks.
The adapter relies on two helper classes:
HttpClient for REST requests (base URL https://api.coinbase.com/api).SocketClient for websocket streaming (wss://advanced-trade-ws.coinbase.com).Message authentication is done through Authenticator, which signs requests using your secret key.
The adapter is associated with the trading board code CNBS.
For more information see the Coinbase connector documentation.