Giter Club home page Giter Club logo

bybit-predict's Introduction

KageRyo Developer 👨‍💻

KageRyo

A Student && Developer from Taiwan 🇹🇼

Who am I: CHANG, CHIEN-HSUN 張健勳
Also known as: 影凌 KageRyo K6 KRyo

🎓 About Me

I'm a student from Taiwan passionate about creating open-source projects and keep learning. I love to experiment with new ideas and welcome collaboration! CodeRyoStudio

  • 📄 My Autobiography
  • 🌱 Currently learning: Always expanding my knowledge in various tech fields
  • 🔭 Working on: PAIA(Playful AI Arena), Open-source projects and personal development
  • 💼 Intern at: PAIA-Tech 帕亞科技
  • 💬 Ask me about: Programming Education, open-source projects, and my internship experience
  • More About ME
  • I ♥️ Coding I ♥️ Open Source I ♥️ Learning I ♥️ Taiwan
Life is like coding,
it all starts with
print("Hello World");

🛠 Skills

Programming Languages && Markup Languages

python javascript html5 css3 java cplusplus c visualbasic markdown

Frameworks && Libraries

django react fastapi numpy pandas scikit-learn

Tools && Technologies

git github gitlab docker vscode pycharm intellij androidstudio vim

Operating Systems

linux macos windows

🤝 Connect with Me

yinglaceook yinglnstagram_ k6dev aTMb2EBsBt

🌐 Website: https://kageryo.coderyo.com/
📧 Contact: [email protected]

📊 GitHub Stats

GitRoll Profile Badge Top Languages

🎉 Support My Work

Buy Me a Coffee at ko-fi.com

bybit-predict's People

Contributors

kageryo avatar rraaru avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

bybit-predict's Issues

註解錯誤

from pybit import spot # 查詢實際交易市場的行情資訊
應該改成 現貨接口
from pybit import usdt_perpetual # 查詢 USDT 永續合約的行情資訊
應該改成 USDT永續合約接口

refactor: 重構檔案格式與路徑分類,使其更模組化與正確分類。

調整整題檔案路徑如下:

Bybit-Predict/
├── .github/
│   └── ...
├── docs/
│   ├── README.md
│   └── ...
├── src/
│   ├── __init__.py
│   ├── config.py
│   ├── data_utils.py
│   ├── utils.py         # 原本為 imports.py
│   ├── analysis/
│   │   └── kline.py
│   ├── bot.py          # 原本的 main.py 重命名
│   └── ...
├── tests/
│   └── ...
├── data/
│   ├── data.json
│   └── ...
└── main.py             # 新增的程式入口點
  • .github/ 存放 GitHub 相關設定檔
  • docs/ 存放文件
  • src/ 存放程式碼
  • init.py 使 src 成為一個 Python 模組
  • config.py 存放設置相關程式碼
  • data_utils.py 存放數據處理相關程式碼
  • utils.py 集中導入第三方函式酷
  • analysis/ 存放數據分析相關程式碼
  • bot.py 機器人主要功能代碼
  • tests/ 存放測試程式
  • data/ 存放資料檔案
  • main.py 作為整個應用程式的入口點

bug: timestamp not change when kline fetch.

BybitAPI 改版至 v5.0

由於bybit的API改至v5.0有破壞性改動,
所以原先的版本直接死掉,
目前每次抓到的kline不會變

已完成

已完成以下變動:

  • 依照Bybit文件調整kline擷取方式。
  • 原本時間戳是秒級,現在改成毫秒級。

未完成

輸出結果像這樣:

{'retCode': 0, 'retMsg': 'OK', 'result': {'symbol': 'BTCUSDT', 'category': '', 'list': [['1711612800000', '70467', '71084', '70352.5', '70733', '17548.532', '1241192933.652']]}, 'retExtInfo': {}, 'time': 1711639097748}
['1711612800000', '70467', '71084', '70352.5', '70733', '17548.532']
1711610037800
{'retCode': 0, 'retMsg': 'OK', 'result': {'symbol': 'BTCUSDT', 'category': '', 'list': [['1711612800000', '70467', '71084', '70352.5', '70733', '17548.532', '1241192933.652']]}, 'retExtInfo': {}, 'time': 1711639098355}
['1711612800000', '70467', '71084', '70352.5', '70733', '17548.532']
1711610024400
{'retCode': 0, 'retMsg': 'OK', 'result': {'symbol': 'BTCUSDT', 'category': '', 'list': [['1711612800000', '70467', '71084', '70352.5', '70733', '17548.532', '1241192933.652']]}, 'retExtInfo': {}, 'time': 1711639098833}
['1711612800000', '70467', '71084', '70352.5', '70733', '17548.532']
1711610011000
  • 第一個是我在klineStatus裡面print(kline_data)
  • 第二個是原本在saveData那邊print(kline) #之前就有的
  • 第三個是我在klineStatus裡面print(times)
  • 那確實發現times有在改變,可是似乎沒有被讀進去klineStatus的session.get中。

貢獻指南

請先於pybit_api_v5分支中嘗試解決問題,若問題解決提交Pull Requests經review後沒問題我會再合併至此專案主分支。

變數命名錯誤

upK = [] # 高於平均的多頭K線
downK = [] # 高於平均的空頭K線
變數名應該改成longK和shortK

feat: Completed update to Bybit API v5.0

Why

本程式原使用 Bybit API 3.0 進行撰寫,而 Bybit API 更新至 5.0 時造成部分破壞性改動,為此需要完成所有更新項目的內容與修正才能使程得正常運作。

BUG

問題在 #14 時被發現,目前問題為 #15

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.