Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
1391 commits
Select commit Hold shift + click to select a range
c860b6e
Commit 788 of 1000
theshadow76 Jan 19, 2025
873f8a5
Commit 789 of 1000
theshadow76 Jan 19, 2025
4dea743
Commit 790 of 1000
theshadow76 Jan 19, 2025
4d19eb3
Commit 791 of 1000
theshadow76 Jan 19, 2025
fd7122f
Commit 792 of 1000
theshadow76 Jan 19, 2025
ca48e1f
Commit 793 of 1000
theshadow76 Jan 19, 2025
1a75f9f
Commit 794 of 1000
theshadow76 Jan 19, 2025
bbc294c
Commit 795 of 1000
theshadow76 Jan 19, 2025
ea241e1
Commit 796 of 1000
theshadow76 Jan 19, 2025
1318246
Commit 797 of 1000
theshadow76 Jan 19, 2025
9e88816
Commit 798 of 1000
theshadow76 Jan 19, 2025
095594d
Commit 799 of 1000
theshadow76 Jan 19, 2025
960bbe8
Commit 800 of 1000
theshadow76 Jan 19, 2025
bedd111
Commit 801 of 1000
theshadow76 Jan 19, 2025
25945c3
Commit 802 of 1000
theshadow76 Jan 19, 2025
d3da3aa
Commit 803 of 1000
theshadow76 Jan 19, 2025
a43d4fc
Commit 804 of 1000
theshadow76 Jan 19, 2025
cdc470c
Commit 805 of 1000
theshadow76 Jan 19, 2025
e57929a
Commit 806 of 1000
theshadow76 Jan 19, 2025
5661ebf
Commit 807 of 1000
theshadow76 Jan 19, 2025
95abc6c
Commit 808 of 1000
theshadow76 Jan 19, 2025
3b539cc
Commit 809 of 1000
theshadow76 Jan 19, 2025
aa7eb83
Commit 810 of 1000
theshadow76 Jan 19, 2025
3925a9f
Commit 811 of 1000
theshadow76 Jan 19, 2025
d17cca5
Commit 812 of 1000
theshadow76 Jan 19, 2025
92e3272
Commit 813 of 1000
theshadow76 Jan 19, 2025
4961266
Commit 814 of 1000
theshadow76 Jan 19, 2025
726267e
Commit 815 of 1000
theshadow76 Jan 19, 2025
d302c8f
Commit 816 of 1000
theshadow76 Jan 19, 2025
246e02b
Commit 817 of 1000
theshadow76 Jan 19, 2025
fd53c63
Commit 818 of 1000
theshadow76 Jan 19, 2025
3940e60
Commit 819 of 1000
theshadow76 Jan 19, 2025
6904a9d
Commit 820 of 1000
theshadow76 Jan 19, 2025
0683cef
Commit 821 of 1000
theshadow76 Jan 19, 2025
d2971ad
Commit 822 of 1000
theshadow76 Jan 19, 2025
b8f3257
Commit 823 of 1000
theshadow76 Jan 19, 2025
16ae3b8
Commit 824 of 1000
theshadow76 Jan 19, 2025
3a82776
Commit 825 of 1000
theshadow76 Jan 19, 2025
95137b6
Commit 826 of 1000
theshadow76 Jan 19, 2025
aa73f2a
Commit 827 of 1000
theshadow76 Jan 19, 2025
709e130
Commit 828 of 1000
theshadow76 Jan 19, 2025
5cf5a32
Commit 829 of 1000
theshadow76 Jan 19, 2025
e7db5a7
Commit 830 of 1000
theshadow76 Jan 19, 2025
bdba9b0
Commit 831 of 1000
theshadow76 Jan 19, 2025
f9c9e27
Commit 832 of 1000
theshadow76 Jan 19, 2025
4e11e5e
Commit 833 of 1000
theshadow76 Jan 19, 2025
82cd04d
Commit 834 of 1000
theshadow76 Jan 19, 2025
4a4f8ff
Commit 835 of 1000
theshadow76 Jan 19, 2025
a1615a7
Commit 836 of 1000
theshadow76 Jan 19, 2025
9a1d0bb
Commit 837 of 1000
theshadow76 Jan 19, 2025
469219f
Commit 838 of 1000
theshadow76 Jan 19, 2025
cfa5bab
Commit 839 of 1000
theshadow76 Jan 19, 2025
3a68557
Commit 840 of 1000
theshadow76 Jan 19, 2025
e723118
Commit 841 of 1000
theshadow76 Jan 19, 2025
e07f982
Commit 842 of 1000
theshadow76 Jan 19, 2025
ce657f6
Commit 843 of 1000
theshadow76 Jan 19, 2025
31b2ba9
Commit 844 of 1000
theshadow76 Jan 19, 2025
74baaba
Commit 845 of 1000
theshadow76 Jan 19, 2025
d2aa167
Commit 846 of 1000
theshadow76 Jan 19, 2025
8402772
Commit 847 of 1000
theshadow76 Jan 19, 2025
323965e
Commit 848 of 1000
theshadow76 Jan 19, 2025
5f225b7
Commit 849 of 1000
theshadow76 Jan 19, 2025
c730144
Commit 850 of 1000
theshadow76 Jan 19, 2025
a49570d
Commit 851 of 1000
theshadow76 Jan 19, 2025
d4208c5
Commit 852 of 1000
theshadow76 Jan 19, 2025
9b67bc1
Commit 853 of 1000
theshadow76 Jan 19, 2025
d0c6853
Commit 854 of 1000
theshadow76 Jan 19, 2025
8539812
Commit 855 of 1000
theshadow76 Jan 19, 2025
6ea0eeb
Commit 856 of 1000
theshadow76 Jan 19, 2025
27803d5
Commit 857 of 1000
theshadow76 Jan 19, 2025
a107a19
Commit 858 of 1000
theshadow76 Jan 19, 2025
4fdaf8d
Commit 859 of 1000
theshadow76 Jan 19, 2025
02a0c74
Commit 860 of 1000
theshadow76 Jan 19, 2025
892e9cb
Commit 861 of 1000
theshadow76 Jan 19, 2025
f6fd29b
Commit 862 of 1000
theshadow76 Jan 19, 2025
cd1db90
Commit 863 of 1000
theshadow76 Jan 19, 2025
d3c4a97
Commit 864 of 1000
theshadow76 Jan 19, 2025
1543e18
Commit 865 of 1000
theshadow76 Jan 19, 2025
0702192
Commit 866 of 1000
theshadow76 Jan 19, 2025
4076fc7
Commit 867 of 1000
theshadow76 Jan 19, 2025
be7ff44
Commit 868 of 1000
theshadow76 Jan 19, 2025
3e94792
Commit 869 of 1000
theshadow76 Jan 19, 2025
980e762
Commit 870 of 1000
theshadow76 Jan 19, 2025
32eaeac
Commit 871 of 1000
theshadow76 Jan 19, 2025
daa9d74
Commit 872 of 1000
theshadow76 Jan 19, 2025
28a1146
Commit 873 of 1000
theshadow76 Jan 19, 2025
63f5f28
Commit 874 of 1000
theshadow76 Jan 19, 2025
9226a02
Commit 875 of 1000
theshadow76 Jan 19, 2025
9d19bdc
Commit 876 of 1000
theshadow76 Jan 19, 2025
d36a65d
Commit 877 of 1000
theshadow76 Jan 19, 2025
48c0802
Commit 878 of 1000
theshadow76 Jan 19, 2025
0d3b022
Commit 879 of 1000
theshadow76 Jan 19, 2025
7ba0868
Commit 880 of 1000
theshadow76 Jan 19, 2025
fc7eb01
Commit 881 of 1000
theshadow76 Jan 19, 2025
c4773a9
Commit 882 of 1000
theshadow76 Jan 19, 2025
469ce53
Commit 883 of 1000
theshadow76 Jan 19, 2025
7b50701
Commit 884 of 1000
theshadow76 Jan 19, 2025
bfefded
Commit 885 of 1000
theshadow76 Jan 19, 2025
8ba7926
Commit 886 of 1000
theshadow76 Jan 19, 2025
d80ab5a
Commit 887 of 1000
theshadow76 Jan 19, 2025
e5fa498
Commit 888 of 1000
theshadow76 Jan 19, 2025
b93aa67
Commit 889 of 1000
theshadow76 Jan 19, 2025
a3045f6
Commit 890 of 1000
theshadow76 Jan 19, 2025
08101e4
Commit 891 of 1000
theshadow76 Jan 19, 2025
b4f3c9b
Commit 892 of 1000
theshadow76 Jan 19, 2025
ca925fb
Commit 893 of 1000
theshadow76 Jan 19, 2025
5c2e302
Commit 894 of 1000
theshadow76 Jan 19, 2025
09d438e
Commit 895 of 1000
theshadow76 Jan 19, 2025
69557f3
Commit 896 of 1000
theshadow76 Jan 19, 2025
33a6b3e
Commit 897 of 1000
theshadow76 Jan 19, 2025
7fcfe4d
Commit 898 of 1000
theshadow76 Jan 19, 2025
6f1d43f
Commit 899 of 1000
theshadow76 Jan 19, 2025
c5e58d6
Commit 900 of 1000
theshadow76 Jan 19, 2025
eaed711
Commit 901 of 1000
theshadow76 Jan 19, 2025
1bc5512
Commit 902 of 1000
theshadow76 Jan 19, 2025
59c9ae4
Commit 903 of 1000
theshadow76 Jan 19, 2025
5d52630
Commit 904 of 1000
theshadow76 Jan 19, 2025
2714c25
Commit 905 of 1000
theshadow76 Jan 19, 2025
43faccb
Commit 906 of 1000
theshadow76 Jan 19, 2025
2c0bef6
Commit 907 of 1000
theshadow76 Jan 19, 2025
b22c171
Commit 908 of 1000
theshadow76 Jan 19, 2025
ca94e49
Commit 909 of 1000
theshadow76 Jan 19, 2025
bb6d724
Commit 910 of 1000
theshadow76 Jan 19, 2025
f771315
Commit 911 of 1000
theshadow76 Jan 19, 2025
8c375e7
Commit 912 of 1000
theshadow76 Jan 19, 2025
45089c6
Commit 913 of 1000
theshadow76 Jan 19, 2025
fb60c2b
Commit 914 of 1000
theshadow76 Jan 19, 2025
410bb4c
Commit 915 of 1000
theshadow76 Jan 19, 2025
448644a
Commit 916 of 1000
theshadow76 Jan 19, 2025
8a92b5e
Commit 917 of 1000
theshadow76 Jan 19, 2025
7123532
Commit 918 of 1000
theshadow76 Jan 19, 2025
4b1f8a4
Commit 919 of 1000
theshadow76 Jan 19, 2025
4cba758
Commit 920 of 1000
theshadow76 Jan 19, 2025
1e27cb2
Commit 921 of 1000
theshadow76 Jan 19, 2025
334715b
Commit 922 of 1000
theshadow76 Jan 19, 2025
2a4c037
Commit 923 of 1000
theshadow76 Jan 19, 2025
34e3ad8
Commit 924 of 1000
theshadow76 Jan 19, 2025
9b6a9fe
Commit 925 of 1000
theshadow76 Jan 19, 2025
83194b0
Commit 926 of 1000
theshadow76 Jan 19, 2025
44e2af9
Commit 927 of 1000
theshadow76 Jan 19, 2025
b46e556
Commit 928 of 1000
theshadow76 Jan 19, 2025
066d138
Commit 929 of 1000
theshadow76 Jan 19, 2025
07cea78
Commit 930 of 1000
theshadow76 Jan 19, 2025
4753d74
Commit 931 of 1000
theshadow76 Jan 19, 2025
00636e7
Commit 932 of 1000
theshadow76 Jan 19, 2025
f29fe4c
Commit 933 of 1000
theshadow76 Jan 19, 2025
e0d330f
Commit 934 of 1000
theshadow76 Jan 19, 2025
fa6076a
Commit 935 of 1000
theshadow76 Jan 19, 2025
93bdc61
Commit 936 of 1000
theshadow76 Jan 19, 2025
76611c5
Commit 937 of 1000
theshadow76 Jan 19, 2025
ee0e585
Commit 938 of 1000
theshadow76 Jan 19, 2025
4afa15a
Commit 939 of 1000
theshadow76 Jan 19, 2025
46d0903
Commit 940 of 1000
theshadow76 Jan 19, 2025
03bfb0e
Commit 941 of 1000
theshadow76 Jan 19, 2025
10c015c
Commit 942 of 1000
theshadow76 Jan 19, 2025
c3c482d
Commit 943 of 1000
theshadow76 Jan 19, 2025
c4628e9
Commit 944 of 1000
theshadow76 Jan 19, 2025
c7b5bde
Commit 945 of 1000
theshadow76 Jan 19, 2025
2c3cb21
Commit 946 of 1000
theshadow76 Jan 19, 2025
bf93e4c
Commit 947 of 1000
theshadow76 Jan 19, 2025
46040b2
Commit 948 of 1000
theshadow76 Jan 19, 2025
4f77393
Commit 949 of 1000
theshadow76 Jan 19, 2025
39d68ae
Commit 950 of 1000
theshadow76 Jan 19, 2025
4ea6f59
Commit 951 of 1000
theshadow76 Jan 19, 2025
555480f
Commit 952 of 1000
theshadow76 Jan 19, 2025
601b639
Commit 953 of 1000
theshadow76 Jan 19, 2025
dd828cb
Commit 954 of 1000
theshadow76 Jan 19, 2025
4721dba
Commit 955 of 1000
theshadow76 Jan 19, 2025
d3386bf
Commit 956 of 1000
theshadow76 Jan 19, 2025
e353797
Commit 957 of 1000
theshadow76 Jan 19, 2025
ea4ac2b
Commit 958 of 1000
theshadow76 Jan 19, 2025
2eb4a7a
Commit 959 of 1000
theshadow76 Jan 19, 2025
46500c8
Commit 960 of 1000
theshadow76 Jan 19, 2025
d76f55e
Commit 961 of 1000
theshadow76 Jan 19, 2025
d90334b
Commit 962 of 1000
theshadow76 Jan 19, 2025
0cbb816
Commit 963 of 1000
theshadow76 Jan 19, 2025
4284f38
Commit 964 of 1000
theshadow76 Jan 19, 2025
30f6892
Commit 965 of 1000
theshadow76 Jan 19, 2025
4d51a66
Commit 966 of 1000
theshadow76 Jan 19, 2025
8f0bfcc
Commit 967 of 1000
theshadow76 Jan 19, 2025
5a83eab
Commit 968 of 1000
theshadow76 Jan 19, 2025
11243da
Commit 969 of 1000
theshadow76 Jan 19, 2025
97c8211
Commit 970 of 1000
theshadow76 Jan 19, 2025
1dc1a2a
Commit 971 of 1000
theshadow76 Jan 19, 2025
9f2e60a
Commit 972 of 1000
theshadow76 Jan 19, 2025
208aa4e
Commit 973 of 1000
theshadow76 Jan 19, 2025
2447b8e
Commit 974 of 1000
theshadow76 Jan 19, 2025
d008489
Commit 975 of 1000
theshadow76 Jan 19, 2025
e9cbaff
Commit 976 of 1000
theshadow76 Jan 19, 2025
5e638d1
Commit 977 of 1000
theshadow76 Jan 19, 2025
79b523e
Commit 978 of 1000
theshadow76 Jan 19, 2025
7be0fd7
Commit 979 of 1000
theshadow76 Jan 19, 2025
c33e2a0
Commit 980 of 1000
theshadow76 Jan 19, 2025
ce3ad2f
Commit 981 of 1000
theshadow76 Jan 19, 2025
4f6e32d
Commit 982 of 1000
theshadow76 Jan 19, 2025
ec96de3
Commit 983 of 1000
theshadow76 Jan 19, 2025
6655ac0
Commit 984 of 1000
theshadow76 Jan 19, 2025
279ecef
Commit 985 of 1000
theshadow76 Jan 19, 2025
fab778f
Commit 986 of 1000
theshadow76 Jan 19, 2025
d1a91c8
Commit 987 of 1000
theshadow76 Jan 19, 2025
c8ebc8d
Commit 988 of 1000
theshadow76 Jan 19, 2025
d463a58
Commit 989 of 1000
theshadow76 Jan 19, 2025
a6c790a
Commit 990 of 1000
theshadow76 Jan 19, 2025
477d14c
Commit 991 of 1000
theshadow76 Jan 19, 2025
e0502f1
Commit 992 of 1000
theshadow76 Jan 19, 2025
67dd87b
Commit 993 of 1000
theshadow76 Jan 19, 2025
c093b95
Commit 994 of 1000
theshadow76 Jan 19, 2025
045af7c
Commit 995 of 1000
theshadow76 Jan 19, 2025
4d62bbb
Commit 996 of 1000
theshadow76 Jan 19, 2025
58ef310
Commit 997 of 1000
theshadow76 Jan 19, 2025
c7b4249
Commit 998 of 1000
theshadow76 Jan 19, 2025
dd57923
Commit 999 of 1000
theshadow76 Jan 19, 2025
da1f94f
daw
theshadow76 Jan 19, 2025
1ee043c
Update commit.py
TheSunsetCode Jan 19, 2025
3949dc1
Update README.md
theshadow76 Mar 26, 2025
2f55f53
Create .readthedocs.yaml
theshadow76 Mar 26, 2025
53e7b15
Added read the docs
theshadow76 Mar 26, 2025
a96039a
Create .readthedocs.yml
theshadow76 Mar 26, 2025
6f489c3
Update .readthedocs.yml
theshadow76 Mar 26, 2025
a911b97
Update .readthedocs.yaml
theshadow76 Mar 26, 2025
0406997
Update .readthedocs.yml
theshadow76 Mar 26, 2025
21f07cf
Rename .readthedocs.yaml to .depricated-readthedocs.yaml
theshadow76 Mar 26, 2025
d227256
Update .readthedocs.yml
theshadow76 Mar 26, 2025
1b49980
Update .readthedocs.yml
theshadow76 Mar 26, 2025
e8985d6
fs
theshadow76 Mar 26, 2025
011d444
fixed requirements.txt
theshadow76 Mar 26, 2025
17f408a
added `sphinx
theshadow76 Mar 26, 2025
9eaa9be
Added auto-doc
theshadow76 Mar 26, 2025
2e1135a
fe
theshadow76 Mar 26, 2025
468222d
Update README.md
theshadow76 Mar 28, 2025
1ea2fa9
Update .depricated-readthedocs.yaml
theshadow76 Mar 29, 2025
a9ff115
Merge pull request #31 from ChipaDevTeam/test1
theshadow76 Mar 29, 2025
8634164
Added Async
Jun 14, 2025
5353486
Update requirements.txt
hariom-jbnu Jul 1, 2025
017225a
Updated subscribe candles
Jul 4, 2025
e2e8b32
Updated and fixed
Jul 4, 2025
3df381d
Merge pull request #32 from hariom-jbnu/patch-1
theshadow76 Jul 4, 2025
056ac7f
Update README.md
theshadow76 Jul 11, 2025
12e6475
fhfgh
Jul 11, 2025
23b9f62
fsdf
Jul 11, 2025
d204e64
grd
Jul 11, 2025
ab78f31
v gn
Jul 11, 2025
21c4d9d
efs
Jul 11, 2025
4b2f9f7
bcfbcfb
Jul 11, 2025
41e8282
fcb
Jul 11, 2025
996a43f
Main
dkglitch007 Sep 1, 2025
67d43bd
Merge pull request #33 from dkglitch007/main
theshadow76 Sep 1, 2025
6cba1e3
Initial plan
Copilot Jan 7, 2026
76c99e4
Add multiprocessing support for fetching candles from multiple assets
Copilot Jan 7, 2026
000d241
Merge pull request #34 from ChipaDevTeam/copilot/add-multiprocessing-…
theshadow76 Jan 7, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
18 changes: 18 additions & 0 deletions .depricated-readthedocs.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
version: 2

# List of output formats (optional)
formats:
- pdf
- epub
- htmlzip

# Python settings
python:
version: "3.10" # Specify Python version as a string
install:
- method: pip
path: .

# Enable Sphinx build - test1
sphinx:
configuration: docs/source/conf.py
38 changes: 38 additions & 0 deletions .github/ISSUE_TEMPLATE/bug_report.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
---
name: Bug report
about: Create a report to help us improve
title: ''
labels: ''
assignees: ''

---

**Describe the bug**
A clear and concise description of what the bug is.

**To Reproduce**
Steps to reproduce the behavior:
1. Go to '...'
2. Click on '....'
3. Scroll down to '....'
4. See error

**Expected behavior**
A clear and concise description of what you expected to happen.

**Screenshots**
If applicable, add screenshots to help explain your problem.

**Desktop (please complete the following information):**
- OS: [e.g. iOS]
- Browser [e.g. chrome, safari]
- Version [e.g. 22]

**Smartphone (please complete the following information):**
- Device: [e.g. iPhone6]
- OS: [e.g. iOS8.1]
- Browser [e.g. stock browser, safari]
- Version [e.g. 22]

**Additional context**
Add any other context about the problem here.
20 changes: 20 additions & 0 deletions .github/ISSUE_TEMPLATE/feature_request.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
---
name: Feature request
about: Suggest an idea for this project
title: ''
labels: ''
assignees: ''

---

**Is your feature request related to a problem? Please describe.**
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]

**Describe the solution you'd like**
A clear and concise description of what you want to happen.

**Describe alternatives you've considered**
A clear and concise description of any alternative solutions or features you've considered.

**Additional context**
Add any other context or screenshots about the feature request here.
1 change: 1 addition & 0 deletions .github/worflows/workflow.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@

6 changes: 5 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,8 @@ docker-compose.yml
efs.py
fesfs.py
wupwup.py
data
data
.venv
C:\Users\Vigo\BinaryOptionsTools-2\BinaryOptionstools.egg-info
dist
BinaryOptionstools.egg-info
10 changes: 10 additions & 0 deletions .gitpod.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
# This configuration file was automatically generated by Gitpod.
# Please adjust to your needs (see https://www.gitpod.io/docs/introduction/learn-gitpod/gitpod-yaml)
# and commit this file to your remote git repository to share the goodness with others.

# Learn more from ready-to-use templates: https://www.gitpod.io/docs/introduction/getting-started/quickstart

tasks:
- init: make


13 changes: 13 additions & 0 deletions .readthedocs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
version: "2"

build:
os: "ubuntu-22.04"
tools:
python: "3.10"

python:
install:
- requirements: docs/requirements.txt

sphinx:
configuration: docs/source/conf.py
45 changes: 36 additions & 9 deletions BinaryOptionsTools/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Made by © Vigo Walker
# Made by © Vigo Walker and © Alenxendre Portner at Chipa

# Pocket Option
from BinaryOptionsTools.platforms.pocketoption.stable_api import PocketOption
Expand All @@ -9,6 +9,8 @@ def __init__(self, ssid: str, demo: bool = True) -> None:
self.ssid = ssid
self.api = PocketOption(ssid, demo)
self.api.connect()
print("Connecting...")
time.sleep(10)
def GetBalance(self) -> int | float:
data = self.api.get_balance()
return data
Expand All @@ -19,27 +21,52 @@ def Reconnect(self, retries: int = 1) -> bool:
time.sleep(5)
if self.api.check_connect():
return True
elif self.api.check_connect() == False:
elif self.api.check_connect() is False:
return False
return None
def Call(self, amount: int = 1, active: str = "EURUSD_otc", expiration: int = 60, add_check_win: bool = False):
if add_check_win:
ido = self.api.buy(amount, active, "Call", expiration)
ido = self.api.buy(amount, active, "call", expiration)[1]
print(ido)
data = self.api.check_win(ido)
return data
elif add_check_win == False:
ido = self.api.buy(amount, active, "Call", expiration)
elif add_check_win is False:
ido = self.api.buy(amount, active, "call", expiration)
return ido
return None
def Put(self, amount: int = 1, active: str = "EURUSD_otc", expiration: int = 60, add_check_win: bool = False):
if add_check_win:
ido = self.api.buy(amount, active, "Put", expiration)
ido = self.api.buy(amount, active, "put", expiration)
data = self.api.check_win(ido)
return data
elif add_check_win == False:
ido = self.api.buy(amount, active, "Put", expiration)
elif add_check_win is False:
ido = self.api.buy(amount, active, "put", expiration)
return ido
return None
def GetCandles(self, active, period, start_time=None, count=6000, count_request=1):
data = self.api.get_candles(active, period, start_time, count, count_request)
return data
return data

def GetCandlesMultipleAssets(self, assets, period=60, start_time=None, count=6000, count_request=1, max_workers=None):
"""
Fetch candles for multiple assets in parallel using multiprocessing.

Args:
assets: List of asset symbols (e.g., ["EURUSD_otc", "GBPUSD_otc", "USDJPY_otc"])
period: The time interval of each candle in seconds (default: 60)
start_time: The end time for the last candle (default: None for current time)
count: Number of seconds to fetch per request (default: 6000)
count_request: Number of requests for historical data (default: 1)
max_workers: Maximum number of parallel workers (default: None)

Returns:
Dictionary with asset symbols as keys and their candle data as values
"""
return self.api.get_candles_multiple_assets(assets, period, start_time, count, count_request, max_workers)

def CheckWin(self, id):
data = self.api.check_win(id)
return data

def GetPayout(self, pair):
return self.api.GetPayout(pair)
Binary file not shown.
Binary file not shown.
Binary file modified BinaryOptionsTools/__pycache__/__init__.cpython-312.pyc
Binary file not shown.
Binary file not shown.
Binary file not shown.
11 changes: 11 additions & 0 deletions BinaryOptionsTools/bot/base.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
import pandas as pd

class BaseBot:
def __init__(self):
pass

def get_data(self, timestamp: int) -> pd.DataFrame:
pass

def predict_trade(self, data: pd.DataFrame) -> String:
pass
21 changes: 21 additions & 0 deletions BinaryOptionsTools/bot/signals/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
from BinaryOptionsTools.indicators.trend import sma

class StreamSignals:
def __init__(self) -> None:
pass
def sma(self, period):
pass

class signals:
def __init__(self) -> None:
pass
def sma_cross_over(self, api, FAST_SMA_PERIOD: int = 9, SLOW_SMA_PERIOD: int = 14, timeframe: int = 60, ticker: str = "EURUSD_otc"):
fast_sma = sma(api, timeframe, ticker, FAST_SMA_PERIOD)
slow_sma = sma(api, timeframe, ticker, SLOW_SMA_PERIOD)

if fast_sma["latest"] > slow_sma["latest"]:
return "Bullish"
elif fast_sma["latest"] < slow_sma["latest"]:
return "Bearish"
else:
return "No trend"
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
33 changes: 33 additions & 0 deletions BinaryOptionsTools/indicators/momentum.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
from ta.momentum import RSIIndicator
import pandas as pd
import time

def _fetch_candles(api, active, period, num_candles):
try:
candles_df = api.GetCandles(active, period)
candles_df['volume'] = 0

if len(candles_df) > num_candles:
candles_df = candles_df.iloc[-num_candles:]

required_columns = ['time', 'open', 'high', 'low', 'close']
if not all(col in candles_df.columns for col in required_columns):
raise ValueError("Missing required columns in candle data.")

candles_df.ffill(inplace=True)
candles_df['time'] = pd.to_datetime(candles_df['time'], unit='s')

return candles_df

except Exception as e:
print(f"Error fetching candles: {e}")
time.sleep(5)
return pd.DataFrame()

def rsi(api, timeframe: int = 60, ticker: str = "EURUSD_otc", rsi_period: int = 14):
close = _fetch_candles(api=api, active=ticker, period=timeframe, num_candles=420)
rsi_data = RSIIndicator(close=close["close"], window=rsi_period, fillna=True).rsi()
return {
"rsi_values" : rsi_data,
"latest" : rsi_data.iloc[-1]
}
Loading