Exchange refactoring

This commit is contained in:
xsmile
2017-10-06 12:22:04 +02:00
parent 11f97ccf87
commit b9eb266236
13 changed files with 350 additions and 174 deletions

View File

@@ -41,7 +41,7 @@ class Trade(Base):
__tablename__ = 'trades'
id = Column(Integer, primary_key=True)
exchange = Column(Enum(exchange.Exchange), nullable=False)
exchange = Column(String, nullable=False)
pair = Column(String, nullable=False)
is_open = Column(Boolean, nullable=False, default=True)
open_rate = Column(Float, nullable=False)