Skip to content
This repository has been archived by the owner on Feb 1, 2024. It is now read-only.

[ad-hoc] Mirror Strategy: track orders triggered on backingExchange by trades on primaryExchange #503

Closed
7 tasks done
nikhilsaraf opened this issue Sep 9, 2020 · 0 comments
Assignees
Labels
feature request New feature or request
Milestone

Comments

@nikhilsaraf
Copy link
Contributor

nikhilsaraf commented Sep 9, 2020

Desired Behavior

I want to see exactly which orders on the primary exchange triggered which orders on the backing exchange

Impact

The desired behavior will allow me to correctly calculate my profit by using the mirror strategy

Feature Suggestion

We can achieve the desired behavior by tracking fills on the backing exchange and linking trades on primary exchange to orders on backing exchange

Specification [21]

  • fill tracking for backing exchange
    • marketID registration
    • DB_OVERRIDE__ACCOUNT_ID
    • FILL_TRACKING_MILLIS
  • relationships table linking trades on primary exchange to orders on backing exchange (schema + logic)
  • orderId to be saved in trades table (schema + logic)
  • prevent double-trigger of trades by checking db for registered orders on the backing exchange
@nikhilsaraf nikhilsaraf added the feature request New feature or request label Sep 9, 2020
@nikhilsaraf nikhilsaraf added this to the v1.10.0 milestone Sep 9, 2020
@nikhilsaraf nikhilsaraf self-assigned this Sep 9, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
feature request New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant