Skip to content

Script: event.ticker() deceptively named #982

@AwooOOoo

Description

@AwooOOoo

Describe the bug
I would expect a ticker to be periodic (and ideally something I can set the frequency of). The event.ticker() is triggered on a trade and so the events are as sporadic as when the trades come in. It would be better named as event.trade() as it is currently implemented, then you can turn this into a ticker yourself.

To Reproduce
Steps to reproduce the behavior:

  1. Create a script that prints a price (i.e. use the example script that shows the price of an asset: https://github.com/gruelbox/orko/wiki/Scripting
  2. Watch the Market History section of the Market Window and compare it to when server notifications appear
  3. Notice they always trigger at the same time and sporadically

Expected behavior
Either:

  1. An evenly distributed ticker (i.e. once per second or configurable)
    or
  2. A more correct name for the event

Desktop (please complete the following information):

  • OS: Ubuntu 20.04
  • Browser: Chrome
  • Version Version 84.0.4147.125 (Official Build) (64-bit)

Metadata

Metadata

Assignees

No one assigned

    Labels

    awaiting triageBugs awaiting developer initial investigationbugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions