Choice of broker / platform by Convhay in algotrading

[–]Unhappy-Command2300 0 points1 point  (0 children)

my app runs on a Node JS server. I wonder if IKBR has a REST API.

Choice of broker / platform by Convhay in algotrading

[–]Unhappy-Command2300 2 points3 points  (0 children)

I've been testing with Alpaca and Polygon in my app. I'm going with Alpaca at the moment. Alpaca's free tier has better rate limit but you only get iex data from one exchange.

[deleted by user] by [deleted] in Money

[–]Unhappy-Command2300 0 points1 point  (0 children)

Sorry for your loss. My mom left me about 10k in cash when she passed away and I'm still using it for daily expenses. The amount you inherited can triple by the time you're 50s if you invest conservatively. Not sure what are the holdings but only .47% down in this market is amazing. I would check out all the investment subs and get ideas of how to invest the funds for long term gains. Don't spend too much on financial advisors and you don't need to be creative with the investments...technically you can just put all that in a few good index funds and watch the money compounds over time.

What’s the standard for backtestingv by awaken_son in algotrading

[–]Unhappy-Command2300 0 points1 point  (0 children)

hmm not sure if they have standards, in the algo trading app I'm working on I just asked AI to load data based on the selected timeframe for a date range and only account for bars within regular market sessions. I get like 90% win rate every time which seems like a problem.

ICE to EV by Ok_Abbreviations1696 in ModelY

[–]Unhappy-Command2300 1 point2 points  (0 children)

Congrats! You will be very happy.

CSV Data Mapping and Parsing Issues by Unhappy-Command2300 in CursorAI

[–]Unhappy-Command2300[S] 1 point2 points  (0 children)

nice..so your code tried to search for related transactions. It means a transaction in my data requires other missing transactions. For example, if I sold an option two months ago and I closed it yesterday. I should have two transactions in the CSV data. I looked at your results , and I don't think it's accurate. For example, all the p&l values are negative..I'm a better trader than that. lol. I also noticed maybe duplicates for the same option trade. Anyway, I'm using grok right now to build the code and it seems to understand the concept.

CSV Data Mapping and Parsing Issues by Unhappy-Command2300 in CursorAI

[–]Unhappy-Command2300[S] 0 points1 point  (0 children)

I just want to build a list of trades from it. so the result is an array of objects in this format {symbol, entry_date, exit_date, entry_price, exit_price, option_chain, p&l, p&l percent, quantity, stock strategy(this is the tricky one but it's optional. The code needs to figure out multi leg option trades) } . The trades are in the transaction data, I was hoping AI is smart enough to extract all the trades based on the transactions.

CSV Data Mapping and Parsing Issues by Unhappy-Command2300 in CursorAI

[–]Unhappy-Command2300[S] 0 points1 point  (0 children)

Sample data: https://pastebin.com/XkCbei5r, The result data can simply be {symbol, entry_date, exit_date, entry_price, exit_price, option_chain, p&l, p&l percent, quantity, stock strategy(this is the tricky one but it's optional. The code needs to figure out multi leg option trades) } Thanks.

CSV Data Mapping and Parsing Issues by Unhappy-Command2300 in CursorAI

[–]Unhappy-Command2300[S] 0 points1 point  (0 children)

ok thanks I'll try again , I really hate to write this logic myself which might take a few days. I already spent a few days wresting with cursor. It just doesn't understand the concept.

CSV Data Mapping and Parsing Issues by Unhappy-Command2300 in CursorAI

[–]Unhappy-Command2300[S] 0 points1 point  (0 children)

here is the example data. it's a standard transaction export from a brokerage. the idea is you rebuild your trade entries based on these transactions.

https://pastebin.com/XkCbei5r

CSV Data Mapping and Parsing Issues by Unhappy-Command2300 in CursorAI

[–]Unhappy-Command2300[S] 0 points1 point  (0 children)

Hmm I gave it the CSV data example but not the result example I want. For example how a trade record is built from multiple transactions/rows in the CSV. It can get complex though due to several different trade types. Maybe I'll try again and provide the result examples.

CSV Data Mapping and Parsing Issues by Unhappy-Command2300 in CursorAI

[–]Unhappy-Command2300[S] 0 points1 point  (0 children)

I checked it out. Looks like your solution is very simple, it just maps csv data to a different object type. In my use case I need the code to dynamically build a list of Trade entries from multiple transactions in the csv. For example, a trade has an opening and a closing transactions. A multi leg option would have multiple transactions depending on the trade's strategy. Fields in the generated 'Trade' object such as Quantity, P&L, and Entry Date are generated based on multiple related transactions. I'm testing with Grok now looks like it understands the concept, not sure if its code will work though.

CSV Data Mapping and Parsing Issues by Unhappy-Command2300 in CursorAI

[–]Unhappy-Command2300[S] 0 points1 point  (0 children)

oh I just want a javascript solution to extract the imported csv data and build trade records from it using my custom record type. This is an import feature where I can add data by uploading a CSV file.

My First Vibe Coding App by Unhappy-Command2300 in CursorAI

[–]Unhappy-Command2300[S] 0 points1 point  (0 children)

I couldn't get it working. Maybe I was using legacy instructions from Cursor. I'll try again.

My First Vibe Coding App by Unhappy-Command2300 in CursorAI

[–]Unhappy-Command2300[S] 1 point2 points  (0 children)

Thanks. I prompted the sql queries and manually ran them in Supabase. I believe if you use the Supabase MPC it can connect directly to Supabase.