-
Notifications
You must be signed in to change notification settings - Fork 26
Update vigowalker 0.1.9 #33
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -2,4 +2,5 @@ | |
| /rust/target | ||
| /examples/*.log | ||
| .qodo | ||
| /target | ||
| /target | ||
| .venv | ||
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
| @@ -1,6 +1,6 @@ | ||||||
| from .asyncronous import PocketOptionAsync | ||||||
|
||||||
| from .asyncronous import PocketOptionAsync | |
| from .asynchronous import PocketOptionAsync |
|
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. la verdad no me cambia que uses el 60 * ... |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,21 @@ | ||
| from BinaryOptionsToolsV2.pocketoption import PocketOptionAsync | ||
| from BinaryOptionsToolsV2.tracing import start_logs | ||
| from datetime import timedelta | ||
|
|
||
| import asyncio | ||
|
|
||
| # Main part of the code | ||
| async def main(ssid: str): | ||
| # The api automatically detects if the 'ssid' is for real or demo account | ||
| start_logs(".", "INFO") | ||
| api = PocketOptionAsync(ssid) | ||
| stream = await api.subscribe_symbol_timed("EURUSD_otc", timedelta(seconds=5)) # Returns a candle obtained from combining candles that are inside a specific time range | ||
|
|
||
| # This should run forever so you will need to force close the program | ||
| async for candle in stream: | ||
| print(f"Candle: {candle}") # Each candle is in format of a dictionary | ||
|
|
||
| if __name__ == '__main__': | ||
| ssid = input('Please enter your ssid: ') | ||
| asyncio.run(main(ssid)) | ||
|
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The filename 'asyncronous.py' contains a spelling error. It should be 'asynchronous.py' to correctly spell 'asynchronous'.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@Rick-29 will fix this later