File tree Expand file tree Collapse file tree 2 files changed +5
-4
lines changed
Expand file tree Collapse file tree 2 files changed +5
-4
lines changed Original file line number Diff line number Diff line change 11[tool .poetry ]
22name = " sakit"
3- version = " 15.1.1 "
3+ version = " 15.1.2 "
44description = " Solana Agent Kit"
55authors = [" Bevan Hunt <bevan@bevanhunt.com>" ]
66license = " MIT"
Original file line number Diff line number Diff line change @@ -444,8 +444,8 @@ def calculate_safety_score(
444444 warnings .append (f"Moderate volume (${ volume :,.0f} )" )
445445 score_points -= 10
446446
447- # Liquidity check
448- liquidity = market .get ("liquidity" , 0 )
447+ # Liquidity check (DFlow API returns openInterest instead of liquidity)
448+ liquidity = market .get ("liquidity" ) or market . get ( "openInterest" , 0 )
449449 if liquidity < 500 :
450450 warnings .append ("Low liquidity - may be hard to exit" )
451451 score_points -= 30
@@ -534,7 +534,8 @@ def _apply_quality_filters(
534534 filtered = []
535535 for item in items :
536536 volume = item .get ("volume" , 0 )
537- liquidity = item .get ("liquidity" , 0 )
537+ # DFlow API returns openInterest instead of liquidity for prediction markets
538+ liquidity = item .get ("liquidity" ) or item .get ("openInterest" , 0 )
538539
539540 if volume >= self .min_volume_usd and liquidity >= self .min_liquidity_usd :
540541 filtered .append (item )
You can’t perform that action at this time.
0 commit comments