Skip to content

No bid ask for options on agro futures from pyrofex despite bid ask being shown on realtime screen #35

@manuhanu

Description

@manuhanu

Hi team,
When I try to get bids and offers for Options grains futures, pyrofex returns an empty bid and offer when using both rest and websocket despite there being a bid and offer on the realtime screen.

for example:
I want to pull bid ask on "SOJ.ROS/JUL24 320 C"
matba rofex realtime shows 2.5@3.3

image

when I use pyrofex to pull,

# 2-Set the instrument to use
instrument = "SOJ.ROS/JUL24 320 C"

# 3-Get the two Best Bids and Best Offers for the instrument (using depth parameter)

entries = [pyRofex.MarketDataEntry.BIDS, pyRofex.MarketDataEntry.OFFERS, pyRofex.MarketDataEntry.LAST,pyRofex.MarketDataEntry.OPEN_INTEREST]
market_data = pyRofex.get_market_data(instrument, entries,depth = 1,market=pyRofex.Market.ROFEX,environment=pyRofex.Environment.REMARKET)

print("Market Data Response for {0}: {1}".format(instrument, market_data))

and it returns
Market Data Response for SOJ.ROS/JUL24 320 C: {'status': 'OK', 'marketData': {'LA': None, 'BI': None, 'OF': None, 'OI': None}, 'depth': 1, 'aggregated': True}

Clearly, its recognizing the instrument, its just incorrectly telling me theres no bid ask.

I would note that the above works if I try to get bid ask for agro futures.

Please advise.

Thanks,
Manuel

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions