Resources / Error Handling

Error Handling

This page is concerned with providing you with specific information on error handling.

Error handling for the request URL:

https://data.lemon.markets/v1/venues/

Error CodeMessageDetails
400error:invalid_queryInvalid MIC, max 5 char.
500Internal Server ErrorError is thrown when something is wrong on our end.

Error handling for the request URL:

https://data.lemon.markets/v1/instruments/

Error CodeMessageDetails
400error:invalid_queryInvalid mic, max 5 char.
400error:invalid_queryInvalid ISIN value
400error:invalid_queryExceeded number of ISINs (more than 10)
400error:invalid_queryInvalid type value (not stock, bond, warrant, fund or etf).
400error:invalid_querySearch string too long, max 25char.
500Internal Server ErrorError is thrown when something is wrong on our end.

Error handling for the request URLs:

https://data.lemon.markets/v1/quotes/

https://data.lemon.markets/v1/ohlc/{x1}

https://data.lemon.markets/v1/trades/

Error CodeMessageDetails
400error:invalid_queryInvalid MIC, max 5 char.
400error:invalid_queryInvalid ISIN value
400error:invalid_queryExceeded number of ISINs (more than 10)
400error:invalid_queryInvalid from: not a valid date.
400error:invalid_queryInvalid to: not a valid date.
400error:invalid_queryInvalid from: the date is later than to.
400error:invalid_queryInvalid from/to: specified dates are not valid. Maximun 7 days..
500Internal Server ErrorError is thrown when something is wrong on our end.

Error Handling in the Trading API

Detailed specification of error handling in the Trading API is coming soon 🙏

Error Handling for the request URLs:

https://paper-trading.lemon.markets/v1/spaces

https://trading.lemon.markets/v1/spaces

as well as:

https://paper-trading.lemon.markets/v1/spaces/{space_id}/

https://trading.lemon.markets/v1/spaces/{space_id}/

Error CodeMessageDetails
422TODOValidation Error
500Internal Server ErrorError is thrown when something is wrong on our end.

Error Handling for the request URLs:

https://paper-trading.lemon.markets/v1/orders

https://trading.lemon.markets/v1/orders

as well as:

https://paper-trading.lemon.markets/v1/order/{order_id}/

https://trading.lemon.markets/v1/orders/{order_id}/

as well as:

https://paper-trading.lemon.markets/v1/order/{order_id}/activate/

https://trading.lemon.markets/v1/orders/{order_id}/activate/

Error CodeMessageDetails
422TODOValidation Error
500Internal Server ErrorError is thrown when something is wrong on our end.

Error Handling for the request URLs:

https://paper-trading.lemon.markets/v1/portfolio/

https://trading.lemon.markets/v1/portfolio/
Error CodeMessageDetails
422TODOValidation Error
500Internal Server ErrorError is thrown when something is wrong on our end.

Error Handling for the request URLs:

https://paper-trading.lemon.markets/v1/transactions/

https://trading.lemon.markets/v1/transactions/

as well as:

https://paper-trading.lemon.markets/v1/transactions/{transaction_id}/

https://trading.lemon.markets/v1/transactions/{transaction_id}/

Error CodeMessageDetails
422TODOValidation Error
500Internal Server ErrorError is thrown when something is wrong on our end.