Build Your Own:
get_search() finds instruments matching a keyword. Build it step by step:
Step 1 — Import the library
import icepython as iceStep 2 — Choose a keyword and (optionally) a filter code. Here, Brent on ICE:
results = ice.get_search('brn', rows=10, filters='F.EX.7.11')
print(results)
Step 3 — (Optional) Return only the symbol names:
symbols = ice.get_search('brn', rows=10, symbolsOnly=True)
print(symbols)
Output:
()
(('BRN 26K-ICE',), ('BRN 26Q-ICE',), ('BRN 26U-ICE',), ('BRN 26V-ICE',), ('BRN 26X-ICE',), ('BRN 26Z-ICE',), ('BRN 27F-ICE',), ('BRN 27G-ICE',), ('BRN 27H-ICE',), ('BRN 27J-ICE',))