Skip to content

Order colors #2

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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