filmov
tv
Coinbase Advanced Trade API Tutorial | Official Python SDK

Показать описание
In this video I show you how to get started with the official Coinbase Advanced Trade Python SDK. This SDK is maintained by Coinbase with all the latest features of Coinbase Advanced Trade. Later this summer I’ll be integrating this SDK with my Python wrapper so that we get all the updates from Coinbase for free and we get to keep all the trading strategy work that we’ve already built out for fear and greed buys, the Alphasquared API, and maybe other indicators in the future from places like Glassnode.
Code we executed in this video:
from json import dumps
###Replace with your own API Keys
api_key = "organizations/{org_id}/apiKeys/{key_id}"
api_secret = "-----BEGIN EC PRIVATE KEY-----\nYOUR PRIVATE KEY\n-----END EC PRIVATE KEY-----\n"
client = RESTClient(api_key=api_key, api_secret=api_secret)
###Get account balances
print(dumps(accounts, indent=2))
###Place a buy order for $1 of BTC-USDC
print(dumps(order, indent=2))
0:00 Coinbase Advanced Trade SDK
1:15 Installing the SDK
1:50 Authenticate with Coinbase
7:47 Making Buy Orders
10:08 Advanced Features
11:34 Trading Bots
Code we executed in this video:
from json import dumps
###Replace with your own API Keys
api_key = "organizations/{org_id}/apiKeys/{key_id}"
api_secret = "-----BEGIN EC PRIVATE KEY-----\nYOUR PRIVATE KEY\n-----END EC PRIVATE KEY-----\n"
client = RESTClient(api_key=api_key, api_secret=api_secret)
###Get account balances
print(dumps(accounts, indent=2))
###Place a buy order for $1 of BTC-USDC
print(dumps(order, indent=2))
0:00 Coinbase Advanced Trade SDK
1:15 Installing the SDK
1:50 Authenticate with Coinbase
7:47 Making Buy Orders
10:08 Advanced Features
11:34 Trading Bots
Комментарии