ผมจะเริ่มศึกษาและฝึกวิธีเขียนโปรแกรมเทรด ไปพร้อมกับเขียนบทความนี้นะครับ สำหรับเพื่อนๆท่านไหนสนใจก็สามารถเริ่มทำตามได้ทีละขั้นตอนเลย
นี่คือลิงก์ github : https://github.com/iqoptionapi/iqoptionapi
ก่อนอื่นเลยต้องติดตั้ง python โดยสามารถดูวิธีติดตั้งได้ที่ : https://ake-remake.blogspot.com/2021/04/python.html
ติดตั้งโมดูลเพิ่มเติมดังนี้
ใช้คำสั่งใน command prompt (cmd)
pip install websocket-client==0.56จากนั้นติดตั้งโมดูล iqoptionapi ด้วยคำสั่ง
หลังจากติดตั้งตามด้านบน สำเร็จแล้วpip install -U https://github.com/iqoptionapi/iqoptionapi/archive/refs/heads/master.zip
ทดสอบเชื่อมต่อไปยัง iq option แต่ต้องมีบัญชีอยู่ก่อนแล้วนะครับ
import time
from iqoptionapi.stable_api import IQ_Option
iq=IQ_Option("อีเมล","พาสเวิด")
status, reason = iq.connect()
print('##### Status Check #####')
print('Status:', status)
print('Reason:', reason)
print("Email:", iq.email)
0 ความคิดเห็น