Closed Jsquared-github closed 3 months ago
Main Changes:
sell_stock()
buy_stock()
resolve_price_diff()
escrow_buy()
delete_processed_order()
supabase_middleman.py
portfolio
buy_order.py
active_buy_sell
fetch_portfolio()
fetch_profile()
exchange_stock()
is_market_open()
New Changes Since Initial Commits
test_data.py
Post Review Changes
supabase.rpc()
3717663
View logs
Main Changes:
sell_stock()
,buy_stock()
,resolve_price_diff()
,escrow_buy()
, anddelete_processed_order()
tosupabase_middleman.py
buy_stock()
function creates a entry in a user'sportfolio
table for the given table if they don't own it yetbuy_order.py
to handle orders that have different prices using the functions aboveactive_buy_sell
if market is closed or there are no valid sell ordersfetch_portfolio()
,fetch_profile()
, andexchange_stock()
fromsupabase_middleman.py
is_market_open()
insupabase_middleman.py
(It was returning the row of the table not the actual boolean value)New Changes Since Initial Commits
buy_order.py
that handles the test case where buy & sell prices are equal, but not at the current market pricetest_data.py
so >1 quantity orders can be identified/groupedPost Review Changes
supabase.rpc()
insupabase_middleman.py
to improve thread safety