Deribit Scrapping Interface
Project description
TODO: make readme
Installation
Python 3.10 or later. To install run:
pip install scrapperDeribit
Configuration explained
Each run of DeribitClient will take configuration file as input.
mysql:
host - mySQL host
user: mySQL user with write access
password: mySQL password
database: mySQL db name
use_bathes_to_record: unused, will be deprecated soon
reconnect_max_attempts: number of reconnect try on DB errors
reconnect_wait_time: time in sec before new reconnect try
hdf5:
hdf5_database_directory: string with hdf5 storage path
record_system:
use_batches_to_record: True or False. Unable batch system
number_of_tmp_tables: number of circular batch tables
size_of_tmp_batch_table: number of lines in one table
instrumentNameToIdMapFile: unused, will be deprecated soon \
clean_database_at_startup: True or False CleanUp on start
user_data:
test_net:
client_id: deribit client id
client_secret: deribit client secret
production:
client_id: None
client_secret: None
externalModules:
add_order_manager: True or False
add_instrument_manager: True or False
orderBookScrapper:
scrapper_body: right now [OrderBook, Trades, OwnOrderChange, Portfolio] available. You can use only some of them
depth: order book depth/ Highly recommend to use Union[1, 10, 100]
test_net: True or False
currency: BTC or ETH or SOL
enable_traceback: False # False - default
enable_database_record: True or False. Enable database record?
clean_database: False unused, will be deprecated soon
hearth_beat_time: default 60. connection ping-pong time \
group_in_limited_order_book: none (better don't touch)
raise_error_at_synthetic: True or False. Should scrapper raise error when underlying for maturity is synthetic?
logger_level: WARN | INFO | ERROR. Logger level. INFO can broke buffer when full surface collecting
select_all_order_book: True
only_api_orders_processing: True
database_daemon: mysql | hdf5
add_extra_instruments: example ['BTC-5MAY23-28000-C', 'BTC-5MAY23-28000-P', 'BTC-PERPETUAL']. List of instruments that should be collected
use_configuration_to_select_maturities: False used in several scripts with pre-selected configuration about maturities. Will be deprecated soon
maturities_configuration_path: "Maturities_configuration.yaml" Will be deprecated soon
Documentation
TODO: add documentation coverage badge
Testing
TODO: add testing coverage badge
TODO: link to repo with ZeroMQ test server
Example (scrapping data)
TODO: add
Example (make and connect own subscription)
TODO: add
Example (make and connect own strategy)
TODO: add
PR Pipeline
TODO: add
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
Built Distribution
Hashes for scrapperDeribit-0.0.31-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | bdfc064747371744119a517623dac1dd3f1a8c890de6757950935cb498e46b4f |
|
MD5 | 3389fa5fbd144c0a0cc12ecf39d67b32 |
|
BLAKE2b-256 | 81ea88e27bab4e86f6ef78181d7d6b4e64db2a118064b1304f66f74073f9fc34 |