3commas-io / 3commas-official-api-docs

Official Documentation for the 3commas APIs
https://3commas.io
251 stars 87 forks source link

Got an error for the add funds #144

Closed catalinatCore closed 2 years ago

catalinatCore commented 2 years ago

2022-07-13_03-42-25

cURL: curl --location --request POST 'https://api.3commas.io/public/api/v2/smart_trades/15423052/add_funds' \ --header 'Content-Type: application/x-www-form-urlencoded' \ --data-urlencode 'order_type=market' \ --data-urlencode 'units[value]=0.0252' \ --data-urlencode 'price[value]=20486'

Can anyone help to take a look?

Chris-Kaye commented 2 years ago

Hi, The --header should also contain your 3Commas Developer API key and also the SHA256_HMAC signature generated as shown on the readme.md page: https://github.com/3commas-io/3commas-official-api-docs#signed-endpoint-examples-for-post-publicapiver1userschange_mode