ROI card

About

Whenever a user fully closes his/her position, a trading venue (eg perp.exchange) will send out a GET request with URL to a server. Upon receiving the request, this server will:

  1. Find the starting point of this recently-closed position, 
  2. Aggregate all of the realized PnL from its start to its closure, 
  3. Gather all of the relevant information for this trade (market name, entry price, exit price, etc),
  4. Draw the ROI card with the obtained information and return it to the frontend

The frontend will then display the ROI card, which shows how much money he has made from the position he just closed, to this user.

Requirements

Criteria:

  • The program must be written in Typescript.
  • The response time (from receiving the request to passing the image) must be within 1.5 seconds.
  • The program must be able to run on AWS Lambda.

Definition:

  • ROI: Final Realized PnL / Final Margin 
  • Final PnL: The cumulative realized PnL from the genesis of this position to its closure.
  • Final Margin: The amount of the margin used in a position when it’s closed.

Amount

1000 USDC

Developer Ecosystem

Perpetual protocol empowers developers, liquidity providers and traders to participate in a financial marketplace that is open and accessible to all.

Learn more

Get in touch

If you would like to apply to be a part of this project, use the contact form and one of team will be in touch shortly

Thank you! Your submission has been received!
Oops! Something went wrong while submitting the form

Other Bounties

Limit Orders

Smart Contract

Technical

Development

bounty

24K PERP

Apply

Claimed by

@abdullathedruid

Leveraged Tokens

Development

Smart Contract

Technical

bounty

2.4K - 4.8K PERP

Apply

Claimed by

@hakkafinance

Referral Program

Development

Smart Contract

Technical

bounty

5.2K PERP

Apply

Claimed by

@1saf

Website Refresh

Design

bounty

6000 USDC

Apply

Claimed by

Avenue Studio