<jupyter_start><jupyter_text>[🥭 Mango Markets](https://mango.markets/) support is available at: [Docs](https://docs.mango.markets/) | [Discord](https://discord.gg/67jySBhxrg) | [Twitter](https://twitter.com/mangomarkets) | [Github](https://github.com/blockworks-foundation) | [Email](mailto:<EMAIL>)[![Binder](https://mybinder.org/badge_logo.svg)](https://mybinder.org/v2/gh/blockworks-foundation/mango-explorer-examples/HEAD?labpath=ShowSpotOpenOrders.ipynb) [Run this code](https://mybinder.org/v2/gh/blockworks-foundation/mango-explorer-examples/HEAD?labpath=ShowSpotOpenOrders.ipynb) on Binder._🏃‍♀️ To run this notebook press the ⏩ icon in the toolbar above._  🥭 Show Spot OpenOrdersThis notebook shows the details of a Spot `OpenOrders` belonging to a specified Mango `Account`, for a specified token in the `Group` basket.Instead of a lookup on program and filter on market, Spot `OpenOrders` addresses are held in the Mango `Account`. So we load the `Account`, find the details for that particular basket token, and load the `OpenOrders` directly.<jupyter_code>import mango

# Use our hard-coded devnet wallet for DeekipCw5jz7UgQbtUbHQckTYGKXWaPQV4xY93DaiM6h.
# For real-world use you'd load the bytes from the environment or a file.
wallet = mango.Wallet(bytes([67,218,68,118,140,171,228,222,8,29,48,61,255,114,49,226,239,89,151,110,29,136,149,118,97,189,163,8,23,88,246,35,187,241,107,226,47,155,40,162,3,222,98,203,176,230,34,49,45,8,253,77,136,241,34,4,80,227,234,174,103,11,124,146]))

# Create a 'devnet' Context
with mango.ContextBuilder.build(cluster_name="devnet") as context:
    group = mango.Group.load(context)
    accounts = mango.Account.load_all_for_owner(context, wallet.address, group)

    # Find the wrapped SOL and USDC tokens
    sol_token = mango.token(context, "SOL")
    usdc_token = mango.token(context, "USDC")
    slot = accounts[0].slot_by_instrument(sol_token)
    open_orders = mango.OpenOrders.load(context, slot.spot_open_orders, sol_token, usdc_token)
    print(open_orders)

print("Example complete.")<jupyter_output><empty_output>
{'fraction_non_alphanumeric': 0.13837994214079075, 'fraction_numerical': 0.08244937319189971, 'mean_word_length': 6.4640287769784175, 'pattern_counts': {'":': 0, '<': 6, '<?xml version=': 0, '>': 6, 'https://': 8, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'chain_length': '1', 'dir': 'jupyter-structured-clean-dedup', 'id': '266585', 'license': 'MIT', 'n_tokens_mistral': 869, 'n_tokens_neox': 753, 'n_words': 151, 'path': 'ShowSpotOpenOrders.ipynb', 'repo_name': 'blockworks-foundation/mango-explorer-examples', 'size': '2094'}