KingData Open Platform
  • Open Platform Introduction
  • How to develop an indicator
    • Step1: Clone Repo
    • Step2: Write Definition.md
    • Step3: Write Logic Code
    • Step4: Write Template
    • Step5: Test and Pull Request
  • Examples
    • Demo with JSON data
    • Demo with HTML data
    • Demo with Socket Data
  • ⚠️ Attention && FAQ
    • How to store data
  • Related Links
  • API DOC
    • Integrate KingData content into your app
Powered by GitBook
On this page
  • crawlers/indicators/spiders
  • crawlers/utils
  • Create new indicator
  1. How to develop an indicator

Step1: Clone Repo

PreviousHow to develop an indicatorNextStep2: Write Definition.md

Last updated 2 years ago

Make a of the . Including cloning locally and adding an upstream.

Review Github’s on how to make a pull request from a fork.

After that, you will get the following directory structure:

crawlers/indicators/spiders

One indicator corresponds to one file, and the original files of all indicators are placed in it.

crawlers/utils

Many public methods that crawlers need to use are placed here. Such as data formatting, Redis tools, etc.

Create new indicator

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.

fork
Repo
instructions