https://github.com/sgerodes/3commas-postman
A postman collection for the 3 commas API. The Signature is calculated automatically.
https://github.com/sgerodes/3commas-postman
3commas 3commas-api 3commas-io api commas io postman postman-collection postman-collections three three-commas threecommas
Last synced: 9 months ago
JSON representation
A postman collection for the 3 commas API. The Signature is calculated automatically.
- Host: GitHub
- URL: https://github.com/sgerodes/3commas-postman
- Owner: sgerodes
- License: mit
- Created: 2021-05-23T10:54:05.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2021-12-09T16:26:05.000Z (about 4 years ago)
- Last Synced: 2025-03-29T00:12:58.952Z (10 months ago)
- Topics: 3commas, 3commas-api, 3commas-io, api, commas, io, postman, postman-collection, postman-collections, three, three-commas, threecommas
- Language: JavaScript
- Homepage:
- Size: 109 KB
- Stars: 7
- Watchers: 5
- Forks: 9
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# 3commas-postman
A "Plug and Play" postman collection created from the official swagger doc.
The signature is created automatically.
1. Import the postman_collection.json file into your Postman
2. Create an API key-secret pair in your 3commas account. Some endpoints need write permissions. Which exactly can be found on the [official repo](https://github.com/3commas-io/3commas-official-api-docs).
3. Add your API key and secret into the Postman collection variables THREE_COMMAS_API_KEY and THREE_COMMAS_API_SECRET.
# Weird defaults
The collection is generated from the official swagger doc.
Some request have some weird parameters inside, like "market_code=tempor esse".
Those are autogenerated from postman (and only god knows why they are doing those weird defaults...)
Sometimes the default value will have a space inside.
This could break the request with a counterintuitive message "api key invalid" or sometimes "signature_invalid".
Just disable those parameters or change to your needs.
# Pre request script
If you already have your own postman collection, you can use the pre-request-script.js.
Just copy that code to your collection pre-request script.
You will still need the THREE_COMMAS_API_KEY and THREE_COMMAS_API_SECRET variables in you environment.
# Forced mode
You can add a forced mode per request with a parameter: `forced_mode=paper` or `forced_mode=real` will add the needed header to your request.
Or you can use the `FORCED_MODE` environment variable with the values `paper` or `real`.