Learn more about error codes and how to resolve them
Some Errors include an error code — a short string with a brief explanation. These codes play a role in our recommended error handling techniques.
Below is a list of possible error codes, along with additional information about how to resolve them.
400 - Bad Request
Message |
---|
order_id must be a string |
type must be a valid enum value |
state must be a valid enum value |
weight must not be greater than 100 |
weight must not be less than 0 |
weight must be a number conforming to the specified constraints |
price must not be less than 0 |
price must be a number conforming to the specified constraints |
symbol must be a string |
404 - Invalid Strategy Id
Message | Description |
---|---|
Couldn't resolve strategy by its Id. | The strategy_id does not exist or failed to load. |
409 - Duplicate Transaction
Message |
---|
A transaction has already been stored for this strategy with this order_id and / or state |
412 - Invalid Webhook Strategy
Message | Description |
---|---|
This strategy does not have permission to use the webhook api | To connect your strategy to Alkemy's Webhook API, contract support. |
500 - Internal Server Error
Message | Description |
---|---|
Something unexpected happened, please contact [email protected] | Although it's rare, you may experience an Error code: 500 - internal server error during high peak period. Contact support as soon as you experience this to ensure continuous availability. |