Giter VIP home page Giter VIP logo

bitso's Introduction

Carthage compatible

Important Note for Bitso API users:

Tha Bitso API does not follow the reuse release equivalence principle which impose that:

Reuse Release Equivalence Principle. ... The granule of reuse is the granule of release. Only components that are released through a tracking system can effectively be reused. This granule is the package.

This means that as a Bitso API user I'm not protected from changes in the API.

The best way to overcome this for now it's to install the bitso client and use a proxy to sniff the requests made to the API.

How to use

Right now we support Public API calls.

How to contribute

Tasks

You can find our sprint board on: https://github.com/JuIioCesar/Bitso/projects/1

API Response Models

To build the models I usually use: http://www.json4swift.com with the latest Swift 4 Codeable Mapping along with this process:

  1. Go to https://bitso.com/api_info
  2. Choose a private endpoint. You can raise an issue and assign it to yourself to communicate that you are working on an specific endpoint
  3. Copy the JSON Response
  4. Use JSON Response as input of http://www.json4swift.com
  5. Download the generated files
  6. Remove optionals from the generated files using the next two points
  7. You can use Find and Replace to remove the ? from those files before adding them to the project.
  8. You can use Find and Replace to replace the decodeIfPresent for a decode in the generated files before adding them to the project.
  9. Correct automated code in subcontainers by replacing code like payload = Payload(decoder) for decode(Payload.self, key: "payload")
  10. Add the generated files to the project.
  11. Test the models using a unit test.
  12. Rename structs to verbose names like Book instead of Payload and BooksResponse instead of Json4Swift_Base
  13. Add your name to the contributors list
  14. Raise a Pull Request

Contributors

Julio César Guzmán Villanueva

bitso's People

Contributors

juliofruta avatar

Stargazers

 avatar  avatar  avatar

Forkers

coinmaketcap

bitso's Issues

The Bitso API doesn't follow the reuse release principle

Tha Bitso API doesn't follow the reuse release equivalence principle which impose that:

Reuse Release Equivalence Principle. ... The granule of reuse is the granule of release. Only components that are released through a tracking system can effectively be reused. This granule is the package.

Which implies that as a Bitso API user I'm not protected from changes in the API.

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.