Ejemplo n.º 1
0
 def get_div_for_tab(self):
     children_list = [
         MyHTMLTabTradeHeaderTable().get_table(),
         MyHTML.div_with_dcc_drop_down(
             **self._dd_handler.get_drop_down_parameters(TDD.TRADE_TYPE)),
         MyHTML.div_with_dcc_drop_down(
             **self._dd_handler.get_drop_down_parameters(TDD.BUY_TRIGGER)),
         MyHTML.div_with_dcc_drop_down(
             **self._dd_handler.get_drop_down_parameters(
                 TDD.TRADE_STRATEGY)),
         # MyHTML.div_with_html_button_submit('my_trades_cancel_trade_button', 'Cancel Trade'),
         MyHTML.div_with_button(
             **self._button_handler.get_button_parameters(TBTN.CANCEL_TRADE)
         ),
         MyHTML.div_with_button(**self._button_handler.
                                get_button_parameters(TBTN.RESTART_REPlAY)),
         MyHTML.div_with_button(
             **self._button_handler.get_button_parameters(
                 TBTN.RESET_TRADE_SELECTION)),
         # MyHTML.div_with_html_button_submit('my_replay_restart_button', 'Restart Trade'),
         MyHTML.div_with_slider('my_replay_speed_slider',
                                0,
                                20,
                                1,
                                self._replay_speed,
                                show=False),
         MyHTML.div_with_table('my_trade_table_div',
                               self.__get_table_for_trades__()),
         MyHTML.div('my_graph_trade_replay_div', '', False)
     ]
     # scatter_graph = self.__get_scatter_graph_for_trades__('trade_scatter_graph')
     return MyHTML.div('my_trades', children_list)
 def get_div_for_tab(self):
     children_list = [
         MyHTMLTabPortfolioHeaderTable().get_table(),
         MyHTML.div_with_dcc_drop_down(
             **self._dd_handler.get_drop_down_parameters(
                 PODD.PERIOD_AGGREGATION,
                 default_value=self.sys_config.period_aggregation)),
         MyHTML.div_with_dcc_drop_down(
             **self._dd_handler.get_drop_down_parameters(
                 PODD.REFRESH_INTERVAL, default_value=900)),
         MyHTML.div_with_dcc_drop_down(
             **self._dd_handler.get_drop_down_parameters(
                 PODD.SECOND_GRAPH_RANGE)),
         MyHTML.div_with_dcc_drop_down(
             **self._dd_handler.get_drop_down_parameters(PODD.INDICATOR)),
         MyHTML.div_with_button(
             **self._button_handler.get_button_parameters(
                 PFBTN.RESET_PORTFOLIO_SELECTION)),
         MyHTML.div_with_html_button_submit('my_portfolio_refresh_button',
                                            'Refresh'),
         MyHTML.div_with_html_button_submit(
             'my_portfolio_active_manage_button',
             self.__get_position_manage_button_text__()),
         MyHTML.div_with_table(self._data_table_div,
                               self.__get_table_for_portfolio__()),
         MyHTML.div('my_graph_portfolio_position_div'),
         MyHTML.div('my_graph_portfolio_position_second_div')
     ]
     return MyHTML.div('my_portfolio_div', children_list)