mirror of
https://github.com/wassname/options_backtester.git
synced 2026-07-27 11:25:03 +08:00
13 lines
288 B
Python
13 lines
288 B
Python
# Option Enum types
|
|
from enum import Enum
|
|
|
|
Type = Enum("Type", {"CALL": "call", "PUT": "put"})
|
|
Direction = Enum("Direction", {"BUY": "ask", "SELL": "bid"})
|
|
|
|
# Orders:
|
|
# BTO: Buy to Open
|
|
# BTC: Buy to Close
|
|
# STO: Sell to Open
|
|
# STC: Sell to Close
|
|
Order = Enum("Order", "BTO BTC STO STC")
|