<commit_before>'use strict';

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

const Exchange = require ('./base/Exchange');
const { ExchangeError, AuthenticationError } = require ('./base/errors');

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

module.exports = class bitforex extends Exchange {
    describe () {
        return this.deepExtend (super.describe (), {
            'id': 'bitforex',
            'name': 'Bitforex',
            'countries': [ 'CN' ],
            'version': '1',
            'has': {
                'fetchBalance': true,
                'fetchMarkets': true,
                'createOrder': true,
                'cancelOrder': true,
                'fetchTicker': true,
                'fetchTickers': false,
                'fetchTrades': true,
                'fetchOrder': true,
                'fetchOrders': true,
                'fetchOpenOrders': true,
            },
            'urls': {
                'logo': 'https://user-images.githubusercontent.com/1249087/43923293-57f06258-9bef-11e8-8630-53bd65111998.png',
                'api': 'https://api.bitforex.com',  
                'www': 'https://www.bitforex.com',
                'doc': 'https://github.com/bitforexapi/API_Docs/wiki',
                'fees': 'https://help.bitforex.com/en_us/?cat=13',
                'referral': '',
            },
            'api': {
                'public': {
                    'get': [
                        'api/v1/market/symbols',
                        'api/v1/market/ticker',
                        'api/v1/market/depth',
                        'api/v1/market/trades',
                        'api/v1/market/kline',
                    ],
                },
                'private': {
                    'post': [
                        'api/v1/fund/mainAccount',
                        'api/v1/fund/allAccount',
                        'api/v1/trade/placeOrder',
                        'api/v1/trade/cancelOrder',
                        'api/v1/trade/orderInfo',
                        'api/v1/trade/orderInfos',
                    ],
                },
            },
            'fees': {
            },
        });<commit_msg>Add fees.<commit_after>'use strict';

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

const Exchange = require ('./base/Exchange');
const { ExchangeError, AuthenticationError } = require ('./base/errors');

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

module.exports = class bitforex extends Exchange {
    describe () {
        return this.deepExtend (super.describe (), {
            'id': 'bitforex',
            'name': 'Bitforex',
            'countries': [ 'CN' ],
            'version': '1',
            'has': {
                'fetchBalance': true,
                'fetchMarkets': true,
                'createOrder': true,
                'cancelOrder': true,
                'fetchTicker': true,
                'fetchTickers': false,
                'fetchTrades': true,
                'fetchOrder': true,
                'fetchOrders': true,
                'fetchOpenOrders': true,
            },
            'urls': {
                'logo': 'https://user-images.githubusercontent.com/1249087/43923293-57f06258-9bef-11e8-8630-53bd65111998.png',
                'api': 'https://api.bitforex.com',  
                'www': 'https://www.bitforex.com',
                'doc': 'https://github.com/bitforexapi/API_Docs/wiki',
                'fees': 'https://help.bitforex.com/en_us/?cat=13',
                'referral': '',
            },
            'api': {
                'public': {
                    'get': [
                        'api/v1/market/symbols',
                        'api/v1/market/ticker',
                        'api/v1/market/depth',
                        'api/v1/market/trades',
                        'api/v1/market/kline',
                    ],
                },
                'private': {
                    'post': [
                        'api/v1/fund/mainAccount',
                        'api/v1/fund/allAccount',
                        'api/v1/trade/placeOrder',
                        'api/v1/trade/cancelOrder',
                        'api/v1/trade/orderInfo',
                        'api/v1/trade/orderInfos',
                    ],
                },
            },
            'fees': {
                'trading': {
                    'tierBased': false,
                    'percentage': true,
                    'maker': 0.0,
                    'taker': 0.05 / 100,
                },
                'funding': {
                    'tierBased': false,
                    'percentage': true,
                    'deposit': {}, 
                    'withdraw': {
                        'BTC':0.0005,
                        'ETH':0.01,
                        'BCH':0.0001,
                        'LTC':0.001,
                        'ETC':0.005,
                        'USDT':5,
                        'CMCT':30,
                        'AION':3,
                        'LVT':0,
                        'DATA':40,
                        'RHP':50,
                        'NEO':0,
                        'AIDOC':10,
                        'BQT':2,
                        'R':2,
                        'DPY':0.8,
                        'GTC':40,
                        'AGI':30,
                        'DENT':100,
                        'SAN':1,
                        'SPANK':8,
                        'AID':5,
                        'OMG':0.1,
                        'BFT':5,
                        'SHOW':150,
                        'TRX':20,
                        'ABYSS':10,
                        'THM':25,
                        'ZIL':20,
                        'PPT':0.2,
                        'WTC':0.4,
                        'LRC':7,
                        'BNT':1,
                        'CTXC':1,
                        'MITH':20,
                        'TRUE':4,
                        'LYM':10,
                        'VEE':100,
                        'AUTO':200,
                        'REN':50,
                        'TIO':2.5,
                        'NGC':1.5,
                        'PST':10,
                        'CRE':200,
                        'IPC':5,
                        'PTT':1000,
                        'XMCT':20,
                        'ATMI':40,
                        'TERN':40,
                        'XLM':0.01,
                        'ODE':15,
                        'FTM':100,
                        'RTE':100,
                        'DCC':100,
                        'IMT':500,
                        'GOT':3,
                        'EGT':500,
                        'DACC':1000,
                        'UBEX':500,
                        'ABL':100,
                        'OLT':100,
                        'DAV':40,
                        'THRT':10,
                        'RMESH':3,
                        'UPP':20,
                        'SDT':0,
                        'SHR':10,
                        'MTV':3,
                        'ESS':100,
                        'MET':3,
                        'TTC':20,
                        'LXT':10,
                        'XCLP':100,
                        'LUK':100,
                        'UBC':100,
                        'DTX':10,
                        'BEAT':20,
                        'DEED':2,
                        'BGX':3000,
                        'PRL':20,
                        'ELY':50,
                        'CARD':300,
                        'SQR':15,
                        'VRA':400,
                        'BWX':3500,
                        'MAS':75,
                        'FLP':0.6,
                        'UNC':300,
                        'CRNC':15,
                        'MFG':70,
                        'ZXC':70,
                        'TRT':30,
                        'ZIX':35,
                        'XRA':10,
                        'AMO':1600,
                        'IPG':3,
                        'uDoo':50,
                        'URB':30,
                        'ARCONA':3,
                        'CRAD':5,
                        'NOBS':1000,
                        'ADF':2,
                        'ELF':5,
                        'LX':20,
                        'PATH':15,
                        'SILK':120,
                        'SKYFT':50,
                        'EDN':50,
                        'ADE':50,
                        'EDR':10,
                        'TIME':0.25,
                        'SPRK':20,
                        'QTUM':0.01,
                        'BF':5,
                        'ZPR':100,
                        'HYB':10,
                        'CAN':30,
                        'CEL':10,
                        'ATS':50,
                        'KCASH':1,
                        'ACT':0.01,
                        'MT':300,
                        'DXT':30,
                        'WAB':4000,
                        'HYDRO':400,
                        'LQD':5,
                        'OPTC':200,
                        'EQUAD':80,
                        'LATX':50,
                        'LEDU':100,
                        'RIT':70,
                        'ACDC':500,
                        'FSN':2,
                    }, 
                },
            },
        });
{'fraction_non_alphanumeric': 0.157960981749528, 'fraction_numerical': 0.042794210195091255, 'mean_word_length': 0.5971524288107203, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 10, 'lorem ipsum': 0, 'www.': 4, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2303613', 'n_tokens_mistral': 2761, 'n_tokens_neox': 2321, 'n_words': 307}