async def main(): async with aiomoex.ISSClientSession(): data = await aiomoex.get_amortizations(engine=engine, market=market, security=security) df = pd.DataFrame(data) return df
async def main(): async with aiomoex.ISSClientSession(): data = await aiomoex.get_reference(placeholder=placeholder) df = pd.DataFrame(data) # df.set_index('id', inplace=True) # df2=df[(df.is_traded==1)] # with pd.option_context('display.max_rows', None, 'display.max_columns', None): # print(df2[['board_title','boardid','is_traded']], '\n') return df
async def main(): async with aiomoex.ISSClientSession(): data = await aiomoex.bond_cash_flows(engine=engine, market=market, security=security) ret_data = {} for ind, item in data.items(): ret_data[ind] = pd.DataFrame(item) return ret_data
async def main(): async with aiomoex.ISSClientSession(): data = await aiomoex.get_board_securities(board=board, engine=engine, market=market, columns=columns) df = pd.DataFrame(data) # print(df.head(), '\n') # print(df.tail(), '\n') # df.info() return df
async def main(): async with aiomoex.ISSClientSession(): data = await aiomoex.get_board_history_all(engine=engine, market=market, board=board, date=date) ret_data = {} for ind, item in data.items(): ret_data[ind] = pd.DataFrame(item) return ret_data
async def main(): async with aiomoex.ISSClientSession(): data = await aiomoex.get_board_candles(security=security, start=start, end=end, board=board, engine=engine, market=market) df = pd.DataFrame(data) # print(df.head(), '\n') # print(df.tail(), '\n') # df.info() return df
async def main(): async with aiomoex.ISSClientSession(): data = await aiomoex.get_market_history(security=security, start=start, end=end, engine=engine, market=market, columns=columns) df = pd.DataFrame(data) # print(df.head(), '\n') # print(df.tail(), '\n') # df.info() return df
async def main(): async with aiomoex.ISSClientSession(): data = await aiomoex.get_board_history(security=security, start=start, end=end, board=board, engine=engine, market=market, columns=columns) df = pd.DataFrame(data) # df.set_index('TRADEDATE', inplace=True) # print(df.head(), '\n') # print(df.tail(), '\n') # df.info() return df