Skip to content

Commit 90d116b

Browse files
Coinbase API V2/V3 Updates (#818)
* Converted CoinbaseAPI to V3 * Fixed formating. Removed Debug * Update PlaceOrder - not fully tested. * Updated * Completed Trades WebSocket * Removed unused Code for CoinbaseAPI, Removed unneeded parsing from ExchangeAPIExtensions * Final WebSockets Updated * Revert "Final WebSockets Updated" This reverts commit f7a8889. * Final CoinbaseAPI changes. Completed OrderParsing Fully Test PlaceOrder Additional Error Checking on WebSockets Removed Unused functions Separated constants into second file - creating partial class General Code Cleanup * Fixed Socket URL on Connect to new format
1 parent 975dd93 commit 90d116b

File tree

15 files changed

+722
-1787
lines changed

15 files changed

+722
-1787
lines changed

src/ExchangeSharp/API/Exchanges/Coinbase/ExchangeCoinbaseAPI.cs

Lines changed: 687 additions & 1148 deletions
Large diffs are not rendered by default.
Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
namespace ExchangeSharp
2+
{
3+
public sealed partial class ExchangeCoinbaseAPI
4+
{
5+
private const string ADVFILL = "advanced_trade_fill";
6+
private const string AMOUNT = "amount";
7+
private const string ASKS = "asks";
8+
private const string BIDS = "bids";
9+
private const string BUY = "BUY";
10+
private const string CURRENCY = "currency";
11+
private const string CURSOR = "cursor";
12+
private const string EVENTS = "events";
13+
private const string LEVEL2 = "level2";
14+
private const string MARKETTRADES = "market_trades";
15+
private const string ORDERID = "order_id";
16+
private const string ORDERS = "orders";
17+
private const string PRICE = "price";
18+
private const string PRICEBOOK = "pricebook";
19+
private const string PRICEBOOKS = "pricebooks";
20+
private const string PRICELEVEL = "price_level";
21+
private const string PRODUCTID = "product_id";
22+
private const string PRODUCTS = "products";
23+
private const string SIDE = "side";
24+
private const string SIZE = "size";
25+
private const string STATUS = "status";
26+
private const string SUBSCRIBE = "subscribe";
27+
private const string TICKER = "ticker";
28+
private const string TIME = "time";
29+
private const string TRADEID = "trade_id";
30+
private const string TRADES = "trades";
31+
private const string TYPE = "type";
32+
private const string VALUE = "value";
33+
}
34+
}

src/ExchangeSharp/API/Exchanges/Coinbase/Models/CoinbaseTrade.cs

Lines changed: 0 additions & 31 deletions
This file was deleted.

src/ExchangeSharp/API/Exchanges/Coinbase/Models/Request/Channel.cs

Lines changed: 0 additions & 31 deletions
This file was deleted.

src/ExchangeSharp/API/Exchanges/Coinbase/Models/Request/ChannelAction.cs

Lines changed: 0 additions & 29 deletions
This file was deleted.

src/ExchangeSharp/API/Exchanges/Coinbase/Models/Response/Level2.cs

Lines changed: 0 additions & 29 deletions
This file was deleted.

0 commit comments

Comments
 (0)