CoinFalcon Python Package
The CoinFalcon Python Package provides convenient access to the CoinFalcon API from applications written in the Python language.
Usage
The client needs to be configured with your account's key and secret which is available in your CoinFalcon Dashboard:
API Client
from coin_falcon.client import Client
client = Client(key, secret)
It is also possible to set up an API endpoint and version:
client = Client(key, secret, endpoint)
Defaults:
ENDPOINT = 'https://coinfalcon.com'
VERSION = 1
Accounts
res = client.accounts()
print(res)
Create order
res = client.create_order({'market': 'ETH-BTC', 'operation_type': 'limit_order', 'order_type': 'buy', 'size': '0.01', 'price': '0.05'})
print(res)
Cancel order
res = client.cancel_order('547a730e-42b9-4dab-9abf-ed37b08a2947')
print(res)
List orders
res = client.my_orders()
print(res)
res = client.my_orders({'market': 'ETH-BTC'})
print(res)
List trades
res = client.my_trades({'market': 'ETH-BTC'})
print(res)
Deposit address
res = client.deposit_address('btc')
print(res)
Deposit history
res = client.deposit_history()
print(res)
Deposit details
res = client.deposit_details('bf6f203a-8f1c-4594-ae49-6c68ab804581')
print(res)
List orderbook
res = client.orderbook('ETH-BTC')
print(res)
res = client.orderbook('ETH-BTC', {'level': 3})
print(res)
Fees
res = client.fees()
print(res)
Withdrawal history
res = client.withdrawal_history()
print(res)
Create withdrawal
res = client.create_withdrawal({'currency': 'btc', 'address': '2N8hwP1WmJrFF5QWABn38y63uYLhnJYJYTF', 'amount': '0.1'})
print(res)
Withdrawal details
res = client.withdrawal_details('a2a70c40-cad3-46c7-bb4f-a6160de1eaf6')
print(res)
List market's trades
res = client.trades('ETH-BTC')
print(res)
Websocket Client
from coin_falcon.websocket_client import WebsocketClient
ws_client = WebsocketClient(key, secret)
Set up channels
ws_client.channels.append({ "command": "subscribe", "identifier": "{\"channel\":\"OrderbookChannel\",\"market\":\"ETH-BTC\"}" })
ws_client.channels.append({ "command": "subscribe", "identifier": "{\"channel\":\"UserTradesChannel\",\"market\":\"ETH-BTC\"}" })
Run feed
ws_client.feed()
Release files for coin-falcon 0.0.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| coin_falcon-0.0.3.tar.gz | 4.0 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| coin_falcon-0.0.3-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 9.5 kB
Release files / coin_falcon-0.0.3.tar.gz
| Download URL | coin_falcon-0.0.3.tar.gz |
|---|---|
| Size | 4.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
ee57d59c5e24e476f1d49cdb09c81622915f56441cfcc64d4f209c557dc38ca7
|
|
BLAKE2b-256 checksum How to use checksums |
dcf6746a340850609d965fd202b247315a9cfe1f0593f57fa60a55fe910b6d05
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Release files / coin_falcon-0.0.3-py3-none-any.whl
| Download URL | coin_falcon-0.0.3-py3-none-any.whl |
|---|---|
| Size | 5.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
e0c15edeb10ed574dbf41dab86429cd0d6e0dac3877a23e52e575f20ace721a6
|
|
BLAKE2b-256 checksum How to use checksums |
59553cb5a1b8841845e9b6b2c85ea7ca8c6054cad7e5b6c092c5146a21f468ad
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |