Skip to content

Commit

Permalink
Merge pull request #20 from MAGICGrants/get-bids-fix
Browse files Browse the repository at this point in the history
fix: use correct pair when getting bids
  • Loading branch information
SamsungGalaxyPlayer authored Oct 22, 2024
2 parents 7214429 + e5c0803 commit c826b62
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/autoconvert.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ def get_balance(asset: Literal['XBT', 'XMR']) -> str:
return balance

def get_bids(asset: Literal['XBT', 'XMR']):
return util.kraken_request('/0/public/Depth', {'pair': f'{asset}USD'})[f'{asset}USDT']['bids']
return util.kraken_request('/0/public/Depth', {'pair': f'{asset}USD'})[f'X{asset}ZUSD']['bids']

def attempt_sell(asset: Literal['XBT', 'XMR']):
balance = float(get_balance(asset))
Expand Down

0 comments on commit c826b62

Please sign in to comment.