Bump `brokers.toml`, update ib and deribit sections
For `[ib]` adjust content to match changes to the `dockering/ib/README.rst` and for `[deribit]` toss in the WIP options related params for anyone who wants to play around with @nt's work.hist_backfill_fixes
parent
8339b39d9e
commit
614f1c00c5
|
@ -1,6 +1,5 @@
|
||||||
################
|
|
||||||
# ---- CEXY ----
|
# ---- CEXY ----
|
||||||
################
|
|
||||||
[binance]
|
[binance]
|
||||||
accounts.paper = 'paper'
|
accounts.paper = 'paper'
|
||||||
|
|
||||||
|
@ -13,28 +12,41 @@ accounts.spot = 'spot'
|
||||||
spot.use_testnet = false
|
spot.use_testnet = false
|
||||||
spot.api_key = ''
|
spot.api_key = ''
|
||||||
spot.api_secret = ''
|
spot.api_secret = ''
|
||||||
|
# ------ binance ------
|
||||||
|
|
||||||
|
|
||||||
[deribit]
|
[deribit]
|
||||||
|
# std assets
|
||||||
key_id = ''
|
key_id = ''
|
||||||
key_secret = ''
|
key_secret = ''
|
||||||
|
# options
|
||||||
|
accounts.option = 'option'
|
||||||
|
option.use_testnet = false
|
||||||
|
option.key_id = ''
|
||||||
|
option.key_secret = ''
|
||||||
|
# aux logging from `cryptofeed`
|
||||||
|
option.log.filename = 'cryptofeed.log'
|
||||||
|
option.log.level = 'DEBUG'
|
||||||
|
option.log.disabled = true
|
||||||
|
# ------ deribit ------
|
||||||
|
|
||||||
|
|
||||||
[kraken]
|
[kraken]
|
||||||
key_descr = ''
|
key_descr = ''
|
||||||
api_key = ''
|
api_key = ''
|
||||||
secret = ''
|
secret = ''
|
||||||
|
# ------ kraken ------
|
||||||
|
|
||||||
|
|
||||||
[kucoin]
|
[kucoin]
|
||||||
key_id = ''
|
key_id = ''
|
||||||
key_secret = ''
|
key_secret = ''
|
||||||
key_passphrase = ''
|
key_passphrase = ''
|
||||||
|
# ------ kucoin ------
|
||||||
|
|
||||||
|
|
||||||
################
|
|
||||||
# -- BROKERZ ---
|
# -- BROKERZ ---
|
||||||
################
|
|
||||||
[questrade]
|
[questrade]
|
||||||
refresh_token = ''
|
refresh_token = ''
|
||||||
access_token = ''
|
access_token = ''
|
||||||
|
@ -42,44 +54,55 @@ api_server = 'https://api06.iq.questrade.com/'
|
||||||
expires_in = 1800
|
expires_in = 1800
|
||||||
token_type = 'Bearer'
|
token_type = 'Bearer'
|
||||||
expires_at = 1616095326.355846
|
expires_at = 1616095326.355846
|
||||||
|
# ------ questrade ------
|
||||||
|
|
||||||
|
|
||||||
[ib]
|
[ib]
|
||||||
|
# define the (set of) host-port socketaddrs that
|
||||||
|
# brokerd.ib will scan to connect to an API endpoint
|
||||||
|
# (ib-gw or ib-tws listening instances)
|
||||||
hosts = [
|
hosts = [
|
||||||
'127.0.0.1',
|
'127.0.0.1',
|
||||||
]
|
]
|
||||||
# XXX: the order in which ports will be scanned
|
|
||||||
# (by the `brokerd` daemon-actor)
|
|
||||||
# is determined # by the line order here.
|
|
||||||
# TODO: when we eventually spawn gateways in our
|
|
||||||
# container, we can just dynamically allocate these
|
|
||||||
# using IBC.
|
|
||||||
ports = [
|
ports = [
|
||||||
4002, # gw
|
4002, # gw
|
||||||
7497, # tws
|
7497, # tws
|
||||||
]
|
]
|
||||||
|
|
||||||
# XXX: for a paper account the flex web query service
|
# When API endpoints are being scanned durin startup, the order
|
||||||
# is not supported so you have to manually download
|
# of user-defined-account "names" (as defined below) here
|
||||||
# and XML report and put it in a location that can be
|
# determines which py-client connection is given priority to be
|
||||||
# accessed by the ``brokerd.ib`` backend code for parsing.
|
# used for data-feed-requests by according to whichever client
|
||||||
flex_token = ''
|
# connected to an API endpoing which reported the equivalent
|
||||||
flex_trades_query_id = '' # live account
|
# account number for that name.
|
||||||
|
|
||||||
# when clients are being scanned this determines
|
|
||||||
# which clients are preferred to be used for data
|
|
||||||
# feeds based on the order of account names, if
|
|
||||||
# detected as active on an API client.
|
|
||||||
prefer_data_account = [
|
prefer_data_account = [
|
||||||
'paper',
|
'paper',
|
||||||
'margin',
|
'margin',
|
||||||
'ira',
|
'ira',
|
||||||
]
|
]
|
||||||
|
|
||||||
|
# For long-term trades txn (transaction) history
|
||||||
|
# processing (i.e your txn ledger with IB) you can
|
||||||
|
# (automatically for live accounts) query the FLEX
|
||||||
|
# report system for past history.
|
||||||
|
#
|
||||||
|
# (For paper accounts the web query service
|
||||||
|
# is not supported so you have to manually download
|
||||||
|
# an XML report and put it in a location that can be
|
||||||
|
# accessed by our `brokerd.ib` backend code for parsing).
|
||||||
|
#
|
||||||
|
flex_token = ''
|
||||||
|
flex_trades_query_id = '' # live account
|
||||||
|
|
||||||
|
# define "aliases" (names) for each account number
|
||||||
|
# such that the names can be reffed and logged throughout
|
||||||
|
# `piker.accounting` subsys and more easily
|
||||||
|
# referred to by the user.
|
||||||
|
#
|
||||||
|
# These keys will be the set exposed through the order-mode
|
||||||
|
# account-selection UI so that numbers are never shown.
|
||||||
[ib.accounts]
|
[ib.accounts]
|
||||||
# the order in which accounts will be selectable
|
paper = 'DU0000000' # <- literal account #
|
||||||
# in the order mode UI (if found via clients during
|
margin = 'U0000000'
|
||||||
# API-app scanning)when a new symbol is loaded.
|
ira = 'U0000000'
|
||||||
paper = 'XX0000000'
|
# ------ ib ------
|
||||||
margin = 'X0000000'
|
|
||||||
ira = 'X0000000'
|
|
||||||
|
|
Loading…
Reference in New Issue