Change the method of activating the trigger in the bot (Binance)
Now the transactions are opened after operating a certain trigger (when the price reaches the desired value). You need to write an additional check (condition) to filter the opening of transactions
More in detail with the candidate, there are examples of how to do
If you know what to do a little work
Есть прописанный бот для торговли на Binance (nodejs)
Сейчас сделки открываются после срабатывания определенного триггера (когда цена достигает нужного значения). Нужно прописать дополнительную проверку (условие) для фильтрации открытия сделок
1. сохранять предыдущий триггер в память
2. сравнивать с текущим триггером
3. если это больше 0.006 то проспать такую сделку, если меньше то открывать ордер
Сейчас бот в каждый момент момент времени фиксирует цены, которые приходят с биржи по апи по всем выбранным валютам (сейчас вроде это обозначено как p1/p0) типо изначальная цена к текущей цене
Сейчас сделка открывается, когда цена достигла определенного значения по какой-то из валют
Что нужно:
Когда сработал триггер на открытие сделки бот должен взять триггерное значение p1/p0 и сравнить его с предыдущим (тем, что было до триггера p1/p0)
И разницу между ними нужно сравнить с числом 0,006
Например
Если получилось число 0,2558782 то открывать сделку не нужно
Если число 0,00123017 то все ок, и открываем сделку
Бот работает не круглые сутки, обычно запускается утром или днем, потом останавливается, на след день новый запуск
Если сделка не открыта (разница больше 0.006), то за валютой нужно продолжать следить
Client's review of cooperation with Yevhen L.
Change the method of activating the trigger in the bot (Binance)Everything is done greatly and very quickly! Into the project and in all the nuances
Always in contact, I highly recommend!
![]()
Freelancer's review of cooperation with client
Change the method of activating the trigger in the bot (Binance)Отличный заказчик, было очень приятно работать. Задача была тоже довольна интересна. В 90% случаев ответ на свои сообщения получал быстро. Могу рекомендовать к работе!
-
402 8 0 Ready to perform your task, previously worked with the Binance API. I think I will quickly realize
with your task. I am constantly in contact with any messenger :)
-

бот написан на node js
Сейчас c биржи по api в бот поступает информация о ценах различных валют. И сделки открываются после срабатывания определенного триггера (когда цена достигает нужного значения). Нужно прописать дополнительную проверку (условие) для фильтрации открытия сделок
Условие:
Если вкратце, то боту необходимо взять триггерное значение цен и сравнить с предыдущим поступившим значением
Если разница меньше заданного значения, то сделку открываем
Если разница между триггерной и предыдущей ценой больше заданного значения, то эту сделку пропускаем
-
Current freelance projects in the category Javascript and Typescript
Support and development of the cleaning company's website
20 USD
I'm looking for a web developer/webmaster for long-term support and development of a cleaning company's website. Website: https://donely.ca About the project DoneLy Home Services is a cleaning service company in Canada that is actively growing and expanding its geographical… Javascript and Typescript, Web Programming ∙ 20 hours 54 minutes back ∙ 55 proposals |
Development of a website according to the specifications on FramerYou need to create a website based on the parameters in the technical specification. https://docs.google.com/document/d/1ODO2C9Krb4AaMiJz9wfbNzWlAyA2FwCCHL8r0biajUY/edit?usp=sharing Please provide your actual rate based on this design. HTML & CSS, Javascript and Typescript ∙ 1 day 22 hours back ∙ 26 proposals |
Development of an interactive Palworld map for the websiteWe need to develop an interactive map for Palworld based on the example: https://palworld.gg/map We need not just a static image, but a full-fledged interactive map where users can view locations, toggle object categories on/off, search for specific points, and interact with… HTML & CSS, Javascript and Typescript ∙ 3 days 12 hours back ∙ 32 proposals |
Development of the AM Mobility platform (car service, parking, insurance, car rental)
5731 USD
We are looking for a team or an experienced Full Stack developer to create the MVP of the AM Mobility platform. AM Mobility is a unified digital ecosystem for motorists, combining in one application and web platform: parking; car service; tire fitting; car wash; car rental;… Javascript and Typescript, Web Programming ∙ 8 days 19 hours back ∙ 119 proposals |
Gsap animations
22 USD
Good day. Corrections need to be made in the current project. A specialist is needed who works well with gsap/lenis. Animation of cards needs to be done. Detailed specifications here:… Javascript and Typescript, Web Programming ∙ 9 days back ∙ 21 proposals |