{"id":19534944,"url":"https://github.com/newyaroslav/intrade-bar-console-bot","last_synced_at":"2026-03-01T22:01:15.390Z","repository":{"id":162735368,"uuid":"268594329","full_name":"NewYaroslav/intrade-bar-console-bot","owner":"NewYaroslav","description":"Консольный робот для торговли у брокера https://intrade.bar/","archived":false,"fork":false,"pushed_at":"2020-10-07T09:44:40.000Z","size":56928,"stargazers_count":1,"open_issues_count":0,"forks_count":2,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-26T04:14:36.696Z","etag":null,"topics":["binary-option","binary-options","bot","broker","broker-api","forex","intrade-bar","robot","trading","trading-bot"],"latest_commit_sha":null,"homepage":null,"language":"MQL5","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/NewYaroslav.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-06-01T17:58:52.000Z","updated_at":"2024-03-07T11:27:47.000Z","dependencies_parsed_at":"2024-04-05T16:30:09.974Z","dependency_job_id":null,"html_url":"https://github.com/NewYaroslav/intrade-bar-console-bot","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/NewYaroslav/intrade-bar-console-bot","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NewYaroslav%2Fintrade-bar-console-bot","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NewYaroslav%2Fintrade-bar-console-bot/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NewYaroslav%2Fintrade-bar-console-bot/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NewYaroslav%2Fintrade-bar-console-bot/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/NewYaroslav","download_url":"https://codeload.github.com/NewYaroslav/intrade-bar-console-bot/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NewYaroslav%2Fintrade-bar-console-bot/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29986239,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-01T21:06:37.093Z","status":"ssl_error","status_checked_at":"2026-03-01T21:05:45.052Z","response_time":124,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["binary-option","binary-options","bot","broker","broker-api","forex","intrade-bar","robot","trading","trading-bot"],"created_at":"2024-11-11T02:16:38.143Z","updated_at":"2026-03-01T22:01:15.298Z","avatar_url":"https://github.com/NewYaroslav.png","language":"MQL5","funding_links":[],"categories":[],"sub_categories":[],"readme":"# intrade-bar-console-bot\n![logo](doc/logo_mini.png)\n\n*Консольный робот для торговли у брокера* https://intrade.bar/\n\n## Особенности\n\n* Бесплатный бот, без регистрации по рефералки и СМС.\n* Полностью открытый исходный код.\n* Написан на легком, понятном и удобном C++11.\n* Наличие REST API.\n* Библиотека для связи советника из МТ4 c программой.\n\n## Как использовать\n\nГотовые сборки программы находятся в архивах в папке *bin*, как для x64 так и для x32.\n\nПо умолчанию программа будет пытаться открыть файл с настройками config.json:\n\n```json\n{\n\t\"email\":\"example@mail.com\",\n\t\"password\":\"12345\",\n\t\"demo_account\":true,\n\t\"rub_currency\":false\n}\n```\n\nТем не менее, все настройки можно задать и без файла, через команды. Пример:\n\n```\nintrade-bar-console-bot.exe -email \"example@mail.com\" -password \"12345\" /demo /usd\n```\n\nВыберите один из способов задания настроек и укажите свой *email* и *password*. Файл *config.json* можно отредактировать любым блокнотом. Не забудьте, что файл *config.json* это структура json, т.е. сохраняйте синтаксис (*не удаляйте скобочки, запятые*).\n\nПосле запуска программы она будет ждать соединения через named pipe. При этом программа выступает в роли сервера. По умолчанию сервер называется *intrade_bar_console_bot*.\nРобот отсылает через named pipe баланс и состояние соединения с брокером, а принимает команды на открытие сделки.\n\n## Библиотека для MT4\n\nДля работы с советником проект имеет библиотеку, которая упрощает взаимодействие по REST API\n\n```cpp\n#include \"..\\Include\\intrade_bar_console_bot_api.mqh\"\nIntradeBarConsoleBotApi api;        // API для работы с роботом\n\n//Код, код, кот...\n\nvoid OnTimer() {\n\t/* проверяем наличие соединения */\n\tif(api.connected()) {\n\t\tint expiration = 3;\n\t\tENUM_BO_TYPE bo_type = SPRINT;// Тип опциона\n\t\tdouble amount = 50;\n\t\tapi.open_deal(\"EURUSD\", \"BB-1\", BUY, expiration, bo_type, amount);\n\t} else {\n\t\t/* соединение отсутствует, подключаемся */\n\t\tif(api.connect(pipe_name)) {\n\t\t\tPrint(\"Успешное соединение с \", pipe_name);\n\t\t} else {\n\t\t\tPrint(\"Соединение не удалось\");\n\t\t}\n\t}\n\t/* обновляем состояние API */\n\tapi.update(timer_period);\n\tif(api.check_balance_change()) {\n\t\tPrint(\"Баланс: \",DoubleToString(api.get_balance(),2)); \n\t}\n\tif(api.check_broker_connection_change()) {\n\t\tPrint(\"Соединение с брокером: \",api.check_broker_connection()); \n\t}\n}\n```\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnewyaroslav%2Fintrade-bar-console-bot","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnewyaroslav%2Fintrade-bar-console-bot","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnewyaroslav%2Fintrade-bar-console-bot/lists"}