Spaces:
				
			
			
	
			
			
		Runtime error
		
	
	
	
			
			
	
	
	
	
		
		
		Runtime error
		
	Initial commit with the UI.
Browse files- .gitignore +1 -0
- app.py +27 -0
    	
        .gitignore
    ADDED
    
    | @@ -0,0 +1 @@ | |
|  | 
|  | |
| 1 | 
            +
            *.pyc
         | 
    	
        app.py
    ADDED
    
    | @@ -0,0 +1,27 @@ | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | 
|  | |
| 1 | 
            +
            import gradio as gr
         | 
| 2 | 
            +
             | 
| 3 | 
            +
             | 
| 4 | 
            +
            # The UI of the demo defines here.
         | 
| 5 | 
            +
            with gr.Blocks() as demo:
         | 
| 6 | 
            +
                gr.Markdown("Auto trade bot.")
         | 
| 7 | 
            +
             | 
| 8 | 
            +
                gr.Markdown("Candle polts may goes here.")
         | 
| 9 | 
            +
                gr.components.Image()
         | 
| 10 | 
            +
                # for plotly it should follow this: https://gradio.app/plot-component-for-maps/
         | 
| 11 | 
            +
                # trade_plot = gr.Plot()
         | 
| 12 | 
            +
                # demo.load(the_plot, [*args], [gr.components], trade_plot)
         | 
| 13 | 
            +
                
         | 
| 14 | 
            +
                with gr.Row():
         | 
| 15 | 
            +
                    with gr.Column():
         | 
| 16 | 
            +
                        gr.Markdown("User Interactive panel.")
         | 
| 17 | 
            +
                        amount = gr.components.Textbox(value="", label="Amount", interactive=True)
         | 
| 18 | 
            +
                        with gr.Row():
         | 
| 19 | 
            +
                            buy_btn = gr.components.Button("Buy", label="Buy", interactive=True, inputs=[amount])
         | 
| 20 | 
            +
                            sell_btn = gr.components.Button("Sell", label="Sell", interactive=True, inputs=[amount])
         | 
| 21 | 
            +
                            hold_btn = gr.components.Button("Hold", label="Hold", interactive=True, inputs=[amount])
         | 
| 22 | 
            +
                    with gr.Column():
         | 
| 23 | 
            +
                        gr.Markdown("Trade bot history.")
         | 
| 24 | 
            +
                        # show trade box history in a table or something
         | 
| 25 | 
            +
                        gr.components.Textbox(value="Some history? Need to decide how to show bot history", label="History", interactive=True)
         | 
| 26 | 
            +
             | 
| 27 | 
            +
            demo.launch()
         | 
