Exemple #1
0
    async def main():
        async with aiomoex.ISSClientSession():
            data = await aiomoex.get_amortizations(engine=engine,
                                                   market=market,
                                                   security=security)
            df = pd.DataFrame(data)

        return df
Exemple #2
0
 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
Exemple #3
0
    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
Exemple #4
0
 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
Exemple #5
0
    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
Exemple #6
0
 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
Exemple #7
0
 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
Exemple #8
0
 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