Error Handling

Mistakes happen, here are the most common errors you might run into and how to handle them

Soci uses status codes behind the scenes to indicate the success or failure of your trading activity. If your request fails, Soci returns an error message which is sometimes combined with a status code.

Status codesError messagesDebug

2xx

success status codes confirm that your request worked as expected. For example, you receive a 2xx code when your order is placed successfully.

4xx

Permissions to authorize Soci have been revoked or expired. Please re-connect your Alpaca account from the discord server by typing the command /soci alpaca in any server or by direct messaging Sofia.

Log in to your Alpaca account > visit OAuth page > Revoke Soci's access > Open Discord, and re-connect your account by typing /soci alpaca

4xx

Trade authorization failed, please try again.

Reconnect your Alpaca account.

4xx

No trade was found with this code. No action was taken

This error message appears when you enter the wrong trade confirmation code. Make sure you enter the code correctly

4xx

You don't have enough buying power to follow this trade.

Fund your Alpaca account with more money.

4xx

The proportional value of the order to equity in your account does not meet the minimum requirement. No action was taken.

The strategy you are following placed a very small trade that is under 0.5% of their portfolio, and the order is rejected.

5xx

Error status codes are rare and indicate an error with Soci's servers

Report the bug as soon as you can.

Don't see what you're looking for? Send an email to hello@soci.finance or report the bug

Last updated