<jupyter_start><jupyter_text>[index](./index.ipynb) | [accounts](./accounts.ipynb) | [orders](./orders.ipynb) | [trades](./trades.ipynb) | [positions](./positions.ipynb) | [historical](./historical.ipynb) | [streams](./streams.ipynb) | [errors](./exceptions.ipynb)  What about errors ?Errors can occur. Wrong parameters or connection errors for example. Lets take the example from [Orders](./orders.ipynb) and make the instrument one that does not exist. The orderspecfication itself is still valid. Wrap it up in a *try/except* to catch the error:<jupyter_code>import json
import oandapyV20
from API.oandapyV20.exceptions import V20Error
import API.oandapyV20.endpoints.orders as orders
from API.oandapyV20.contrib.requests import (
    MarketOrderRequest,
    TakeProfitDetails,
    StopLossDetails)
from API.authenticate import Authenticate as auth

accountID, access_token = auth('Demo', 'Primary')
client = oandapyV20.API(access_token=access_token)

mktOrder = MarketOrderRequest(instrument="EUR_UDS",    # EUR_UDS ... the faulty instrument
                              units=10000,
                              takeProfitOnFill=TakeProfitDetails(price=1.10).data,
                              stopLossOnFill=StopLossDetails(price=1.05).data
                              ).data
r = orders.OrderCreate(accountID=accountID, data=mktOrder)
try:
    rv = client.request(r)
except V20Error as err:
    print("V20Error occurred: {}".format(err))
else:
    print("Response: {}\n{}".format(r.status_code, json.dumps(rv, indent=2)))<jupyter_output><empty_output>
{'fraction_non_alphanumeric': 0.11971830985915492, 'fraction_numerical': 0.01792573623559539, 'mean_word_length': 3.7220543806646527, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 0, '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': '73684', 'license': 'MIT', 'n_tokens_mistral': 521, 'n_tokens_neox': 498, 'n_words': 109, 'path': 'jupyter/.ipynb_checkpoints/exceptions-checkpoint.ipynb', 'repo_name': 'T3chSawy/oanda-api-v20', 'size': '1562'}