Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
106 commits
Select commit Hold shift + click to select a range
7f901fe
Add exchange_rates()
chris-martin Apr 7, 2014
866f250
Make CoinbaseAccount auth optional, clean up stuff
chris-martin Apr 7, 2014
cc7df25
Add @property to exchange_rates
chris-martin Apr 7, 2014
f0d147d
Add allow_transfers flag to CoinbaseAccount (default false)
chris-martin Apr 7, 2014
4e78089
raise more specific exception
chris-martin Apr 8, 2014
e186a1a
make CoinbaseError an Exception
chris-martin Apr 8, 2014
3eb1daf
delete empty README.txt
chris-martin Apr 17, 2014
b30db76
Change allow_transfers default to True
chris-martin Apr 17, 2014
e3cdd88
expand example usage a bit
chris-martin Apr 17, 2014
967f6e3
spelling ("guarantee")
chris-martin Apr 17, 2014
11fb6a2
whitespace
chris-martin Apr 17, 2014
8d0fd42
rename global_request_params to auth_params
chris-martin Apr 22, 2014
d98a5c4
don't include the api key in unauthenticated requests
chris-martin Apr 22, 2014
95f6e96
move tests.py -> tests/__init__.py
chris-martin Apr 22, 2014
9d1b1ab
test with exchange_rates.json
chris-martin Apr 22, 2014
f6fdba7
move test oauth credentials to json file
chris-martin Apr 22, 2014
89fffc5
move button test json to button.json
chris-martin Apr 22, 2014
556f5be
use Decimal for CoinbaseAmount
chris-martin Apr 22, 2014
d579601
add trailing comma
chris-martin Apr 22, 2014
25ee157
add missing 'mock' test dependency
chris-martin Apr 22, 2014
ed6bf52
add python-dateutil dependency for parsing dates
chris-martin Apr 22, 2014
2970e93
add 'cents' option to CoinbaseAmount.from_coinbase_dict
chris-martin Apr 22, 2014
f05ad12
use CoinbaseAmount.from_coinbase_dict in transaction/transfer
chris-martin Apr 22, 2014
8f3d37a
parse created_at dates for transaction and transfer
chris-martin Apr 22, 2014
5ebd3a4
enumerate all CoinbaseButton fields, use CoinbaseAmount for price
chris-martin Apr 22, 2014
d247030
larger contacts test using contacts.json
chris-martin Apr 22, 2014
d8454a4
create json files for request/send tests
chris-martin Apr 22, 2014
32eb767
Update __init__.py
Jbusma Apr 23, 2014
8389880
Move users test data to users.json
chris-martin Apr 27, 2014
13122d6
transaction(s).json tests
chris-martin Apr 28, 2014
c82684b
create CoinbaseUser.from_coinbase_dict
chris-martin Apr 28, 2014
bb8e753
add CoinbaseTransaction.from_coinbase_dict
chris-martin Apr 28, 2014
73e9fdc
add CoinbaseTransfer.from_coinbase_dict
chris-martin Apr 28, 2014
a36a57e
use CoinbaseAmount as the parameter for amounts
chris-martin Apr 28, 2014
a7a438e
remove unused import sure
chris-martin Apr 28, 2014
3f40b37
use non-integer test cb_amount
chris-martin Apr 28, 2014
0abc327
remove allow_transfers=True from test
chris-martin Apr 28, 2014
355f9c9
adjust formatting for line length in tests
chris-martin Apr 28, 2014
1cd1d8e
adjust formatting
chris-martin Apr 28, 2014
70e4de3
Add (unused) CoinbaseOrder and orders.json
chris-martin Apr 28, 2014
8e05406
Add /orders support, and use namedtuple for models
chris-martin May 13, 2014
4369778
Add get_order
chris-martin May 13, 2014
6e802f5
Add support for order callback
chris-martin May 13, 2014
8c073b0
Order callback test: move "customer" to root object
chris-martin May 13, 2014
d4085e2
Contacts: add optional params, return CoinbaseContact
chris-martin May 13, 2014
923cf46
Add documentation to CoinbaseOrder
chris-martin May 14, 2014
67d66a2
remove unnecessary @httprettified
chris-martin May 13, 2014
088c97f
add test for /transfers
chris-martin May 13, 2014
d114e0b
CoinbaseAccount.create_button(button, account_id)
chris-martin May 16, 2014
1c2f9db
Add CoinbaseOrder.render_callback
chris-martin May 17, 2014
06a2557
new order's status is "new", not "pending"
chris-martin May 17, 2014
b973098
add function coinbase_url, check for suspicious inputs
chris-martin May 17, 2014
c62152c
Add order-creation methods
chris-martin May 19, 2014
ac2e3c1
Restructure the tests
chris-martin May 23, 2014
3c74daf
bugfix in CoinbaseAmount.to_coinbase_dict
chris-martin May 26, 2014
670939d
get_exchange_rate(self, from_currency, to_currency)
chris-martin May 26, 2014
7a908ca
CoinbaseAmount.convert
chris-martin May 26, 2014
bb0e587
fix to_coinbase_dict methods
chris-martin May 27, 2014
4e3ad55
tweak empty-string case for coinbase order button
chris-martin May 27, 2014
4f34d9d
create CoinbaseAccountMock
chris-martin May 27, 2014
3054f4d
remove print statements
chris-martin Jun 5, 2014
a5a0e44
Add enums for `status` fields
chris-martin Jun 5, 2014
ceaea76
think it's time to add myself to the credits list
chris-martin Jun 5, 2014
7909368
CoinbaseTransfer: expand tests, add `hash` field
chris-martin Jun 6, 2014
cdad6bb
Merge remote-tracking branch 'upstream/master'
chris-martin Jun 7, 2014
6588da4
add trailing comma
chris-martin Jun 7, 2014
b994300
Bugfix: Failed to send non-BTC amounts
chris-martin Jun 21, 2014
7e020df
The mock should use CoinbaseAmount for balances.
mhluongo Jun 26, 2014
43b3db6
Fix mock tests (balance is now CoinbaseAmount)
chris-martin Jul 7, 2014
7768cf4
set circle test command to `nosetests coinbase`
chris-martin Jul 7, 2014
8ea2d6b
fix circle.yml format
chris-martin Jul 7, 2014
a1532e0
sort requirements.txt
chris-martin Jul 7, 2014
7580010
add python-dateutil to requirements.txt
chris-martin Jul 7, 2014
4f2e0a9
add enum34 to requirements.txt
chris-martin Jul 7, 2014
96b7350
Fix mock transaction sorting
chris-martin Jul 7, 2014
cdc5c4e
Add a user_fee parameter for to send().
mhluongo Jul 11, 2014
df5e043
fix transaction test
chris-martin Jul 19, 2014
4982a52
expand send-to-bitcoin-address tests
chris-martin Jul 19, 2014
0c562c9
expand send-to-email-address tests
chris-martin Jul 19, 2014
4560646
code style (`is not None`)
chris-martin Jul 19, 2014
73a8bf9
add support for `idem` field on `send_money`
chris-martin Jul 19, 2014
d8bd9cf
circleci: set python version 2.7.5
chris-martin Jul 19, 2014
5ed6cd5
python3-style parens on print calls
chris-martin Aug 20, 2014
7beaafd
use str instead of basestring if python3
chris-martin Aug 20, 2014
5b7936f
use .format instead of % for string formatting
chris-martin Aug 20, 2014
eaa679a
remove leading 0 from integer literals
chris-martin Aug 20, 2014
a3d33c2
prefix relative imports with .
chris-martin Aug 20, 2014
d0f70e8
remove and ignore MANIFEST
chris-martin Aug 20, 2014
05f13d1
python3-compatible collections things
chris-martin Aug 20, 2014
612ca51
fix namedtuple optional params for python3
chris-martin Aug 20, 2014
e55fff7
explicit str/byte conversion for python3
chris-martin Aug 20, 2014
a46b6c5
xrange -> range
chris-martin Aug 20, 2014
a60215d
iteritems -> items
chris-martin Aug 20, 2014
c4dd86c
json.loads(response.content) -> response.json()
chris-martin Aug 20, 2014
3d6cbfb
map(...) -> list(map(...))
chris-martin Aug 20, 2014
c13ed0d
workaround for oauth2client in python3
chris-martin Aug 20, 2014
218e869
python-dateutil version: <2.0 to >=2.2
chris-martin Aug 20, 2014
0376394
add tox config to test python 2 and 3
chris-martin Aug 20, 2014
c98f769
update circle.yml to use tox
chris-martin Aug 20, 2014
c59b9b9
fix CircleCI build
chris-martin Aug 20, 2014
f3e71fa
Merge branch 'master' of github.com:sibblegp/coinbase_python
mhluongo Oct 11, 2014
aa4dfa9
Merge branch 'master' of github.com:cardforcoin/coinbase_python
mhluongo Oct 11, 2014
f3d1fea
Merge branch 'patch-1' of https://github.com/Jbusma/coinbase_python
mhluongo Oct 11, 2014
b400622
Add vim swap files to git ignore.
mhluongo Oct 11, 2014
563cc80
Assign a missing attr on CoinbaseAuth.
mhluongo Oct 11, 2014
8edffd1
Update the mock.
mhluongo Oct 11, 2014
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -34,5 +34,11 @@ nosetests.xml
.project
.pydevproject

