Git Product home page Git Product logo

godax's Introduction



Godax is an (unofficial) Coinbase Pro client. It is a work in progress and I've listed the remaining work needed for completion of their API. Generally speaking it could use more tests, as most are not testing error paths.


Docs: https://docs.pro.coinbase.com

Features:

  • ListAccounts
  • GetAccount
  • GetAccountHistory
  • GetAccountHolds
  • PlaceOrder
  • CancelOrderByID
  • CancelOrderByClientOID
  • CancelAllOrders
  • ListOrders
  • GetOrderByID
  • GetOrderByClientOID
  • ListFills
  • GetCurrentExchangeLimits
  • Stablecoin conversions
  • Payment methods
  • Coinbase accounts
  • Fees
  • User account
  • Profiles
  • Market Data: products
  • Market Data: currency
  • Market Data: time
  • Reports
  • Retry logic
  • Oracle
  • Margin

Still needs:

Development

Set the following environment variables which can point to either a live or sandbox coinbase pro account:

COINBASE_PRO_KEY=
COINBASE_PRO_SECRET=
COINBASE_PRO_PASSPHRASE=

Testing

go test ./...

Or with a bit of color

make test

Show your support

Give a โญ if this project was helpful in any way!

godax's People

Contributors

bradford-hamilton avatar sunkplane29 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

godax's Issues

Adding go modules to project

A suggestion about adding go modules system to the project in order to better manage dependencies and IDEs. While creating a pull request I found difficult to test the change because there was no module file.

Taking responsability of the client

I was taking another look at the code and saw that the client had a lot of responsibility like placing orders and listing products. So I created this pull request to discuss the possibility of letting the client having an order interface(maybe) and it accessing it to create orders, or get a specific order.

`type Orders interface {
PlaceOrder(timestamp, signature string, req *http.Request)
[...]
}

type Client struct {
Orders Orders
[...]
}
`

In this example, we would create an order interface with an underlying concrete type, but the client would just use the order interface so we can have a better dependency between the client and the orders and less responsibility in the client.

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.