coinbasepro-python | The unofficial Python client for the Coinbase Pro API | Cryptocurrency library
kandi X-RAY | coinbasepro-python Summary
kandi X-RAY | coinbasepro-python Summary
The unofficial Python client for the Coinbase Pro API
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
- Start the connection
- Connect to the API
- Generate authentication headers
- Disconnects from the server
- Called when a message is received
- Match order
- Add an order to the list
- Change size of order
- Place a sell order
- Place a order
- Returns a list of fillsills
- Send a paginated message
- Create a report
- Send a message to API
- Withdraw funds to crypto address
- Place a buy order
- Get a specific report
- Close position
- Withdraw a payment method
- Withdraw funds to a coinbase account
- Transfer a margin profile
- Create a payment method
coinbasepro-python Key Features
coinbasepro-python Examples and Code Snippets
from subprocess import run
from time import sleep
# Path and name to the script you are trying to start
file_path = "CBPRO_BTC_USDC_V3.py"
print('program started')
restart_timer = 60
def start_script():
try:
# Make sure 'pyth
".. SET invested_money = ?"
c.execute(".. = ?", (new,))
import cbpro #, hmac, hashlib, time,
api_key = YOUR_API_KEY
secret_key = YOUR_B64SECRET
passphrase = YOUR_PASSPHRASE
# message = message.encode('ascii')
# hmac_key = base64.b64decode(secret_key)
# signature = hmac.new(hmac_key, message,
import cbpro
import numpy
import time
apiKey = "xxxxxxxxxxxxxx"
apiSecret = "xxxxxxxxxxxxxxxx"
passphrase = "xxxxxxx"
auth_client = cbpro.AuthenticatedClient(apiKey,apiSecret,passphrase)
currency = 'BTC-USD'
auth_client.buy(price='100.00
Community Discussions
Trending Discussions on coinbasepro-python
QUESTION
I'm using the Python API for Coinbase Pro -- https://github.com/danpaquin/coinbasepro-python. Is there a programmatic way I can calculate what pricing tier I'm in prior to submitting an order? I would like to get an idea of the fees before I place the order. I notice the authenticated client provides a way to get accounts
...ANSWER
Answered 2021-Nov-29 at 03:31First, you may want to review the information you just posted as it seems there may be sensitive data contained within the post. I'm not certain because I'm not familiar with the coinbase api.
Second, I'm pretty sure you can find a chart with the price-fee pairs in it. See the link below.
https://help.coinbase.com/en/coinbase/trading-and-funding/pricing-and-fees/fees
QUESTION
For reference, this is the GitHub for the python version: https://github.com/danpaquin/coinbasepro-python
My code is meant to distribute my USD balance evenly to max 3 accounts. Below is the LOG created for my code, proving it's values to be accurate
...ANSWER
Answered 2021-Jun-28 at 14:45After checking the code, I have seen that place_market_order
[1] requires either "size" or "funds" to place the order [2].
Based on your example, you are passing "6.08" positionally. This means that you are filling the "size" parameter, which is defined as the base currency, in your case "FORTH". Given the fact that FORTH is above 19$ (as per time of writing), this means that you are trying to use 115.52$, instead of 6.08, thus using the full amount.
If you want to use USD (which is the Quote asset for the FORTHUSD symbol, you should use Bot.place_market_order('FORTH-USD', 'buy', funds='6.08')
QUESTION
i would like to test the APIs and therefore need money on my sandbox account. How can i deposit fake money for test purposes? this sounds like a quite basic question but i cannot get any information on it:(
Unfortunately the GUI does not provide the possibility. I also tried in python but this does not work either. (see https://github.com/danpaquin/coinbasepro-python)
Has anyone had this issue as well? How can this be solved?
Thank you very much in Advance. Best regards, John
...ANSWER
Answered 2020-Apr-27 at 09:16There is the DEPOSIT/WITHDRAW buttons on the UI. You can see the buttons on the right of this page after logging. In the prompt after clicking DEPOSIT, choose the currency you want the test money in, then choose Coinbase.com as the source.
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install coinbasepro-python
https://docs.pro.coinbase.com/
You may manually install the project or use pip:
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page