# -*- coding: utf8 -*-

# TODO
"""
...
"""

__author__ = "Jan Seda"
__copyright__ = "Copyright (C) Jan Seda"
__credits__ = []
__license__ = ""
__version__ = "0.1"
__maintainer__ = "Jan Seda"
__email__ = ""
__status__ = "Production"

####################################################################################################################
# CONSTANTS                                                                                                         #
####################################################################################################################

# NAMES
BTCE            = "btce"
BITFINEX        = "bitfinex"
BITSTAMP        = "bitstamp"
KRAKEN          = "kraken"
OKCOIN          = "okcoin"
BTCC            = "btcc"
BTCCPRO         = "btccpro"
BTCCUSD         = "btccusd"
BITCOINDE       = "bitcoin.de"
BTER            = "bter"
BITTREX         = "bittrex"
POLONIEX        = "poloniex"
CEXIO           = "cexio"


BITKONAN = "bitkonan"
COINFLOOR = "coinfloor"
BITBAY = "bitbay"
EXMO = "exmo"
HITBTC = "hitbtc"
ITBIT = "itbit"
THEROCKTRAIDING = "therocktraiding"
FYBSE = "fybse"
FYBSG = "fybsg"
OKCOINCOM = "okcoincom"
OKCOINCN = "okcoincn"
CAMPBX = "campbx"
HUOBI = "huobi"
LOCALBITCOINS = "localbitcoins"
BTCMARKETS = "btcmarkets"
MERCADOBITCOIN = "mercadobitcoin"
BIT2C = "bit2c"
BITNZ = "bitnz"
BITMARKET = "bitmarket"
LAKEBTC = "lakebtc"

# CURRENCY
BTC="btc"
XBT="xbt"
LTC="ltc"
USD="usd"
EUR="eur"
CNY="cny"
RUR="rur"
BBR="bbr"

SYMBOL = "symbol"
OSYMBOL = "osymbol"
USYMBOL = "usymbol"
STOCK = "stock"
METHOD = "method"

HOSTNAME = "hostname"
REQUEST = "request"
REQUESTS = "requests"
HEADER = "header"
COMPRESSION = "compression"


TIMEOUT = "timeout"
SCHEMA = "schema"

NUMBER_PATTERN = '[+-]?(\d+(\.\d*)?|\.\d+)([eE][+-]?\d+)?'
INTEGER_PATTERN = '[+-]?\d+' # SPACE
POSITIVE_INTEGER_PATTERN = '\d+'

MAPPING = "mapping"

# ENCODING
UTF8 = "utf-8"

# COMPRESION
GZIP = "gzip"
DEFLATE = "deflate"
IDENTITY = "identity"

# HTTP METHOD
GET = "GET"
POST = "POST"

# FUNCTIONS
DEFAULT = "default"
TICKER = "ticker"
TRADES = "trades"
ORDERBOOK = "orderbook"
SYMBOLS = "symbols"


TRADE = "trade"
ORDER = "order"
ORDERS = "orders"


# PATTERNS
SYMBOL_PATTERN = "[symbol]"
CURRENCY_PATTERN = "[currency]"
PERIOD_PATTERN = "[period]"
MARKET_PATTERN = "[market]"
CUR1_PATTERN = "[cur1]"
CUR2_PATTERN = "[cur2]"

# NATIONAL DOMAINS
COM = "com"
CN = "cn"

# TICKER
LOW = "low"
HIGH = "high"
ASK = "ask"
BID = "bid"
LAST = "last"
VOLUME24H = "volume24h"
TIMESTAMP = "timestamp"

# TRADE
TID = "tid"
PRICE = "price"
AMOUNT = "amount"
TYPE = "type"
# TIMESTAMP = "timestamp"

# ORDERS
# TODO
# pouziva se ?
ASKS = "asks"
BIDS = "bids"
SELL = "sell"
BUY  = "buy"
UNDEFINED = "undefined"

TRADE_TYPE = "trade_type"

BITSTAMP_SYMBOLS = ["btcusd"]
BTCC_SYMBOLS = ["btccny", "ltccny", "ltcbtc"]
OKCOIN_SYMBOLS = ["btc_usd", "ltc_usd", "ltc_cny", "ltc_cny"]

INFO = "info"
TRADABLEASSETPAIRS = "tradableassetpairs"

UNIFICATED = "unificated"

UNIFICATED_TICKER = "unificated_ticker"
UNIFICATED_TRADES = "unificated_trades"
UNIFICATED_TRADE = "unificated_trade"
UNIFICATED_ORDERBOOK = "unificated_orderbook"
UNIFICATED_ORDERS = "unificated_orders"
UNIFICATED_ORDER = "unificated_order"

DELIMITER = "---------------------------------------------------"

class Test:
    TTT = "ttt"
