Step1: Clone Repo
Last updated
Last updated
Make a fork of the Repo. Including cloning locally and adding an upstream.
Review Github’s instructions on how to make a pull request from a fork.
After that, you will get the following directory structure:
One indicator corresponds to one file, and the original files of all indicators are placed in it.
Many public methods that crawlers need to use are placed here. Such as data formatting, Redis tools, etc.
We need create a new folder in crawlers/indicators/spiders
For Example: mainstream_coin_long_short_ratio.
This folder needs to contain thress basic files:
Definition.md - This file contains background information about the indicator.
indicator_name.py - This file contains indicator logic code.
__init__.py - This file is to config your inidicator spider.