Skip to content

Are global variables the best way to use data outside of the msg in the trading strategy? #16

@Phionx

Description

@Phionx

Hi,

Thanks for creating this awesome package!

What is the recommended way to use data from outside of the msg argument in the trading strategy within on_message?

https://docs.juliahub.com/KrakenEx/C18NY/0.1.0/spot/spot_examples/#Spot-WebSocket-Example

Currently, I am using type-annotated global variables which I access and update within the callback function, but that doesn't seem very performant. Is there a better way?

Metadata

Metadata

Assignees

No one assigned

    Labels

    QuestionGeneral or specific questions without a direct need to apply a change.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions