
Open
Posted
•
Ends in 5 days
Paid on delivery
Техническое задание: Модернизация бота для OKX спот-фьючерс арбитража 1. Название проекта: Разработка и модернизация асинхронного бота для мониторинга и исполнения кэрри-трейда (спот-фьючерс арбитража) на бирже OKX. 2. Исходные материалы: * Предоставленный код (см. выше) является рабочей основой. Он реализует мониторинг спреда между спот- и фьючерсными ценами в реальном времени с помощью [login to view URL] и отображает информацию через интерфейс rich. 3. Цель задачи: Не просто исправить код, а значительно улучшить его, превратив из инструмента для тестирования идей в полноценного торгового бота с расширенной функциональностью, улучшенной надежностью и управлением рисками. 4. Основные задачи: Задача 1: Рефакторинг и улучшение архитектуры (Обязательно) * Разделить монолитный код на логические модули (например: arbitrage_bot │── [login to view URL] # точка входа │── [login to view URL] # работа с API биржи OKX │── [login to view URL] # логика поиска арбитража │── [login to view URL] # открытие/закрытие сделок │── [login to view URL] # вспомогательные функции (цвета, форматирование и т.д.) │── [login to view URL] # ключи, настройки │── [login to view URL] # красивый вывод интерфейса * Вынести все константы OKX_FEE, ENTRY_SPREAD_THRESHOLD и т.д.) в отдельный файл конфигурации [login to view URL]). * Добавить подробное логирование всех критических действий (подключение, отключение, ошибки, вход в сделку, выход из сделки) в файл и в консоль с разными уровнями DEBUG, INFO, ERROR). Задача 2: Реализация механизма исполнения сделок (Обязательно) * Текущий код только симулирует PnL. Необходимо интегрировать реальные вызовы API OKX для создания ордеров. * Добавить модуль [login to view URL] с функциями: * create_order(symbol, market, side, amount: Размещение рыночного ордерa. * get_balance(currency): Получение актуального баланса по валюте. * get_open_orders(symbol): Проверка активных ордеров. * cancel_order(symbol, order_id): Отмена ордера. * Логика входа в сделку: При достижении ENTRY_SPREAD_THRESHOLD бот должен выставлять пару ордеров: 1. Лимитный ордер на покупку спота BTC/USDT). 2. Лимитный ордер на продажу фьючерса BTC-USDT-SWAP). * Логика выхода из сделки: При достижении EXIT_SPREAD_THRESHOLD бот должен выставить ордера на закрытие позиции (продать спот, купить фьючерс). Задача 3: Внедрение системы управления рисками (Обязательно) Реализовать механизм "проверки связи" (heartbeat) для WebSocket. При длительном отсутствии обновлений перезапускать подключение и перепроверять актуальность всех открытых позиций. Проверка наличия ордеров на бирже при запуске, "подтягивание" уже существующих ордеров на бирже При закрытии бота автоматическое закрытие всех ордеров / ожидание закрытия сделок и закрытие после этого Задача 4: Улучшение пользовательского интерфейса и отчетности * Реализовать вывод итоговой статистики за сессию: количество сделок, Win Rate, общий PnL, макс. просадка. * Добавить интерактивные элементы управления (например, "Пауза", "Экстренная остановка и закрытие всех позиций" с помощью горячих клавиш, "Подождать закрытия сделок и после этого закрыть бота"). Задача 5: Дополнительные улучшения (Опционально, по согласованию) * Бэктестинг: Создать скрипт для тестирования стратегии на исторических данных. * Уведомления: Интеграция с Telegram Bot API для отправки оповещений о входе/выходе из сделок и критических ошибках. * Динамическое управление размером позиции: Размер позиции должен вычисляться от текущего общего баланса, а не от начального. * Мультибиржевой арбитраж: Добавить поддержку других бирж (например, Binance, Bybit) для межбиржевого арбитража. 5. Требования к технологии: * Язык: Python 3.10+ * Библиотеки: [login to view URL], rich, aiohttp, asyncio, pydantic (для валидации конфигурации). * Стиль кода: Код должен соответствовать PEP8. Использовать аннотации типов (type hints). Настроить black и isort для автоматического форматирования. 6. Критерии приемки: 1. Работоспособность: Бот запускается без ошибок, успешно подключается к OKX и подписывается на тикеры, и выполнять описанный в ТЗ алгоритм. 2. Исполнение ордеров: Бот может размещать и отменять реальные ордера на тестовой сети OKX (Demo Trading), а также уметь переключаться на реальное API и работать "в боевом режиме" с реальными деньгами на реальной среде). 3. Управление рисками: Oбработка ошибок/задержек API. 4. Логирование: Все ключевые события записываются в файл лога. 5. Кодкачество: Код хорошо структурирован, прокомментирован и готов к дальнейшему развитию. 7. Что предоставить по завершению: 1. Исходный код в репозитории Git (GitHub/GitLab). 2. [login to view URL] с инструкцией по установке зависимостей, настройке и запуску. 3. [login to view URL] или [login to view URL] со всеми зависимостями. 4. Пример файла конфигурации .[login to view URL] или [login to view URL]). 5. Краткий отчет о проведенной работе и тестировании. --- Примечание для фрилансера: Пожалуйста, ознакомьтесь с исходным кодом и предоставьте оценку по времени и стоимости выполнения как обязательных, так и опциональных задач. Ваше предложение по архитектурным решениям приветствуется.
Project ID: 39735823
44 proposals
Open for bidding
Remote project
Active 9 hours ago
Set your budget and timeframe
Get paid for your work
Outline your proposal
It's free to sign up and bid on jobs
44 freelancers are bidding on average $508 USD for this job

Our clients usually achieve a 30% increase in trading efficiency after we optimize their trading bots. I propose a comprehensive modernization of your OKX arbitrage bot. Here's how we can enhance its functionality and reliability: - Refactor the code into logical modules for better maintainability. - Implement real-time trade execution with the OKX API. - Introduce a robust risk management system, including a heartbeat mechanism. - Enhance the user interface for clearer reporting and control. - Optionally, add features like backtesting and multi-exchange support. In a recent project, we transformed a trading bot for a major client, improving its execution speed by 40% and reducing errors by 50%. To kick things off, consider reviewing your current error logging approach. A more detailed log can be invaluable in troubleshooting and improving performance. Let me know if you’d like to discuss a quick plan to move forward.
$750 USD in 7 days
7.7
7.7

Hello gorinsonert, I am Dr. Rajesh Rolen, PhD in Computer Science & Engineering, with experience of over 20+ years in API Development, Software Development, Software Engineering, Risk Management, Python As a preferred freelancer in the top 1%, I have done 400+ projects here on freelancer.com, I have 4.9 ratings out of 5 on average, which showcases my quality of work and timely delivery. Key Highlights: - Free Hosting Support on the Cloud or any desired platform. - Free 3 months of post-delivery support to ensure that our client doesn’t face any challenges after the launch of the project. - Free Dedicated tester on projects to ensure quality delivery, so clients don’t need to act as a tester. - 10+ Years experience UI/UX team to ensure intuitive UI. Please open the chat and send me a message, so we can have a more detailed discussion about the project to give you the project timeline and cost. Thank you for considering my services. I look forward to engaging in a productive conversation and understanding how I can be of assistance in bringing your project to life. Regards Rajesh Rolen
$750 USD in 30 days
7.0
7.0

⭐⭐⭐⭐⭐ Valuable Client, CnELIndia, together with Raman Ladhani, can ensure the successful modernization of your OKX spot-futures arbitrage bot. We propose refactoring the existing code into modular components with clear separation of responsibilities and comprehensive logging. We will integrate real OKX API calls for order execution, implement robust risk management with heartbeat monitoring, automatic reconciliation of open positions, and safe shutdown procedures. The UI will be enhanced with interactive controls, session statistics, and optional Telegram notifications. For additional improvements, we can enable backtesting, dynamic position sizing, and multi-exchange arbitrage. Our team follows Python 3.10+, PEP8-compliant code, type hints, and automated formatting, ensuring maintainable, high-quality deliverables with full documentation, configuration examples, and a tested Git repository ready for deployment.
$500 USD in 7 days
5.7
5.7

Hi gorinsonert, I recently completed a very similar project. I can show u sample. Вопросы: 1) В каком режиме аккаунт OKX планируется: Unified/Portfolio Margin, cross/isolated и hedge/net для SWAP? Нужно ли включать hedging mode и auto-borrow/auto-repay на споте (для кэш-недостатка USDT), а также какие лимиты по левереджу/нотционалу заданы на аккаунте/инструменте? 2) Как именно рассчитываем спред: mark vs mark или last vs last (spot и perpetual), учитываем ли прогноз/график funding, комиссии (maker/taker), и какой целевой годовой basis после всех издержек? Какие пороги по макс слиппеджу на каждую ногу, таймауты исполнения и лимиты на частичные/перекосы позиций? Предложения: 1) Архитектура: ввести FSM на пару (BTC/USDT spot ↔ BTC-USDT-SWAP): Monitoring→Enter→Hedged→Exit→Reconcile, с persisted state (SQLite) для восстановления, идемпотентные clientOrderId, периодический reconciliation (open orders/positions), heartbeat с детекцией разрыва (seq/gap, staleness) и авто-реcабскрайб, circuit-breaker и экспоненциальный backoff на REST/WS Kindly send me a message, lets discuss in detail and my portfolio is uploaded here and on my website. Best Regards, Sid CTO and Co-Founder of Ekarthaan
$727.50 USD in 9 days
5.1
5.1

Hi gorinsonert, I’ve developed multiple trading bots that use WebSocket APIs to fetch real-time data and execute trades based on market conditions. I’ve also integrated various broker APIs, including Binance, Interactive Brokers, and Alpaca, to create fully functional trading systems. In addition to trading bots, I’ve built several web applications with user dashboards and subscription models, so I can handle both backend and frontend tasks efficiently. Let’s schedule a 10-minute introductory call to discuss your project in more detail and see if I’m the right fit. Feel free to message me anytime—I usually respond within 10 minutes. I’m eager to learn more about your exciting project. Best, Adil
$750 USD in 40 days
4.3
4.3

Hi, We would like to grab this opportunity and will work till you get 100% satisfied with our work. We are an expert team which have many years of experience on Python, Algorithm, Software Development, Risk Management, API Development, Software Engineering, Backtesting Lets connect in chat so that We discuss further. Thank You
$500 USD in 7 days
1.6
1.6

Здравствуйте, я могу модернизировать и улучшить вашего бота для арбитража спот-фьючерс на OKX: разделить код на модули (логика арбитража, трейдер, биржи, UI, конфигурация), реализовать реальное исполнение ордеров через API OKX и добавить надежные механизмы управления рисками, включая heartbeat и автоматическое закрытие позиций. Улучшу логирование, статистику сессий и добавлю интерактивные элементы управления (пауза, экстренная остановка). По согласованию возможны дополнительные функции: бэктестинг, уведомления Telegram, динамический размер позиций и поддержка нескольких бирж. С опытом в Python, торговых ботах и интеграции API, я обеспечу надежное и готовое к эксплуатации решение. С уважением, Shakila Naz
$250 USD in 7 days
0.9
0.9

Hello, I am excited to help you modernize your asynchronous bot for OKX spot-futures arbitrage. I will break down the monolithic code into logical modules, implement real API calls for order execution, and enhance the user interface and reporting features to create a fully functional trading bot with improved reliability and risk management. I am available to start working on the project immediately, and I look forward to collaborating closely with you to achieve your goals. Thanks, Nikola
$750 USD in 4 days
0.0
0.0

Hello, I appreciate the opportunity to work on the modernization of your arbitrage bot for the OKX exchange. Based on your detailed requirements, my focus will be on enhancing the code structure and functionality to ensure a robust and efficient trading system. Firstly, I will implement the refactoring task to modularize the existing code, making it easier to maintain and expand. This includes creating distinct modules for the trading logic and enhancing logging capabilities to ensure transparency in actions taken by the bot. In addition, I will integrate real order execution capabilities directly with the OKX API and develop a risk management system to monitor the connection and active orders. The enhancement of the user interface and reporting features will also be a priority to provide you with essential metrics and controls. What specific features or improvements are most critical for you in this modernization process? I am confident that my experience in Python and trading bot development aligns well with your project goals, and I look forward to your response. Thanks, Richard
$500 USD in 4 days
0.0
0.0

EXPERT ((Backtesting, API Development, Risk Management, Software Engineering, Python, Software Development and Algorithm)) DEAR EMPLOYER, I’ve completed the exact same projects before successfully. Awarding me will be the fastest way to complete your task with the best rates possible. I CAN ASSURE YOU 100% THAT WE ARE FULLY CAPABLE OF EXECUTING ANY LEVEL OF TASK/PROJECT BASED ON THE SKILL REQUIRED. I am fully confident about our skills and my understanding of the project description and we are ready to go through any test or sample task you assign to acquire your trust. Let me know when are you available for an initial 15-30-minute discussion (FREE OF CHARGE) so we can discuss the requirement in detail and I can walk you through the mentioned systems to acquire your trust in my skill. REST ASSURED YOUR WORK IS IN VERY SAFE AND PROFESSIONAL HANDS. THANK YOU
$250 USD in 2 days
0.0
0.0

I was excited to come across your project, it’s exactly the kind of challenge I love taking on. I always create results that truly make an impact. I specialize in crafting clean, modern, and high-performing digital solutions that not only look great but work seamlessly. From web design and development to automation and creative design, I help businesses streamline operations and stand out in a crowded market. While I’m new to Freelancer, I bring real-world experience from delivering projects for clients beyond this platform — always on time, always with a sharp eye for detail. Let’s connect and explore how I can help bring your vision to life. Best regards, Thomas
$400 USD in 14 days
0.0
0.0

Hhi I am experienced in this and I can start right now but i have few doubts and questions lets have a quick chat and get it started waiting for your replyyy ! r
$500 USD in 7 days
0.0
0.0

Hi there! I know turning a testing bot into a fully functional OKX arbitrage bot with real-time trading, risk management, and a reliable interface can be complex and time-consuming. Mistakes in execution or API integration can be costly. I can refactor your bot into modular Python code, implement real order execution, WebSocket heartbeat monitoring, and interactive controls, while adding logging, PnL reporting, and optional features like backtesting or Telegram notifications. My approach ensures stability, clean architecture, and full compliance with your technical requirements. Do you want me to start with the mandatory modules first or include optional improvements in the initial development? Open chat now to modernize and optimize your OKX arbitrage bot!
$500 USD in 7 days
0.0
0.0

Hi Gorinsonert, I thoroughly reviewed your project about modernizing the asynchronous bot for OKX spot-futures arbitrage. I am excited about the opportunity to refactor and enhance your existing code, transforming it from a testing tool into a reliable trading bot with advanced functionalities and risk management. I am Ali Rashdi, a software developer with over 5 years of experience in Python, Software Development, Algorithm design, API Development, and Risk Management. I have a proven track record of improving trading systems and implementing robust architectures. Here are my relevant portfolio items: https://www.freelancer.com/u/alirashdi26 I am confident in delivering a structured and optimized solution aligned with your requirements, including detailed logging and performance enhancements. Looking forward to discussing your project further. Thanks, Regards, Ali Rashdi
$250 USD in 7 days
0.0
0.0

Hi Gorinsonert, I reviewed your project description for the modernization of the OKX spot-futures arbitrage bot, and I am excited to help enhance its architecture, implement real trade execution, and strengthen risk management mechanisms. My name is Danial, and I bring over 6 years of experience in software development, specializing in Python, algorithm design, and API development. I have a strong background in creating reliable trading solutions and can effectively refactor the existing code into modular components while ensuring compliance with best practices. You can view my portfolio here: https://www.freelancer.com/u/danialm32 I am ready to provide a detailed cost and time estimation based on your specified requirements and am open to discussing architectural improvements for the bot. Looking forward to the opportunity to collaborate on this project. Thank you, Regard, Danial
$250 USD in 7 days
0.0
0.0

Hi, This looks like a high-potential project, I'd love to help shape it. I understand the need to upgrade the asynchronous bot for OKX spot-futures arbitrage. Improving architecture, implementing trade execution mechanisms, incorporating risk management systems, and enhancing the UI are crucial for maximizing efficiency and profitability. While I’m new to Freelancer, I’ve delivered solid results for clients in the same space. Let’s connect. I’d love to move forward with your project. Regards, Ernst
$450 USD in 14 days
0.0
0.0

Project Bid: IF YOU NOT HAPPY YOU DONT PAY!!! Client name: gorinsonert Dear Gorinsonert, I am Shaylin and I am confident that my expertise in HTML5, CSS3, JavaScript, React, and WordPress align perfectly with the requirements of your project for the development and modernization of an asynchronous bot for OKX spot-futures arbitrage. I propose a comprehensive approach focusing on refactoring, implementing order execution mechanisms, introducing risk management systems, enhancing the user interface, and providing additional improvements as needed. I guarantee clear communication, timely delivery, adherence to modern coding standards, and satisfaction with the final product. IF YOU NOT HAPPY YOU DONT PAY!!! I am eager to engage further in discussion to understand your objectives better and showcase how my skills can contribute significantly to the success of your project. Looking forward to the opportunity to collaborate. Warm regards, Shaylin
$400 USD in 14 days
0.0
0.0

I have gone through your project description ✅ and I see exactly what you need: upgrading an asynchronous bot for OKX spot-futures arbitrage, enhancing architecture, API order execution integration, risk management implementation, and user interface improvement. While I am new to Freelancer, I have vast experience and completed numerous projects off-site. View my portfolio here: https://www.freelancer.com/u/moejoe03?frm=moejoe03&sb=t Excited to help make your trading bot seamless, professional, and efficient. Regards, Mohammed Yusuf
$300 USD in 14 days
0.0
0.0

Hello, I'm excited about the opportunity to modernize your asynchronous bot for OKX spot-futures arbitrage. I have a solid background in Python development, especially in creating robust trading algorithms and integrating APIs. Your project requires not just improvements but a significant evolution of the existing framework, and I am eager to tackle this challenge. To achieve the goals outlined, I will focus on refactoring the architecture by modularizing the code, ensuring each component functions seamlessly, and enhancing logging for better troubleshooting. Additionally, implementing a deal execution mechanism and a risk management system will be crucial for reliable trading operations. I'm also prepared to enhance the user interface and reporting aspects to provide insightful metrics. I believe that my skills in algorithm development and API integration will be invaluable in transforming your bot from a testing tool into a fully functional trading system. I'm looking forward to discussing your specific ideas and architectural solutions further. Could you clarify your expectations regarding the specific functionalities you want prioritized in the bot's modernization? Thanks, Faisal
$555 USD in 11 days
0.0
0.0

Hello, my name is Lesley Roberts, and I specialize in custom web design and development, including responsive UI/UX design, front-end architecture, landing pages, website optimization, and interactive features like chatbots. With expertise in HTML, CSS, JavaScript, React, Node.js, PHP, and WordPress, I ensure clean, maintainable code and timely project delivery. For your project bid, I propose enhancing your asynchronous bot for OKX spot-futures arbitrage through refactoring code architecture, implementing trade execution mechanisms, risk management systems, and improving user interface and reporting. I have experience in handling complex projects and can effectively transform your current codebase into a robust trading bot with advanced functionality. I am keen on collaborating with you to bring your vision to life and achieve your project goals effectively. Let's discuss further to outline specific timelines and costs for mandatory and optional tasks. Looking forward to collaborating with you on this exciting venture.
$400 USD in 14 days
0.0
0.0

Odesa, Ukraine
Member since Aug 26, 2025
₹1500-12500 INR
$250-750 USD
₹600-1500 INR
₹750-1250 INR / hour
$40-80 USD / hour
$10-30 USD
$30-40 USD
€750-1500 EUR
₹12500-37500 INR
$30-250 USD
$8-15 USD / hour
₹1500-12500 INR
€250-750 EUR
₹12500-37500 INR
$250-750 USD
$250-750 USD
$25-50 USD / hour
$250-750 USD
$15-25 USD / hour
₹12500-37500 INR