Code Monkey home page Code Monkey logo

pythonliquidity's Introduction

Python Liquidity

Description

The following project compares the bid ask spreads and turnovers of various ETP crypto products.

How to use

  • The data file is a prerequisite for this code to run. The data file has to be in the same folder as this ipynb file or the pandas read excel function will not register. As of right now I have reduced the file name from ProductComparison.xlsx to pc.xlsx to make it easier. But depending on the file name, this line will change (I have commented down the lines that need to be changed).

  • Pandas and matplotlib were utilized in order to work with the data and plot the resulting figures.

  • There are two dictionaries in the beginning, the months were used to simplify the approach of dates, thus it does not need to be changed. However, sharename has been updated to the most current product tickers and their families. With the addition of new products, this needs to be updated with the format of 'Ticker':'Product Family'.

  • The pdf function to output all the images as a single pdf needs to be changed. Currently, a package that identifies the size of the images and sizes them correctly has not been found. Will update soon but in the meantime have used smallpdf online in order to make a single pdf.

  • Nothing else in this code needs to be changed as it will read all the files, name it accordingly, and output the data. The only thing to look out for is the product family which may not be shown in the legend of the graph. This is updated as of April, 2022.

  • Note to make sure this works properly we just have to restart kernel and update all cells.

pythonliquidity's People

Contributors

kevin-kangg avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.