Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

LP - Market with Price Mon settings show 0 for equityLikeShare #3350

Closed
2 of 8 tasks
ponthief opened this issue Apr 13, 2021 · 0 comments · Fixed by #3361
Closed
2 of 8 tasks

LP - Market with Price Mon settings show 0 for equityLikeShare #3350

ponthief opened this issue Apr 13, 2021 · 0 comments · Fixed by #3361
Assignees

Comments

@ponthief
Copy link
Contributor

ponthief commented Apr 13, 2021

Problem encountered

Market that has Price Monitoring settings unable to display correct equityLikeShare for LPs.

System response

All of the LPs are showing 0:

"state": "ACTIVE",
      "data": {
        "markPrice": "1055",
        "bestBidPrice": "900",
        "bestBidVolume": "1",
        "bestOfferPrice": "1060",
        "bestOfferVolume": "1",
        "bestStaticBidPrice": "900",
        "bestStaticBidVolume": "1",
        "bestStaticOfferPrice": "1060",
        "bestStaticOfferVolume": "1",
        "midPrice": "980",
        "suppliedStake": "41000",
        "targetStake": "95882",
        "trigger": "Unspecified",
        "marketValueProxy": "41000",
        "staticMidPrice": "980",
        "marketTradingMode": "CONTINUOUS",
        "openInterest": "18",
        "indicativePrice": "0",
        "indicativeVolume": "0",
        "liquidityProviderFeeShare": [
          {
            "party": {
              "id": "ac32215927c6b63d507d7ce831c191b6d833b9392e5dcf5551979de00abe8dbb"
            },
            "equityLikeShare": "0",
            "averageEntryValuation": "1000"
          },
          {
            "party": {
              "id": "c6d01a75309d058fe14d1c87149796e0b745267bf2707565affcc5afc4700499"
            },
            "equityLikeShare": "0",
            "averageEntryValuation": "41000"
          }
        ],
        "priceMonitoringBounds": [
          {
            "minValidPrice": "1039",
            "maxValidPrice": "1071"
          },
          {
            "minValidPrice": "1025",
            "maxValidPrice": "1085"
          }
        ]

Markets that do not have Price Mon settings show correct equityLikeShare.

 {
            "party": {
              "id": "b88e526a9676cbc142447e7044c2eb8e844d1e4f4e797816a9b00721535e1f67"
            },
            "equityLikeShare": "0.30963434033123116",
            "averageEntryValuation": "21000"
          },
          {
            "party": {
              "id": "e5533ffaf9c79790acf607b39b24db54c3185f3c2e01c423119cd39b5fc910d9"
            },
            "equityLikeShare": "0.15859319870624033",
            "averageEntryValuation": "41000"
          }
        ],
        "priceMonitoringBounds": []

System version: Specify the system version (0.34)
Protocol: Specify the protocol

  • gRPC
  • REST
  • GraphQL

Component: Specify the components that might be related

Steps to reproduce

Manual

Create market with Price Mon settings and deploy few LPs.

Automation

will add

Not reproducible

Explain why the problem/bug is not reproducible

Expected behaviour

equityLikeShare should not be 0.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
3 participants