Skip to content

Commit 2f6e293

Browse files
authored
Binance Jersey: added exchange support (#499)
- found another Binance...
1 parent da19b66 commit 2f6e293

File tree

3 files changed

+29
-1
lines changed

3 files changed

+29
-1
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ The following cryptocurrency exchanges are supported:
2222
|Exchange Name |Public REST|Private REST |Web Socket | Notes
2323
| ---------------- | --------- | ----------- | --------- | ---------
2424
| Binance | x | x | T R B |
25+
| Binance Jersey | x | x | T R B |
2526
| Binance.US | x | x | T R B |
2627
| Binance DEX | | | R |
2728
| Bitbank | x | x | |
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
/*
2+
MIT LICENSE
3+
4+
Copyright 2017 Digital Ruby, LLC - http://www.digitalruby.com
5+
6+
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
7+
8+
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
9+
10+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
11+
*/
12+
13+
using ExchangeSharp.BinanceGroup;
14+
15+
namespace ExchangeSharp
16+
{
17+
public class ExchangeBinanceJerseyAPI : BinanceGroupCommon
18+
{
19+
public override string BaseUrl { get; set; } = "https://api.binance.je/api/v1";
20+
public override string BaseUrlWebSocket { get; set; } = "wss://stream.binance.je:9443";
21+
public override string BaseUrlPrivate { get; set; } = "https://api.binance.je/api/v3";
22+
public override string WithdrawalUrlPrivate { get; set; } = "https://api.binance.je/wapi/v3";
23+
public override string BaseWebUrl { get; set; } = "https://www.binance.je";
24+
}
25+
26+
public partial class ExchangeName { public const string BinanceJersey = "BinanceJersey"; }
27+
}

tests/ExchangeSharpTests/ExchangeTests.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ public async Task GlobalSymbolTest()
7979
{
8080
if (api is ExchangeUfoDexAPI || api is ExchangeOKExAPI || api is ExchangeHitBTCAPI || api is ExchangeKuCoinAPI ||
8181
api is ExchangeOKCoinAPI || api is ExchangeDigifinexAPI || api is ExchangeNDAXAPI || api is ExchangeBL3PAPI ||
82-
api is ExchangeBinanceUSAPI || api is ExchangeBinanceDEXAPI || api is ExchangeBitMEXAPI)
82+
api is ExchangeBinanceUSAPI || api is ExchangeBinanceJerseyAPI || api is ExchangeBinanceDEXAPI || api is ExchangeBitMEXAPI)
8383
{
8484
// WIP
8585
continue;

0 commit comments

Comments
 (0)