terrellv / python-coinbasepro Goto Github PK
View Code? Open in Web Editor NEWPython package used to interact with the CoinbasePro api
License: MIT License
Python package used to interact with the CoinbasePro api
License: MIT License
my_bank=api.payment_methods['payment_method_name']
api.deposit(amount='350', currency='USD', payment_method_id=my_bank.id)
# /deposits/payment-method
# This endpoint requires the "transfer" permission. API key must belong to default profile.
from cbp_client import AuthAPI
api = AuthAPI(**credentials)
>>>api.balance('btc')
'0.101000563'
>>>api.balance('eth')
'2.101000563'
Add a "profiles" method onto the AuthAPI to get current portfolio/profile information for an account.
Should also set the .current_profile_name attribute for easy reference.
The coinbase pro rest api service makes reference to profiles in various locations like the orders endpoint and it would be helpful to have a quick reference of the profile id: to portfolio name.
import datetime as dt
api.historical_prices('btc-usd', start=dt.datetime.today().isoformat())
<generator object History._build_timeline at 0x000001EE209952E0>
candles = list(api.historical_prices('btc-usd', start=dt.datetime.today().isoformat()))
candles
[]
This should error because the startdate passed isn't formatted correctly. The provided data has extra information like time etc. start expects just the date in isoformat.
remove print statement "waiting" from
All Orders api.orders()
Open Orders api.orders(status='open')
Settled Orders api.orders(settled=True)
When all fills have settled and any holds are cleared; Most common for historical order info
start_date required for all_orders and settled_orders
End date defaults to now. Can be specified if needed
Requires a datefield to reference
configure github action workflow to manually deploy release to production pypi repo
Keep it simple. This should be way shorter and probably doesn't need pandas
This should be last activity before release. Don't update docs until all other issues in milestone complete!
start date is required
end date defaults to now
date_field required so we know what datefield to reference for each method
When an endpoint is returning a list of dictionaries. Allow user to specify an attribute and value to filter by. Use kwargs to implement. Similar to how the product filter functionality works. Refactor that, to support other endpoints as well.
Sample endpoints to add filtering to:
If we get a symbol such as 'btc' when expecting a properly formatted product_id, default to -USD trading pair.
btc -> BTC-USD
eth -> ETH-USD
eth-usd -> ETH-USD
ETH-USD -> ETH-USD
Include this functionality anywhere a product id is expected in the public facing UI
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.