# Path: crumpet/profiles/constants.py
# CRYPTO_EXCHANGES = (
#     ("poloniex", _("Poloniex")),
#     ("bittrex", _("Bittrex")),
#     ("bitstamp", _("Bitstamp"))
# )
# EXCHANGE_PERIODS = (
#     (300, "5-min"),
#     (900, "15-min"),
#     (1800, "30-min"),
#     (7200, "2-hr"),
#     (14400, "4-hr"),
#     (86400, "1-day")
# )
# STRATEGIES = (
#     ("To The Moon", "toTheMoon"),
#     ("Strategy 2", "strategy 2"),
# )
# INSTRUMENTS = (
#     ("ETH", _("Ethereum")),
#     ("DGB", _("DigiByte")),
#     ("XRP", _("Ripple")),
#     ("XMR", _("Monero")),
#     ("LTC", _("LiteCoin")),
#     ("LSK", _("LISK")),
#     ("STEEM", _("STEEM"))
# )
# MODES = (
#     ("backtest", _("Backtest")),
#     ("livetest", _("Live Backtest")),
#     ("live", _("Live"))
# )
#     BUY = 0
#     SELL = 1
# ORDER_TYPES = (
#     (OrderType.BUY, 'buy'),
#     (OrderType.SELL, 'sell')
# )
# OPEN, CANCELLED, PROCESSED = 'open', 'cancelled', 'processed'
# ORDER_STATES = (
#     (OPEN, _('open')),
#     (CANCELLED, _('cancelled')),
#     (PROCESSED, _('processed'))
# )
# SMA, EMA, RSI = 'sma', 'ema', 'rsi'
# INDICATORS = (
#     (SMA, _('sma')),
#     (EMA, _('ema')),
#     (RSI, _('rsi'))
# )
# class OrderType(object):


from django.conf import settings
from django.db import models
from django.utils.encoding import python_2_unicode_compatible
from crumpet.profiles import constants



@python_2_unicode_compatible
class UserAccount(models.Model):
    """User profile"""
    user = models.OneToOneField(
        settings.AUTH_USER_MODEL,
        related_name="user_account"
    )
    exchange = models.CharField(
        verbose_name="Crypto Exchanges",
        choices=constants.CRYPTO_EXCHANGES,

# Path: crumpet/profiles/constants.py
# CRYPTO_EXCHANGES = (
#     ("poloniex", _("Poloniex")),
#     ("bittrex", _("Bittrex")),
#     ("bitstamp", _("Bitstamp"))
# )
# EXCHANGE_PERIODS = (
#     (300, "5-min"),
#     (900, "15-min"),
#     (1800, "30-min"),
#     (7200, "2-hr"),
#     (14400, "4-hr"),
#     (86400, "1-day")
# )
# STRATEGIES = (
#     ("To The Moon", "toTheMoon"),
#     ("Strategy 2", "strategy 2"),
# )
# INSTRUMENTS = (
#     ("ETH", _("Ethereum")),
#     ("DGB", _("DigiByte")),
#     ("XRP", _("Ripple")),
#     ("XMR", _("Monero")),
#     ("LTC", _("LiteCoin")),
#     ("LSK", _("LISK")),
#     ("STEEM", _("STEEM"))
# )
# MODES = (
#     ("backtest", _("Backtest")),
#     ("livetest", _("Live Backtest")),
#     ("live", _("Live"))
# )
#     BUY = 0
#     SELL = 1
# ORDER_TYPES = (
#     (OrderType.BUY, 'buy'),
#     (OrderType.SELL, 'sell')
# )
# OPEN, CANCELLED, PROCESSED = 'open', 'cancelled', 'processed'
# ORDER_STATES = (
#     (OPEN, _('open')),
#     (CANCELLED, _('cancelled')),
#     (PROCESSED, _('processed'))
# )
# SMA, EMA, RSI = 'sma', 'ema', 'rsi'
# INDICATORS = (
#     (SMA, _('sma')),
#     (EMA, _('ema')),
#     (RSI, _('rsi'))
# )
# class OrderType(object):


# Path: crumpet/profiles/models.py
from django.conf import settings
from django.db import models
from django.utils.encoding import python_2_unicode_compatible
from crumpet.profiles import constants




@python_2_unicode_compatible
class UserAccount(models.Model):
    """User profile"""
    user = models.OneToOneField(
        settings.AUTH_USER_MODEL,
        related_name="user_account"
    )
    exchange = models.CharField(
        verbose_name="Crypto Exchanges",
        choices=constants.CRYPTO_EXCHANGES,

        default=constants.CRYPTO_EXCHANGES[0][0],