Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Trouble with Smart Trades #2

Open
theDanielJLewis opened this issue Mar 16, 2022 · 5 comments
Open

Trouble with Smart Trades #2

theDanielJLewis opened this issue Mar 16, 2022 · 5 comments

Comments

@theDanielJLewis
Copy link

theDanielJLewis commented Mar 16, 2022

Thank you for putting this together!

I'm having trouble creating Smart Trades in a paper account. I know I have my API and secret properly entered because I can get an account list from both paper and real.

When I try to create a Smart Trade, I get the error:

{
    "error": "signature_invalid",
    "error_description": "Provided signature is invalid"
}

If I send only account_id and pair, then I get:

{
    "error": "record_invalid",
    "error_description": "Invalid parameters",
    "error_attributes": {
        "position": [
            "is missing"
        ],
        "position[type]": [
            "is missing"
        ],
        "position[order_type]": [
            "is missing"
        ],
        "position[units]": [
            "is missing"
        ],
        "position[units][value]": [
            "is missing"
        ],
        "take_profit": [
            "is missing"
        ],
        "take_profit[enabled]": [
            "is missing"
        ],
        "stop_loss": [
            "is missing"
        ],
        "stop_loss[enabled]": [
            "is missing"
        ]
    }
}

But add any one of those fields and I get the signature error.

Any ideas? Or is this a 3commas problem?

@sgerodes
Copy link
Owner

sgerodes commented May 7, 2022

Do you have any spaces in your url? if yes, that could be the issue

@theDanielJLewis
Copy link
Author

No.

It seems to be a problem with how the authentication script is handling an object or array.

@sgerodes
Copy link
Owner

Tbh, I think the problem is somewhere on the side of 3commas.
I cant send a Smart trade too.
Because the auth script does not change your object. It does not delete any fields.

@lotek4u
Copy link

lotek4u commented Sep 27, 2022

Were you guys able to eventually create smart trades, or still borked on their side?

@theDanielJLewis
Copy link
Author

I gave up and used a different method to send the data.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants