Skip to content

Instantly share code, notes, and snippets.

import abc
class TradeDetails(metaclass=abc.ABCMeta):
def __init__(self, start_price: float, symbol: str, amount: float, currency: str = "USD"):
self.start_price = start_price
self.symbol = symbol.upper()
self.amount = amount
self.currency = currency