djeck1432 / spotnet

9 stars 84 forks source link

Create endpoint for fetching mulitpier per token #77

Closed djeck1432 closed 1 month ago

djeck1432 commented 1 month ago
  1. Read guideline here
  2. Set up the project, read README.md how to do that.
  3. In position.py create new endpoint: get_mulitpiers which will return data like {"ETH": <multilpier>}
  4. Create dataclass which is called TokenMultipliers in constants.py with next values:
    ETH = 5
    STRK = 2.5
    USDC = 5
  5. Add serializer response model for new created endpoint, TokenMulitpliersResponse in posotion.py
Bosun-Josh121 commented 1 month ago

I am applying to this issue via OnlyDust platform.

My background and how it can be leveraged

Software engineering background majored in backend & Smart contract development

How I plan on tackling this issue

I would : Define the endpoint route as /api/multipliers.

Implement logic to return multipliers for tokens in JSON format.

Create a data class named TokenMultipliers with the following attributes:

ETH = 5

STRK = 2.5

USDC = 5

  1. Create Serializer Response Model in position.py

Define a response model called TokenMultipliersResponse to structure the response for the multipliers.

  1. Implement Logic in get_multipliers

Use the TokenMultipliers data class to fetch the multipliers.

Return the data in the structure defined by TokenMultipliersResponse.

  1. Work on feedback/recommendations & I like orange
0xdevcollins commented 1 month ago

I am applying to this issue via OnlyDust platform.

My background and how it can be leveraged

I am a Full Stack Developer with experience in maintaining and upgrading codebases to align with the latest standards. I am skilled with writing Cairo, Rust, Javascript and Python. I’ve successfully worked on over 12 projects in the OnlyDust ecosystem, ensuring smooth transitions during updates.

How I plan on tackling this issue

In order to tackle this task, I will start by setting up the project following the README.md. In position.py, I will create a new endpoint, get_multipliers, which will return data in the format {"ETH": <multiplier>}. I will define a TokenMultipliers dataclass in constants.py with the given values for ETH, STRK, and USDC. I will also create a serializer response model, TokenMultipliersResponse, in position.py for the new endpoint. I like orange.

jaykayudo commented 1 month ago

I am applying to this issue via OnlyDust platform.

My background and how it can be leveraged

I am a First Principle Engineer, Python developer and software engineer with ample experience in building software application , python application and web3 applications.

How I plan on tackling this issue

od-hunter commented 1 month ago

I am applying to this issue via OnlyDust platform.

My background and how it can be leveraged

starknet foundry- #2581

Hi, please can I be assigned this please? This would be my first time contributing to this project and I would love to be the given the opportunity to contribute. I have experience in html, css, JavaScript,TypeScript and python, and Cairo.

How I plan on tackling this issue

To solve this sissue, I'll take the following steps: 1.I'll create new endpoint route as /api/multipliers get_multipliers, which will return data in the format {"ETH": } 2.I will define a TokenMultipliers dataclass in constants.py with the given values for ETH, STRK, and USDC

  1. I will create a serializer response model, TokenMultipliersResponse, in position.py for the new endpoint

I like orange