Skip to content

Order colors #2

@Lvl4Sword

Description

@Lvl4Sword

The main screen doesn't currently have working colors ( red/green ).

A rough example of this:

if not last_updates['kill']:
    for listbox_index, each_listbox_item in enumerate(all_current_orders.get(0, END)):
        if each_listbox_item not in open_orders:
            # all_current_orders.delete(listbox_index)
            all_current_orders.itemconfig(listbox_index, bg="green")
        else:
            all_current_orders.itemconfig(listbox_index, bg="red")
    time.sleep(5)
else:
    main_window.deiconify()
    main_window.withdraw()
    sys.exit(0)

Percentages next to the orders needs taken care of too. I believe vol_exec from https://docs.kraken.com/rest/#tag/User-Data/operation/getOpenOrders would be used for this if I'm not mistaken.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions