I am trying to integrate the new Coinbase python library. I want to make send_money work but I keep getting this error
transaction = account.send_money(address, bitcoins)
File "C:\Python27\lib\site-packages\coinbase\model.py", line 360, in send_money
'Failed to send money')
File "C:\Python27\lib\site-packages\coinbase\error.py", line 58, in build_api_error
raise error
APIError: Failed to send money
My python code:
bitcoins = 0.0001
# address = a bitcoin wallet address
client = Client(API_KEY, API_SECRET)
account = client.get_account()
transaction = account.send_money(address, str(bitcoins))
I can check my balance, so account is working. Also, all the permissions are granted in the API settings in Coinbase website. Can someone suggest what to do?