Skip to content

Add an optional [participantId] to avoid self-dealing #537

@Benjythebee

Description

@Benjythebee

Is your feature request related to a problem? Please describe.
The problem is if I have a single market participant, and that participant for some reason places a buy order and a sell order, they can self-deal and therefore manipulate the price.
If not market manipulation, it can be a "shit what have i done" moment.

Describe the solution you'd like
I think adding an optional "participantId" to the order object can help. The logic should then check if the matching order is from the same participant

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requesthelp wantedExtra attention is needed

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions