Giter VIP home page Giter VIP logo

3commas-postman's Introduction

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.
  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 the official swagger doc (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 "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

The script also allows you to enable the forced-mode header. You can add a forced mode parameter to your request. forced_mode=paper or forced_mode=real will add the needed header to your request.

3commas-postman's People

Contributors

sgerodes avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.