Fully working code! https://p2p.band

Reply to this note

Please Login to reply.

Discussion

oh, that's great! Can you say what models you have used, and which prompts, if appropriate?)

I used claude-3.7-sonnet. The prompt was really custom (I am far from a prompt engineer 😁) but I can share them here if you are really interested

Yep, I'm interested. 'Cos, for example, getting a quote ticker was far more easier, than, say, getting support/resistance levels working properly. So each case is somewhat unique. Please do share, as it is always interesting to progress ;) I'm far from prompt engineer too))

1: Let's use nivo to create a Depth Chart with the results. The line of the left would be the buy options, identified by the tag 'k' = 'buy' and the right line will be the sell options identified but the tag 'k' = 'sell', the x axis will be the value of the tag 'premium'and the y axis will be in BTC, based on the amount ('fa' tag) with the reverse exchange rate applied (the idea is to transform all currencies to BTC). Place this chart right above the filters component

2: A depth chart accumulates x values for both lines Sell and buy starting from the highest values for buy and the lowest values for sell

3: That's better, now let make sure we display the right range for X axis, it should contain min and max based on the min and max found values from all possible orders