I remember I spend 12 hours trying to figure out how to make the Depth Chart for Robosats with the charts library 3 years ago.

And my AI fren just took 3 prompts to reach to the same results. Awesome.

Reply to this note

Please Login to reply.

Discussion

You mean, after 3 prompts you have reached fully working code? Or the fungible idea what is needed to be done? 😇🍸

Fully working code! https://p2p.band

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

Ok. Thanks for that. So you stated explicitly, what to use and how it should be. On my side, let me say, that I used duck.ai, and my prompt was almost general, like "Please write trade bot for btc in python". And it came out instantly with sma trading bot.

Oh I see, I usually use duck.ai for general purpose, but for vibe coded I used the Cline VS extension and ppq.ai (you can pay with LN 😄) which is ultra useful because the extension provides to the LLM access to all files and the hability to modify them.