[PLUS] Use Python to Query the DeriBit API & Save All Product Details to CSV

When people think of cryptocurrencies, most of the time they are thinking about the spot assets. But as popularity has soared over recent years, new derivatives are available for trading across multiple exchanges. DeriBit is an exchange that has spot, futures, and options trading of cryptocurrencies! Futures trading includes both Perpetual (no maturity date) and quarterly futures expiries. There are more than 1200+ options that are currently live on their platform. We have written the below code to pull all available instruments at DeriBit for USDC, BTC, and ETH products; and then save the results to a CSV file. Our code has every line commented, so you always know how to edit or understand what is being done!

These are some of the product details that are available and will be captured in this process: Tick size, taker commission, strike (if option), settlement period (month, day or week), the settlement currency (USDC, BTC, or ETH), the derivative's price index, and many more. The script is only 50 lines of code long, and includes extra line spaces for readability (so its actually even shorter!)

This is a premium post. Create Plus+ Account to view the live, working codebase for this article.

Notice: Information contained herein is not and should not be construed as an offer, solicitation, or recommendation to buy or sell securities. The information has been obtained from sources we believe to be reliable; however no guarantee is made or implied with respect to its accuracy, timeliness, or completeness. Author does not own the any crypto currency discussed. The information and content are subject to change without notice. CryptoDataDownload and its affiliates do not provide investment, tax, legal or accounting advice.

This material has been prepared for informational purposes only and is the opinion of the author, and is not intended to provide, and should not be relied on for, investment, tax, legal, accounting advice. You should consult your own investment, tax, legal and accounting advisors before engaging in any transaction. All content published by CryptoDataDownload is not an endorsement whatsoever. CryptoDataDownload was not compensated to submit this article. Please also visit our Privacy policy; disclaimer; and terms and conditions page for further information.

Latest Posts
Follow Us
Notify me of new content