Skip to content

Commit

Permalink
added foxbit
Browse files Browse the repository at this point in the history
  • Loading branch information
kroitor committed Jul 9, 2017
1 parent ed0c230 commit 621ba98
Show file tree
Hide file tree
Showing 8 changed files with 117 additions and 12 deletions.
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ Current featurelist:

## Supported Cryptocurrency Exchange Markets

The ccxt library currently supports the following 53 cryptocurrency exchange markets and trading APIs:
The ccxt library currently supports the following 54 cryptocurrency exchange markets and trading APIs:

| | id | name | ver | doc | countries |
|---------------------------------------------------------------------------------------------------------------------|--------------|------------------------------------------------------|:---:|:-------------------------------------------------------------------------------------------:|------------------------------------------------|
Expand Down Expand Up @@ -48,6 +48,7 @@ The ccxt library currently supports the following 53 cryptocurrency exchange mar
|![coinsecure](https://user-images.githubusercontent.com/1294454/27766472-9cbd200a-5ed9-11e7-9551-2267ad7bac08.jpg) | coinsecure | [Coinsecure](https://coinsecure.in) | 1 | [API](https://api.coinsecure.in) | India |
|![dsx](https://user-images.githubusercontent.com/1294454/27990275-1413158a-645a-11e7-931c-94717f7510e3.jpg) | dsx | [DSX](https://dsx.uk) | * | [API](https://api.dsx.uk) | UK |
|![exmo](https://user-images.githubusercontent.com/1294454/27766491-1b0ea956-5eda-11e7-9225-40d67b481b8d.jpg) | exmo | [EXMO](https://exmo.me) | 1 | [API](https://exmo.me/ru/api_doc) | Spain, Russia |
|![foxbit](https://user-images.githubusercontent.com/1294454/27991389-ad80ce38-647d-11e7-8fb2-1663d16e8065.jpg) | foxbit | [FoxBit](https://foxbit.exchange) | 1 | [API](https://blinktrade.com/docs) | Brazil |
|![fybse](https://user-images.githubusercontent.com/1294454/27766512-31019772-5edb-11e7-8241-2e675e6797f1.jpg) | fybse | [FYB-SE](https://www.fybse.se) | * | [API](http://docs.fyb.apiary.io) | Sweden |
|![fybsg](https://user-images.githubusercontent.com/1294454/27766513-3364d56a-5edb-11e7-9e6b-d5898bb89c81.jpg) | fybsg | [FYB-SG](https://www.fybsg.com) | * | [API](http://docs.fyb.apiary.io) | Singapore |
|![gdax](https://user-images.githubusercontent.com/1294454/27766527-b1be41c6-5edb-11e7-95f6-5b496c469e2c.jpg) | gdax | [GDAX](https://www.gdax.com) | * | [API](https://docs.gdax.com) | US |
Expand Down
7 changes: 6 additions & 1 deletion README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ Current featurelist:
Supported Cryptocurrency Exchange Markets
-----------------------------------------

The ccxt library currently supports the following 53 cryptocurrency exchange markets and trading APIs:
The ccxt library currently supports the following 54 cryptocurrency exchange markets and trading APIs:

+---------------------------+-----+-------------+---+----------------------+------------+
| | id | name | v | doc | countries |
Expand Down Expand Up @@ -158,6 +158,11 @@ The ccxt library currently supports the following 53 cryptocurrency exchange mar
| | o | s://exmo.me | | e/ru/api_doc>`__ | Russia |
| | | >`__ | | | |
+---------------------------+-----+-------------+---+----------------------+------------+
| |foxbit| | fox | `FoxBit <ht | 1 | `API <https://blinkt | Brazil |
| | bit | tps://foxbi | | rade.com/docs>`__ | |
| | | t.exchange> | | | |
| | | `__ | | | |
+---------------------------+-----+-------------+---+----------------------+------------+
| |fybse| | fyb | `FYB-SE <ht | \ | `API <http://docs.fy | Sweden |
| | se | tps://www.f | * | b.apiary.io>`__ | |
| | | ybse.se>`__ | | | |
Expand Down
28 changes: 25 additions & 3 deletions ccxt.es5.js

Large diffs are not rendered by default.

26 changes: 24 additions & 2 deletions ccxt.js
Original file line number Diff line number Diff line change
Expand Up @@ -2845,8 +2845,8 @@ var blinktrade = {
url += '?' + this.urlencode (query);
} else {
let nonce = this.nonce ().toString ();
body = this.urlencode (this.extend ({ 'nonce': nonce }, params));
body = JSON.stringify ();
let request = this.extend ({ 'MsgType': path }, query);
body = JSON.stringify (request);
headers = {
'APIKey': this.apiKey,
'Nonce': nonce,
Expand Down Expand Up @@ -5119,6 +5119,27 @@ var exmo = {

//-----------------------------------------------------------------------------

var foxbit = extend (blinktrade, {
'id': 'foxbit',
'name': 'FoxBit',
'countries': 'BR',
'urls': {
'logo': 'https://user-images.githubusercontent.com/1294454/27991389-ad80ce38-647d-11e7-8fb2-1663d16e8065.jpg',
'api': {
'public': 'https://api.blinktrade.com/api',
'private': 'https://api.blinktrade.com/tapi',
},
'www': 'https://foxbit.exchange',
'doc': 'https://blinktrade.com/docs',
},
'comment': 'Blinktrade API',
'products': {
'BTC/BRL': { 'id': 'BTCBRL', 'symbol': 'BTC/BRL', 'base': 'BTC', 'quote': 'BRL', 'brokerId': 4, 'broker': 'FoxBit', },
},
})

//-----------------------------------------------------------------------------

var fyb = {

'rateLimit': 2000,
Expand Down Expand Up @@ -8880,6 +8901,7 @@ var markets = {
'coinsecure': coinsecure,
'dsx': dsx,
'exmo': exmo,
'foxbit': foxbit,
'fybse': fybse,
'fybsg': fybsg,
'gdax': gdax,
Expand Down
31 changes: 29 additions & 2 deletions ccxt.php
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ class Market {
'coinsecure',
'dsx',
'exmo',
'foxbit',
'fybse',
'fybsg',
'gdax',
Expand Down Expand Up @@ -2977,8 +2978,8 @@ public function request ($path, $type = 'public', $method = 'GET', $params = arr
$url .= '?' . $this->urlencode ($query);
} else {
$nonce = (string) $this->nonce ();
$body = $this->urlencode (array_merge (array ( 'nonce' => $nonce ), $params));
$body = json_encode ();
$request = array_merge (array ( 'MsgType' => $path ), $query);
$body = json_encode ($request);
$headers = array (
'APIKey' => $this->apiKey,
'Nonce' => $nonce,
Expand Down Expand Up @@ -5303,6 +5304,32 @@ public function request ($path, $type = 'public', $method = 'GET', $params = arr

//-----------------------------------------------------------------------------

class foxbit extends blinktrade {

public function __construct ($options = array ()) {
parent::__construct (array_merge (array (
'id' => 'foxbit',
'name' => 'FoxBit',
'countries' => 'BR',
'urls' => array (
'logo' => 'https://user-images.githubusercontent.com/1294454/27991389-ad80ce38-647d-11e7-8fb2-1663d16e8065.jpg',
'api' => array (
'public' => 'https://api.blinktrade.com/api',
'private' => 'https://api.blinktrade.com/tapi',
),
'www' => 'https://foxbit.exchange',
'doc' => 'https://blinktrade.com/docs',
),
'comment' => 'Blinktrade API',
'products' => array (
'BTC/BRL' => array ( 'id' => 'BTCBRL', 'symbol' => 'BTC/BRL', 'base' => 'BTC', 'quote' => 'BRL', 'brokerId' => 4, 'broker' => 'FoxBit', ),
),
), $options));
}
}

//-----------------------------------------------------------------------------

class fyb extends Market {

public function __construct ($options = array ()) {
Expand Down
31 changes: 29 additions & 2 deletions ccxt/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@
'coinsecure',
'dsx',
'exmo',
'foxbit',
'fybse',
'fybsg',
'gdax',
Expand Down Expand Up @@ -2817,8 +2818,8 @@ def request (self, path, type = 'public', method = 'GET', params = {}, headers =
url += '?' + _urlencode.urlencode (query)
else:
nonce = str (self.nonce ())
body = _urlencode.urlencode (self.extend ({ 'nonce': nonce }, params))
body = json.dumps ()
request = self.extend ({ 'MsgType': path }, query)
body = json.dumps (request)
headers = {
'APIKey': self.apiKey,
'Nonce': nonce,
Expand Down Expand Up @@ -5002,6 +5003,32 @@ def request (self, path, type = 'public', method = 'GET', params = {}, headers =

#------------------------------------------------------------------------------

class foxbit (blinktrade):

def __init__ (self, config = {}):
params = {
'id': 'foxbit',
'name': 'FoxBit',
'countries': 'BR',
'urls': {
'logo': 'https://user-images.githubusercontent.com/1294454/27991389-ad80ce38-647d-11e7-8fb2-1663d16e8065.jpg',
'api': {
'public': 'https://api.blinktrade.com/api',
'private': 'https://api.blinktrade.com/tapi',
},
'www': 'https://foxbit.exchange',
'doc': 'https://blinktrade.com/docs',
},
'comment': 'Blinktrade API',
'products': {
'BTC/BRL': { 'id': 'BTCBRL', 'symbol': 'BTC/BRL', 'base': 'BTC', 'quote': 'BRL', 'brokerId': 4, 'broker': 'FoxBit', },
},
}
params.update (config)
super (foxbit, self).__init__ (params)

#------------------------------------------------------------------------------

class fyb (Market):

def __init__ (self, config = {}):
Expand Down
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,7 @@
"Bitso",
"Bitstamp",
"Bittrex",
"BlinkTrade",
"BTCC",
"BTCChina",
"BTC-e",
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@
'Environment :: Console'
],

keywords = 'algotrading altcoin altcoins api arbitrage backtesting bitcoin bot btc crypto cryptocurrency currency market darkcoin dash digital doge dogecoin e-commerce eth ether ethereum exchange exchanges framework invest investing investor library light litecoin ltc marketdata merchandise merchant minimal order orderbook book price pricedata pricefeed private public ripple strategy toolkit trade trader trading volume xbt xrp zec zerocoin 1Broker 1BTCXE ANX ANXPro bit2c.co.il Bit2C BitBay BitBays Bitcoin.co.id Bitfinex bitlish BitMarket BitMEX Bitso Bitstamp Bittrex BTCC BTCChina BTC-e BTCe btc-trade.com.ua BTCTradeUA BTCX btc-x bter Bter.com BX.in.th ccex C-CEX cex CEX.IO coincheck CoinMate Coinsecure DSX dsx.uk EXMO FYB-SE FYB-SG GDAX Gemini HitBTC Huobi itBit jubi.com Kraken LiveCoin Liqui liqui.io luno mercado MercadoBitcoin mercadobitcoin.br OKCoin OKCoin.com OKCoin.cn Paymium Poloniex QuadrigaCX QUOINE SouthXchange TheRockTrading Vaultoro VirWoX YoBit Zaif',
keywords = 'algotrading altcoin altcoins api arbitrage backtesting bitcoin bot btc crypto cryptocurrency currency market darkcoin dash digital doge dogecoin e-commerce eth ether ethereum exchange exchanges framework invest investing investor library light litecoin ltc marketdata merchandise merchant minimal order orderbook book price pricedata pricefeed private public ripple strategy toolkit trade trader trading volume xbt xrp zec zerocoin 1Broker 1BTCXE ANX ANXPro bit2c.co.il Bit2C BitBay BitBays Bitcoin.co.id Bitfinex bitlish BitMarket BitMEX Bitso Bitstamp Bittrex BlinkTrade BTCC BTCChina BTC-e BTCe btc-trade.com.ua BTCTradeUA BTCX btc-x bter Bter.com BX.in.th ccex C-CEX cex CEX.IO coincheck CoinMate Coinsecure DSX dsx.uk EXMO FYB-SE FYB-SG GDAX Gemini HitBTC Huobi itBit jubi.com Kraken LiveCoin Liqui liqui.io luno mercado MercadoBitcoin mercadobitcoin.br OKCoin OKCoin.com OKCoin.cn Paymium Poloniex QuadrigaCX QUOINE SouthXchange TheRockTrading Vaultoro VirWoX YoBit Zaif',

packages = find_packages ()
)

0 comments on commit 621ba98

Please sign in to comment.