Find Jobs
Hire Freelancers

Python - fix bug in existing package by using percentage value from config (documented bug)

€8-30 EUR

Anulowano
Opublikowano prawie 5 lat temu

€8-30 EUR

Płatne przy odbiorze
Fix 3 bugs in [login to view URL] a) with stop loss value. In case stop loss is higher than base price (base_price) of created order buy, error occurs. Exception: Failed: invalid_arguments Scenario to reproduce: set_sl_price 15000 set_contract_amount 10 set_num_orders 10 set_price_distance 10 set_base_price 10000 create_ladder start_update Note: current price is 10100 Solution to implement: set_sl_price has to be calculated automatically with percentage from config/parameter. e.g get price of lowest buy order, get percentage from config e.g 10% calculate price for SL price, update config (set_sl_price) simulation: last order buy: 10555.0 percentage 10% SL price should be: 10555.0 - 10% (1055.5) = 9499.5 [2019-07-03 00:21:19,590] [INFO] Credentials Verified DeriShell> set_sl_price 15000 [2019-07-03 00:21:43,920] [INFO] Updated Stop Loss Price to: 30.0 DeriShell> set_contract_amount 10 [2019-07-03 00:21:43,939] [INFO] Updated number of contracts to: 10 DeriShell> set_num_orders 10 [2019-07-03 00:21:43,944] [INFO] Updated number of orders to: 10 DeriShell> set_price_distance 10 [2019-07-03 00:21:43,948] [INFO] Updated price difference to: 10.0 DeriShell> fill_basePrice_askPrice Filling base price with: 10655.0 [2019-07-03 00:21:44,001] [INFO] Updated base price to: 10655.0 DeriShell> create_ladder [2019-07-03 00:21:44,003] [INFO] Setup initial ladder [2019-07-03 00:21:44,190] [INFO] Placing Buy Order for 10 contracts at 10645.0 .... [2019-07-03 00:21:46,203] [INFO] Placing Buy Order for 10 contracts at 10555.0 [2019-07-03 00:21:46,460] [INFO] Placing SL Sell Order for 100 contracts at 15000.0 Traceback (most recent call last): File "[login to view URL]", line 225, in <module> File "[login to view URL]", line 157, in do_create_ladder TradeManager.setup_inital_ladder() File "\managers\[login to view URL]", line 57, in setup_inital_ladder order = TradeManager.create_sl_sell_order(ConfigManager.get_config().stopLossPrice, ConfigManager.get_config().numOfOrders * ConfigManager.get_config().contractSize) File "\managers\[login to view URL]", line 36, in create_sl_sell_order order = client.sell_stop_market_order(ConfigManager.get_config().tradeInsturment, amount, price) File "c:\util\[login to view URL]", line 168, in sell_stop_market_order return [login to view URL]("/api/v1/private/sell", options) File "c:\util\[login to view URL]", line 35, in request raise Exception("Failed: " + json["message"]) Exception: Failed: invalid_arguments b) when reset is executed and some existing order introduce manually is in place, sometimes this fails: DeriShell> close_positions TradeManager.close_all_positions() File "c:\managers\[login to view URL]", line 96, in close_all_positions [login to view URL](ConfigManager.get_config().tradeInsturment, x['size'], 99999, False, "") File "c:\util\[login to view URL]", line 128, in buy return [login to view URL]("/api/v1/private/buy", options) File "c:\util\[login to view URL]", line 35, in request raise Exception("Failed: " + json["message"]) Exception: Failed: invalid_quantity`` Reproduce: create manually one order, this will get out of synch. c) when reset command is executed, the SL order is not cleared properly but hangs in remote server,
Identyfikator projektu: 20187913

Informację o projekcie

5 ofert
Zdalny projekt
Aktywny 5 lat temu

Szukasz sposobu na zarobienie pieniędzy?

Korzyści ze składania ofert na Freelancer.com

Ustal budżet i ramy czasowe
Otrzymuj wynagrodzenie za swoją pracę
Przedstaw swoją propozycję
Rejestracja i składanie ofert jest bezpłatne
5 freelancerzy składają oferty o średniej wysokości €21 EUR dla tej pracy
Awatar Użytkownika
Hello How are you i have full time and I can start to work immediately Please contact me and do let us discuss about your project Thanks for your posting
€30 EUR w 7 dni
5,0 (19 opinii)
5,7
5,7
Awatar Użytkownika
⭐Hello⭐ My name's MingQi, Professional Full-Stack Developer with 7 years of experience. After reading your description carefully, I have convinced that this project will be completed in time perfectly as you want. Expertise in Python. Please check my profile page and ⭐⭐⭐Golden Review ⭐⭐⭐ from clients. I have my idea for implementing this project, which will be shared in private chat. Once you select me, I will do my best, which I will deliver on time and budget. I can make your all ideas wonderfully with High quality, affordable and work until satisfaction. Thank you.
€18 EUR w 1 dzień
5,0 (8 opinii)
4,5
4,5
Awatar Użytkownika
Hi there. I am very interested in your proposal. I can instantly help you with your starting project with a successful completion. As a professional Python developer, I ensure for a perfect ongoing project. I am sure that I can help you Looking forward to meeting you on chat. Regards
€19 EUR w 7 dni
5,0 (4 opinii)
3,6
3,6
Awatar Użytkownika
I am here, who you are looking for a motivated and talented developer. please contact me so that we can have a discussion in detail. Best Wishes. Vu.
€20 EUR w 1 dzień
2,9 (2 opinii)
4,5
4,5
Awatar Użytkownika
Hello. I have just read your proposal in detail. I am very interested in your project. I have experienced this kind of job in our life. I have entered this internet a few days ago, so I don't want a high budget and want to show my skill! If you check me, I do my best for you and I think you can get a good feeling. Thank you for seeing my bid. Best regards!
€19 EUR w 5 dni
0,0 (0 opinii)
0,0
0,0

O kliencie

Flaga ROMANIA
Bucuresti, Romania
5,0
23
Zweryfikowana metoda płatności
Członek od lis 13, 2017

Weryfikacja Klienta

Dziękujemy! Przesłaliśmy Ci e-mailem link do odebrania darmowego bonusu.
Coś poszło nie tak podczas wysyłania wiadomości e-mail. Proszę spróbować ponownie.
Zarejestrowani Użytkownicy Całkowita Liczba Opublikowanych Projektów
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
Wczytywanie podglądu
Udzielono pozwolenia na Geolokalizację.
Twoja sesja logowania wygasła i zostałeś wylogowany. Proszę, zalogować się ponownie.