
Research
NPM targeted by malware campaign mimicking familiar library names
Socket uncovered npm malware campaign mimicking popular Node.js libraries and packages from other ecosystems; packages steal data and execute remote code.
A Python wrapper for seamless integration with Deribit's trading API, offering easy access to market data, account management, and trading operations.
This Python script provides a comprehensive client for interacting with the Deribit API. It encapsulates functionality for both public and private endpoints, covering market data, account information, trading operations, and more. It supports both the production and test environments, making it suitable for developers at all stages of application development.
Install deribit-wrapper
using pip:
pip install deribit-wrapper
Instantiate the DeribitClient
class with the appropriate parameters:
client_id
: Your Deribit client ID.client_secret
: Your Deribit client secret.simulated
: Set to True
to use the test environment or False
to use the production environment.env
: Choose between 'test'
and 'prod'
environments. Defaults to 'prod'
.Example:
from deribit_wrapper import DeribitClient
client = DeribitClient(client_id='your_client_id', client_secret='your_client_secret')
get_contract_size(asset)
get_currencies()
get_ticker(asset)
get_complete_market_book()
get_account_summary(currency)
get_positions(currency, kind)
order(asset, amount, limit=None, label=None, reduce_only=False)
market_order(asset, amount, label=None, reduce_only=False)
bulk_order(orders, label=None)
ticker_info = client.get_ticker('BTC-25JUN21')
print(ticker_info)
order_response = client.market_order('BTC-25JUN21', 1)
print(order_response)
account_summary = client.get_account_summary('BTC')
print(account_summary)
If you encounter any issues or have questions about using deribit-wrapper
,
please create an issue in the GitHub repository.
Contributions to deribit-wrapper
are welcome!
Whether it's bug reports, feature requests, or code contributions, please feel free to make a contribution. For code
contributions, please:
Please ensure your code adheres to the project's coding standards and includes appropriate tests.
deribit-wrapper
is released under the MIT License. See the LICENSE file for more details.
FAQs
A Python wrapper for seamless integration with Deribit's trading API, offering easy access to market data, account management, and trading operations.
We found that deribit-wrapper demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Research
Socket uncovered npm malware campaign mimicking popular Node.js libraries and packages from other ecosystems; packages steal data and execute remote code.
Research
Socket's research uncovers three dangerous Go modules that contain obfuscated disk-wiping malware, threatening complete data loss.
Research
Socket uncovers malicious packages on PyPI using Gmail's SMTP protocol for command and control (C2) to exfiltrate data and execute commands.