aboutsummaryrefslogtreecommitdiff
path: root/server/models/bid.py
diff options
context:
space:
mode:
Diffstat (limited to 'server/models/bid.py')
-rw-r--r--server/models/bid.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/server/models/bid.py b/server/models/bid.py
index e717011..121020d 100644
--- a/server/models/bid.py
+++ b/server/models/bid.py
@@ -2,14 +2,15 @@ from sqlalchemy import Column, Integer, Float, String, DateTime, ForeignKey
from sqlalchemy.orm import relationship
from db import Base
+
class Bid(Base):
__tablename__ = "bids"
id = Column(Integer, primary_key=True, index=True)
timestamp = Column(DateTime, index=True, nullable=False) # Bid target time
quantity = Column(Float, nullable=False) # MWh
- price = Column(Float, nullable=False) # $/MWh
- market = Column(String, nullable=False) # Market name: ISONE / MISO / NYISO for now
+ price = Column(Float, nullable=False) # $/MWh
+ market = Column(String, nullable=False) # Market name: ISONE / MISO / NYISO for now
status = Column(String, default="Submitted") # Submitted / Success / Fail
pnl = Column(Float, nullable=True) # Profit/loss value, nullable initially