Open atrefonas opened 2 years ago
Branch issue-588-✨_Feature_Invert_all_prices_for_stablecoin_pairs created!
Kindly, provide more clarification about the issue.
The UI needs to be heavily refactored and inverted for some trading pairs so you are selling/buying ALGO instead of USDC.
So all the bids need to be displayed as asks and vice versa with inverted prices... just make it so you are buying or selling algo for the USDC/algo trading pair.
Please ask @PhearZero if you need help since I'm not available right now
Also for these certain trading pairs when you enter a buy order it should actually pass a sell order to the algodex sdk and vice versa.
UI needs to basically invert everything.
@atrefonas Should I update this OHLC and chart value as well?
@atrefonas Should I update this OHLC and chart value as well?
Yes
${API_HOST}/assets.php
${API_HOST}/assets.php?id=${id}
it returns asset
object in this format.
{
"id": 15322902,
"unix_time": 1656959348,
"price": 302,
"priceBefore": 989,
"price24Change": -69.46410515672396,
"isTraded": true
},
Can we add new field like isStable
?
At this moment I am updating that field in frontend but it would be much better if backend provides that field.
No, please just hardcode the list of stable assets into the frontend. We aren’t going to change the backend for this.
On Tue, Jul 5, 2022 at 6:49 AM Giuseppe Iacono @.***> wrote:
${API_HOST}/assets.php ${API_HOST}/assets.php?id=${id} it returns asset object in this format.
{ "id": 15322902, "unix_time": 1656959348, "price": 302, "priceBefore": 989, "price24Change": -69.46410515672396, "isTraded": true },
Can we add new field like isStable ? At this moment I am updating that field in frontend but it would be much better if backend provides that field.
— Reply to this email directly, view it on GitHub https://github.com/algodex/algodex-react/issues/588#issuecomment-1174917467, or unsubscribe https://github.com/notifications/unsubscribe-auth/ARL6JW6IOYMUVKT6GHJ4FKDVSQHNFANCNFSM5ZGSSOYQ . You are receiving this because you were mentioned.Message ID: @.***>
I don’t think we need to track this in the serverside and we are moving away from the 1.0 backend anyways. Just hardcode a list of the 5 asset IDs in the frontend.
On Tue, Jul 5, 2022 at 7:20 AM Alexander Trefonas @.***> wrote:
No, please just hardcode the list of stable assets into the frontend. We aren’t going to change the backend for this.
On Tue, Jul 5, 2022 at 6:49 AM Giuseppe Iacono @.***> wrote:
${API_HOST}/assets.php ${API_HOST}/assets.php?id=${id} it returns asset object in this format.
{ "id": 15322902, "unix_time": 1656959348, "price": 302, "priceBefore": 989, "price24Change": -69.46410515672396, "isTraded": true },
Can we add new field like isStable ? At this moment I am updating that field in frontend but it would be much better if backend provides that field.
— Reply to this email directly, view it on GitHub https://github.com/algodex/algodex-react/issues/588#issuecomment-1174917467, or unsubscribe https://github.com/notifications/unsubscribe-auth/ARL6JW6IOYMUVKT6GHJ4FKDVSQHNFANCNFSM5ZGSSOYQ . You are receiving this because you were mentioned.Message ID: @.***>
I got it. Thank you
Not sure what you mean. Use your best judgement or ask Ikechi.
On Wed, Jul 6, 2022 at 4:54 AM Giuseppe Iacono @.***> wrote:
[image: image] https://user-images.githubusercontent.com/76131191/177511338-6337e60d-8ecd-428c-b494-8ef27c5d567e.png
— Reply to this email directly, view it on GitHub https://github.com/algodex/algodex-react/issues/588#issuecomment-1175962873, or unsubscribe https://github.com/notifications/unsubscribe-auth/ARL6JWZDFKC5BDJJZ3IYSWLVSVCVRANCNFSM5ZGSSOYQ . You are receiving this because you were mentioned.Message ID: @.***>
ℹ Overview
The prices should all be inverted when trading for stablecoins like USDC. The buy orders should also appear as sell orders as vice versa. It should also be "BUY ALGO" and "SELL ALGO" in the trade window.
🧮 Calculation
New Order
Orderbook / Existing Order