Skip to content

Commit

Permalink
#6: trail for Futures class
Browse files Browse the repository at this point in the history
(must add default columns next)
  • Loading branch information
epogrebnyak committed Jun 2, 2022
1 parent 460d15a commit d9e99a6
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions forts.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
#%%
from finec.moex import Market, whoami, find, Board, Security, default, ClassList

#%%
find("Si-6.22")

#%%
whoami("SiM2")

#%%
Market(engine="futures", market="forts").traded_boards()

#%%
b = Board(engine="futures", market="forts", board="RFUD")

# %%
from dataclasses import dataclass


@dataclass
class Futures(Security):
ticker: str
board: str = "RFUD"
engine: str = default("futures")
market: str = default("forts")
default_columns: ClassList = []


#%%
Futures("SiM2").get_history().dropna()

0 comments on commit d9e99a6

Please sign in to comment.