# Vim
*.swp

# Other

/.idea/
/coinbase_oauth2/secrets.py
/coinbase_oauth2/secrets.py
/MANIFEST
14 changes: 0 additions & 14 deletions MANIFEST

This file was deleted.

2 changes: 2 additions & 0 deletions MANIFEST.in
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
README.md
coinbase/ca_certs.txt
10 changes: 7 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,12 @@ Automatic installation using [pip](http://pypi.python.org/pypi):

```python
from coinbase import CoinbaseAccount
account = CoinbaseAccount(JSON_OAUTH2_TOKEN)
transaction = account.send('gsibble@gmail.com', 1.0)
print transaction.status

print(CoinbaseAccount().exchange_rates['usd_to_btc'])

account = CoinbaseAccount(oauth2_credentials=JSON_OAUTH2_TOKEN)
transaction = account.send('recipient@example.com', 1.0)
print(transaction.status)
```

## Examples / Quickstart
Expand Down Expand Up @@ -91,6 +94,7 @@ Contributions are greatly appreciated. Please make all requests using built in
## Credits

- George Sibble &lt;gsibble@gmail.com&gt;
- Chris Martin &lt;ch.martin@gmail.com&gt;

## License

Expand Down
11 changes: 11 additions & 0 deletions circle.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
machine:
python:
version: 2.7.5
dependencies:
pre:
- pyenv global 3.3.2
override:
- pip install tox
test:
override:
- tox
Loading