Market Making trading bot for cryptomarkets
Sorry, english documentation is not complete
Česká dokumentace
Market Making trading bot for cryptomarkets
License: MIT License
Market Making trading bot for cryptomarkets
Sorry, english documentation is not complete
Česká dokumentace
Po update kompilace končí následující chybovkou
fatal error: shared/default_app.h: No such file or directory
#include <shared/default_app.h>
^~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
src/main/CMakeFiles/mmbot.dir/build.make:278: recipe for target 'src/main/CMakeFiles/mmbot.dir/main.cpp.o' failed
make[2]: *** [src/main/CMakeFiles/mmbot.dir/main.cpp.o] Error 1
CMakeFiles/Makefile2:186: recipe for target 'src/main/CMakeFiles/mmbot.dir/all' failed
make[1]: *** [src/main/CMakeFiles/mmbot.dir/all] Error 2
Makefile:129: recipe for target 'all' failed
make: *** [all] Error 2
Dobrý den,
po velkém update systému Poloniex se robot nemůže připojit přes API.
Pořád ukazuje hlášku: HTTP Exception: 401 Unauthorized (getInfo). Připojení na ostatní brokery funguje bez problémů.
Zkusil jsem znovu zadat API klíč i vytvořit nový, ale končí to pořád stejnou chybovou hláškou.
Jinak za robota moc díky, funguje skvěle.
Hi Ondra,
during update it throw error:
Unpacking objects: 100% (82/82), done.
From https://github.com/ondra-novak/mmbot
3c5c035..f95a624 master -> origin/master
2dc22f9..f1b4107 webadmin -> origin/webadmin
Fetching submodule src/server
warning: redirecting to https://github.com/ondra-novak/simpleServer.git/
From https://www.github.com/ondra-novak/simpleServer
1d31cf1..a000398 master -> origin/master
Fetching submodule src/shared
warning: redirecting to https://github.com/ondra-novak/ondra_shared.git/
From https://www.github.com/ondra-novak/ondra_shared
1bf824d..2136311 master -> origin/master
Automatic merge went well; stopped before committing as requested
Submodule path 'src/shared': checked out '1bf824d8f5a7a2196ee380e9daa4e65435094008'
-- Configuring done
-- Generating done
-- Build files have been written to: /home/mmbot
[ 1%] Building CXX object src/server/src/simpleServer/CMakeFiles/simpleServer.dir/linux/tcpStreamFactory.cpp.o
/home/mmbot/src/server/src/simpleServer/linux/tcpStreamFactory.cpp: In member function ‘virtual simpleServer::Stream simpleServer::TCPConnect::create()’:
/home/mmbot/src/server/src/simpleServer/linux/tcpStreamFactory.cpp:144:29: error: catching polymorphic type ‘class simpleServer::SystemException’ by value [-Werror=catch-value=]
} catch (SystemException e) {
^
cc1plus: all warnings being treated as errors
make[2]: *** [src/server/src/simpleServer/CMakeFiles/simpleServer.dir/build.make:336: src/server/src/simpleServer/CMakeFiles/simpleServer.dir/linux/tcpStreamFactory.cpp.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:141: src/server/src/simpleServer/CMakeFiles/simpleServer.dir/all] Error 2
make: *** [Makefile:130: all] Error 2
Postupoval jsem podle install.md, skončil jsem na krou "make all" s následující chybou. Zkoušeno ve VirtualBoxu na čisté instalaci Ubuntu 19.04.
jaroslav@jaroslav:~/mmbot$ make all
Scanning dependencies of target simpleServer
[ 1%] Building CXX object src/server/src/simpleServer/CMakeFiles/simpleServer.dir/abstractStream.cpp.o
[ 2%] Building CXX object src/server/src/simpleServer/CMakeFiles/simpleServer.dir/asyncProvider.cpp.o
[ 4%] Building CXX object src/server/src/simpleServer/CMakeFiles/simpleServer.dir/base64.cpp.o
[ 5%] Building CXX object src/server/src/simpleServer/CMakeFiles/simpleServer.dir/chunkedStream.cpp.o
[ 6%] Building CXX object src/server/src/simpleServer/CMakeFiles/simpleServer.dir/common.cpp.o
[ 8%] Building CXX object src/server/src/simpleServer/CMakeFiles/simpleServer.dir/exceptions.cpp.o
[ 9%] Building CXX object src/server/src/simpleServer/CMakeFiles/simpleServer.dir/http_client.cpp.o
[ 11%] Building CXX object src/server/src/simpleServer/CMakeFiles/simpleServer.dir/http_dynpathmap.cpp.o
[ 12%] Building CXX object src/server/src/simpleServer/CMakeFiles/simpleServer.dir/http_filemapper.cpp.o
[ 13%] Building CXX object src/server/src/simpleServer/CMakeFiles/simpleServer.dir/http_headers.cpp.o
[ 15%] Building CXX object src/server/src/simpleServer/CMakeFiles/simpleServer.dir/http_hostmapping.cpp.o
[ 16%] Building CXX object src/server/src/simpleServer/CMakeFiles/simpleServer.dir/http_parser.cpp.o
[ 18%] Building CXX object src/server/src/simpleServer/CMakeFiles/simpleServer.dir/http_pathmapper.cpp.o
[ 19%] Building CXX object src/server/src/simpleServer/CMakeFiles/simpleServer.dir/http_server.cpp.o
[ 20%] Building CXX object src/server/src/simpleServer/CMakeFiles/simpleServer.dir/linux/address.cpp.o
[ 22%] Building CXX object src/server/src/simpleServer/CMakeFiles/simpleServer.dir/linux/fileStream.cpp.o
[ 23%] Building CXX object src/server/src/simpleServer/CMakeFiles/simpleServer.dir/linux/linuxService.cpp.o
[ 25%] Building CXX object src/server/src/simpleServer/CMakeFiles/simpleServer.dir/linux/netEventDispatcher.cpp.o
[ 26%] Building CXX object src/server/src/simpleServer/CMakeFiles/simpleServer.dir/linux/realpath.cpp.o
[ 27%] Building CXX object src/server/src/simpleServer/CMakeFiles/simpleServer.dir/linux/ssl_socket.cpp.o
[ 29%] Building CXX object src/server/src/simpleServer/CMakeFiles/simpleServer.dir/linux/tcpStream.cpp.o
[ 30%] Building CXX object src/server/src/simpleServer/CMakeFiles/simpleServer.dir/linux/tcpStreamFactory.cpp.o
[ 31%] Building CXX object src/server/src/simpleServer/CMakeFiles/simpleServer.dir/query_parser.cpp.o
[ 33%] Building CXX object src/server/src/simpleServer/CMakeFiles/simpleServer.dir/sha1.cpp.o
[ 34%] Building CXX object src/server/src/simpleServer/CMakeFiles/simpleServer.dir/threadPoolAsync.cpp.o
/home/jaroslav/mmbot/src/server/src/simpleServer/threadPoolAsync.cpp: In member function ‘virtual void simpleServer::ThreadPoolAsyncImpl::runAsync(const simpleServer::AsyncResource&, int, const CompletionFn&)’:
/home/jaroslav/mmbot/src/server/src/simpleServer/**threadPoolAsync.cpp:136:12: error: catching polymorphic type ‘class simpleServer::OutOfSpaceException’ by value [-Werror=catch-value=]
} catch (OutOfSpaceException) {
^~~~~~~~~~~~~~~~~~~**
cc1plus: all warnings being treated as errors
make[2]: *** [src/server/src/simpleServer/CMakeFiles/simpleServer.dir/build.make:375: src/server/src/simpleServer/CMakeFiles/simpleServer.dir/threadPoolAsync.cpp.o] Chyba 1
make[1]: *** [CMakeFiles/Makefile2:141: src/server/src/simpleServer/CMakeFiles/simpleServer.dir/all] Chyba 2
make: *** [Makefile:130: all] Chyba 2
Hi,
could you please give a sample of working mmbot.conf ?
i've got error in loading the conf when started.
Thank you.
Hello, could you please assist us with the following error? At first, a friend of mine seen it with a real trader that was placing orders on markets, so I thought it was related to the used exchange. But now I'm also observing the same error on a trainer, so it could be some internal issue unrelated to brokers.
Thank you in advance!
Hi,
Thanks for your hard work mate, MMBOT is working greate.
But is there any possibillity u add tp?
Sometimes i have more then 200% profit and sometimes i lose it all.
Thanks!
There is a compilation error:
In file included from /home/mmbot/mmbot/src/brokers/kucoin/main.cpp:10:
/home/mmbot/mmbot/src/brokers/kucoin/kucoin.h:58:22: error: ‘optional’ in namespace ‘std’ does not name a template type
58 | mutable std::optional<OrderMap> orderMap;
| ^~~~~~~~
In file included from /home/mmbot/mmbot/src/brokers/kucoin/main.cpp:10:
/home/mmbot/mmbot/src/brokers/kucoin/kucoin.h:8:1: note: ‘std::optional’ is defined in header ‘<optional>’; did you forget to ‘#include <optional>’?
7 | #include "../httpjson.h"
+++ |+#include <optional>
8 |
In file included from /home/mmbot/mmbot/src/brokers/kucoin/kucoin.cpp:1:
/home/mmbot/mmbot/src/brokers/kucoin/kucoin.h:58:22: error: ‘optional’ in namespace ‘std’ does not name a template type
58 | mutable std::optional<OrderMap> orderMap;
| ^~~~~~~~
In file included from /home/mmbot/mmbot/src/brokers/kucoin/kucoin.cpp:1:
/home/mmbot/mmbot/src/brokers/kucoin/kucoin.h:8:1: note: ‘std::optional’ is defined in header ‘<optional>’; did you forget to ‘#include <optional>’?
7 | #include "../httpjson.h"
+++ |+#include <optional>
8 |
make[2]: *** [src/brokers/kucoin/CMakeFiles/kucoin.dir/build.make:76: src/brokers/kucoin/CMakeFiles/kucoin.dir/main.cpp.o] Error 1
make[2]: *** Waiting for unfinished jobs....
/home/mmbot/mmbot/src/brokers/kucoin/kucoin.cpp: In member function ‘virtual bool KucoinIFC::reset()’:
/home/mmbot/mmbot/src/brokers/kucoin/kucoin.cpp:309:9: error: ‘orderMap’ was not declared in this scope; did you mean ‘OrderMap’?
309 | orderMap.reset();
| ^~~~~~~~
| OrderMap
/home/mmbot/mmbot/src/brokers/kucoin/kucoin.cpp: In member function ‘void KucoinIFC::updateOrders()’:
/home/mmbot/mmbot/src/brokers/kucoin/kucoin.cpp:314:14: error: ‘orderMap’ was not declared in this scope; did you mean ‘OrderMap’?
314 | if (!orderMap.has_value()) {
| ^~~~~~~~
| OrderMap
/home/mmbot/mmbot/src/brokers/kucoin/kucoin.cpp: In member function ‘virtual IStockApi::Orders KucoinIFC::getOpenOrders(const string_view&)’:
/home/mmbot/mmbot/src/brokers/kucoin/kucoin.cpp:340:30: error: ‘orderMap’ was not declared in this scope; did you mean ‘OrderMap’?
340 | for (const auto &x: *orderMap) {
| ^~~~~~~~
| OrderMap
make[2]: *** [src/brokers/kucoin/CMakeFiles/kucoin.dir/build.make:90: src/brokers/kucoin/CMakeFiles/kucoin.dir/kucoin.cpp.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:921: src/brokers/kucoin/CMakeFiles/kucoin.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....
[ 79%] Linking CXX executable ../../bin/mmbot
[ 99%] Built target mmbot
make: *** [Makefile:136: all] Error 2
Api spojení s coinmate podúčtem končí chybou:
debug [0002][coinmate] RECV: [false,"Api internal error. Error identifier BF.1561532140534.255"]
S hlavním účtem Api funguje.
Bylo by skvělé, kdyby robot uměl pracovat s podúčty ať nemusí obchodovat přes hlavní účet.
Hi Ondra,
just reporting you compilation issues from the latest master, see details attached:
mmbot@ccnode:~/rep_mmbot/mmbot-master2$ git clone https://github.com/ondra-novak/mmbot.git .
Cloning into '.'...
remote: Enumerating objects: 12522, done.
remote: Counting objects: 100% (122/122), done.
remote: Compressing objects: 100% (105/105), done.
remote: Total 12522 (delta 39), reused 95 (delta 12), pack-reused 12400
Receiving objects: 100% (12522/12522), 22.13 MiB | 10.36 MiB/s, done.
Resolving deltas: 100% (9350/9350), done.
mmbot@ccnode:~/rep_mmbot/mmbot-master2$ ./update
...
/home/mmbot/rep_mmbot/mmbot-master2/src/shared/trailer.h:152:5: error: ‘ondra_shared::Trailer<buffsz>::Trailer(Fn&&) [with Fn = ondra_shared::IniConfig::load<ondra_shared::IniConfig::load_setpath<ondra_shared::IniConfig::load_setpath(const string&, const StrViewA&)::<lambda(const ondra_shared::IniItem&)> >(const string&, const StrViewA&, ondra_shared::IniConfig::load_setpath(const string&, const StrViewA&)::<lambda(const ondra_shared::IniItem&)>&&, const StrViewA&)::<lambda()>, ondra_shared::IniConfig::load_setpath<ondra_shared::IniConfig::load_setpath(const string&, const StrViewA&)::<lambda(const ondra_shared::IniItem&)> >(const string&, const StrViewA&, ondra_shared::IniConfig::load_setpath(const string&, const StrViewA&)::<lambda(const ondra_shared::IniItem&)>&&, const StrViewA&)::<lambda(const ondra_shared::IniItem&)> >(const ondra_shared::IniConfig::load_setpath<ondra_shared::IniConfig::load_setpath(const string&, const StrViewA&)::<lambda(const ondra_shared::IniItem&)> >(const string&, const StrViewA&, ondra_shared::IniConfig::load_setpath(const string&, const StrViewA&)::<lambda(const ondra_shared::IniItem&)>&&, const StrViewA&)::<lambda()>&, const StrViewA&, ondra_shared::IniConfig::load_setpath<ondra_shared::IniConfig::load_setpath(const string&, const StrViewA&)::<lambda(const ondra_shared::IniItem&)> >(const string&, const StrViewA&, ondra_shared::IniConfig::load_setpath(const string&, const StrViewA&)::<lambda(const ondra_shared::IniItem&)>&&, const StrViewA&)::<lambda(const ondra_shared::IniItem&)>&&, const StrViewA&)::<lambda()>; <template-parameter-2-2> = void; long unsigned int buffsz = 24]’, declared using local type ‘ondra_shared::IniConfig::load<ondra_shared::IniConfig::load_setpath<ondra_shared::IniConfig::load_setpath(const string&, const StrViewA&)::<lambda(const ondra_shared::IniItem&)> >(const string&, const StrViewA&, ondra_shared::IniConfig::load_setpath(const string&, const StrViewA&)::<lambda(const ondra_shared::IniItem&)>&&, const StrViewA&)::<lambda()>, ondra_shared::IniConfig::load_setpath<ondra_shared::IniConfig::load_setpath(const string&, const StrViewA&)::<lambda(const ondra_shared::IniItem&)> >(const string&, const StrViewA&, ondra_shared::IniConfig::load_setpath(const string&, const StrViewA&)::<lambda(const ondra_shared::IniItem&)>&&, const StrViewA&)::<lambda(const ondra_shared::IniItem&)> >(const ondra_shared::IniConfig::load_setpath<ondra_shared::IniConfig::load_setpath(const string&, const StrViewA&)::<lambda(const ondra_shared::IniItem&)> >(const string&, const StrViewA&, ondra_shared::IniConfig::load_setpath(const string&, const StrViewA&)::<lambda(const ondra_shared::IniItem&)>&&, const StrViewA&)::<lambda()>&, const StrViewA&, ondra_shared::IniConfig::load_setpath<ondra_shared::IniConfig::load_setpath(const string&, const StrViewA&)::<lambda(const ondra_shared::IniItem&)> >(const string&, const StrViewA&, ondra_shared::IniConfig::load_setpath(const string&, const StrViewA&)::<lambda(const ondra_shared::IniItem&)>&&, const StrViewA&)::<lambda(const ondra_shared::IniItem&)>&&, const StrViewA&)::<lambda()>’, is used but never defined [-fpermissive]
152 | Trailer(Fn &&fn){
| ^~~~~~~
In file included from /home/mmbot/rep_mmbot/mmbot-master2/src/shared/ini_config.h:16,
from /home/mmbot/rep_mmbot/mmbot-master2/src/main/mtrader.h:15,
from /home/mmbot/rep_mmbot/mmbot-master2/src/main/mtrader.cpp:5:
/home/mmbot/rep_mmbot/mmbot-master2/src/shared/ini_parser.h:106:6: error: ‘ondra_shared::IniParser<Output>::IniParser(Output&&) [with Output = ondra_shared::IniConfig::load<ondra_shared::IniConfig::load_setpath<ondra_shared::IniConfig::load_setpath(const string&, const StrViewA&)::<lambda(const ondra_shared::IniItem&)> >(const string&, const StrViewA&, ondra_shared::IniConfig::load_setpath(const string&, const StrViewA&)::<lambda(const ondra_shared::IniItem&)>&&, const StrViewA&)::<lambda()>, ondra_shared::IniConfig::load_setpath<ondra_shared::IniConfig::load_setpath(const string&, const StrViewA&)::<lambda(const ondra_shared::IniItem&)> >(const string&, const StrViewA&, ondra_shared::IniConfig::load_setpath(const string&, const StrViewA&)::<lambda(const ondra_shared::IniItem&)>&&, const StrViewA&)::<lambda(const ondra_shared::IniItem&)> >(const ondra_shared::IniConfig::load_setpath<ondra_shared::IniConfig::load_setpath(const string&, const StrViewA&)::<lambda(const ondra_shared::IniItem&)> >(const string&, const StrViewA&, ondra_shared::IniConfig::load_setpath(const string&, const StrViewA&)::<lambda(const ondra_shared::IniItem&)>&&, const StrViewA&)::<lambda()>&, const StrViewA&, ondra_shared::IniConfig::load_setpath<ondra_shared::IniConfig::load_setpath(const string&, const StrViewA&)::<lambda(const ondra_shared::IniItem&)> >(const string&, const StrViewA&, ondra_shared::IniConfig::load_setpath(const string&, const StrViewA&)::<lambda(const ondra_shared::IniItem&)>&&, const StrViewA&)::<lambda(const ondra_shared::IniItem&)>&&, const StrViewA&)::ProcessFn&&]’, declared using local type ‘ondra_shared::IniConfig::load<ondra_shared::IniConfig::load_setpath<ondra_shared::IniConfig::load_setpath(const string&, const StrViewA&)::<lambda(const ondra_shared::IniItem&)> >(const string&, const StrViewA&, ondra_shared::IniConfig::load_setpath(const string&, const StrViewA&)::<lambda(const ondra_shared::IniItem&)>&&, const StrViewA&)::<lambda()>, ondra_shared::IniConfig::load_setpath<ondra_shared::IniConfig::load_setpath(const string&, const StrViewA&)::<lambda(const ondra_shared::IniItem&)> >(const string&, const StrViewA&, ondra_shared::IniConfig::load_setpath(const string&, const StrViewA&)::<lambda(const ondra_shared::IniItem&)>&&, const StrViewA&)::<lambda(const ondra_shared::IniItem&)> >(const ondra_shared::IniConfig::load_setpath<ondra_shared::IniConfig::load_setpath(const string&, const StrViewA&)::<lambda(const ondra_shared::IniItem&)> >(const string&, const StrViewA&, ondra_shared::IniConfig::load_setpath(const string&, const StrViewA&)::<lambda(const ondra_shared::IniItem&)>&&, const StrViewA&)::<lambda()>&, const StrViewA&, ondra_shared::IniConfig::load_setpath<ondra_shared::IniConfig::load_setpath(const string&, const StrViewA&)::<lambda(const ondra_shared::IniItem&)> >(const string&, const StrViewA&, ondra_shared::IniConfig::load_setpath(const string&, const StrViewA&)::<lambda(const ondra_shared::IniItem&)>&&, const StrViewA&)::<lambda(const ondra_shared::IniItem&)>&&, const StrViewA&)::ProcessFn’, is used but never defined [-fpermissive]
106 | IniParser(Output &&out)
[mmbot-compilation-errors.txt](https://github.com/ondra-novak/mmbot/files/9048804/mmbot-compilation-errors.txt)
| ^~~~~~~~~
make[2]: *** [src/main/CMakeFiles/mmbot.dir/build.make:118: src/main/CMakeFiles/mmbot.dir/mtrader.cpp.o] Error 1
make[2]: *** Waiting for unfinished jobs....
make[1]: *** [CMakeFiles/Makefile2:603: src/main/CMakeFiles/mmbot.dir/all] Error 2
make: *** [Makefile:136: all] Error 2
Super robot, rozjel jsem si mmbota na ETH, zajímá mne backtest.
Importoval jsem si data, co jsou k disposici u Vás na webu za rok 2018 na binance. Hraju si s různými strategiemi a koukám na grafy a zaboha z nich nejsem moudrý, ukazuje to nesmysly u jednotlivých obchodech na grafu.
Například to ukazuje obchod:
Price: 5018,81
Size: 20,000mikro
Position: 0,016592
PnL: 85,6313
Norm PnL: 39,0432
Anchor price (k) 3864,01
Assets/Position 0,016706
Budget extra/Debt: 39,0433
Last price 5018,81
Power (w): 309,11
Nějak to nechápu. Pokud se dívám na data v csv, který jsem importoval, měly by být mezi 200-600 USDT.
Dnešní ceny jsou kolem 2230 USDT za ETH. Kde vzal price 5018,81? Co to je prosím za nesmysl?
Díky předem za nějaké objasnění.
-- Configuring done
-- Generating done
-- Build files have been written to: /home/ubuntu/web/mmbot
[ 19%] Built target imtjson
[ 20%] Building CXX object src/trainer/CMakeFiles/trainer.dir/main.cpp.o
c++: error: unrecognized command line option '-std=c++17'
make[2]: *** [src/trainer/CMakeFiles/trainer.dir/main.cpp.o] Error 1
make[1]: *** [src/trainer/CMakeFiles/trainer.dir/all] Error 2
Jsem as kkt. Balíky jsou nainstalovaný, ale tohle mi to neustále vyhazuje. Snažím googlit, ale nikde stejnou error nevidím, nebyla by nějaká rada?
Bohužel nejsem céčkař, takže takovéty klasické chyby sám neodhalím.
Díky
Distributor ID: Ubuntu
Description: Ubuntu 14.04.5 LTS
Release: 14.04
Codename: trusty
Hi
i am working to add a new exchange to mmbot, since I am not c/cpp developer, It took more than standard time/effort :)
branch is here: Amenocy#1
now I have a problem, I tested all broker_protcol commands and they work fine, and I am able to run trader, but the problem is, it doesn't even try to open an order, I could find any placeOrder call in the logfile, but I can see this in dashboard,
I have one guess, and since from strategy, order amount is too low, and my money in exchange ( for test) is too low ( 57usdt) , it tries to open order but from getinfo call data, it cannot pass min order amount, somehow it shows in the dashboard!
could you please help me a b I t ?
CSV format of that orders:
"date","pair","price","size","value","currency","asset"
"05/06/2024, 10:22:33","ethusdt",3803.193,0,0,"eth","usdt"
"05/06/2024, 10:23:32","ethusdt",3803.193,0,0,"eth","usdt"
@ondra-novak thanks in advance :)
Zdravim, robota som skompiloval ale led sa ho snazim spustit, tak mi napise tuto chybu
payter@mmbot:/media/sf_mmbot/mmbot$ bin/mmbot -p 10000 start
payter@mmbot:/media/sf_mmbot/mmbot$ ERROR: Cannot bind socket to port:/media/sf_mmbot/mmbot/run/inst.pid:666 - Operation not permitted
A robi pri akomkolvek porte, robi to aj pri root spusteni, ako to vyriesit? dik
Pokusil jsem se pustit (podle dokumentace) funkci calc_range, ale nevypisuje požadovaný výsledek. Pokusil jsem se i změnit velikost external_assets (původně jsem měl nastaveno na 0.0) zpět na defaultních 0.5, ale se stejným výsledkem.
$ bin/mmbot calc_range
vector::_M_range_check: __n (which is 0) >= this->size() (which is 0)
Hi Ondra,
It seems in the backtest does not work downloading prices (current master), the pop-up window does not appear.
When I hit the button:
I see these logs in nginx:
10.84.20.203 - mmbot [22/Apr/2022:15:09:52 +0200] "GET /api/admin/brokers/bitfinex/pairs/BTC%2FEUR HTTP/1.1" 404 482 "http://mmbot.vie.lan/admin/index.html" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:99.0) Gecko/20100101 Firefox/99.0"
10.84.20.203 - mmbot [22/Apr/2022:15:09:52 +0200] "GET /api/admin/brokers/bitfinex/pairs/BTC%2FEUR/history HTTP/1.1" 404 482 "http://mmbot.vie.lan/admin/index.html" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:99.0) Gecko/20100101 Firefox/99.0"
Hi,
there is a problem with building authmapper.cpp:
[ 33%] Building CXX object src/main/CMakeFiles/mmbot.dir/authmapper.cpp.o
/home/mmbot/mmbot/src/brokers/rptbroker/database.cpp: In static member function ‘static DataBase::Trade DataBase::Trade::fromOld(const DataBase::OldTrade&)’:
/home/mmbot/mmbot/src/brokers/rptbroker/database.cpp:379:22: error: ‘numeric_limits’ is not a member of ‘std’
379 | x.pos = std::numeric_limits<double>::quiet_NaN();
| ^~~~~~~~~~~~~~
/home/mmbot/mmbot/src/brokers/rptbroker/database.cpp:379:37: error: expected primary-expression before ‘double’
379 | x.pos = std::numeric_limits<double>::quiet_NaN();
| ^~~~~~
make[2]: *** [src/brokers/rptbroker/CMakeFiles/rptbroker.dir/build.make:95: src/brokers/rptbroker/CMakeFiles/rptbroker.dir/database.cpp.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:722: src/brokers/rptbroker/CMakeFiles/rptbroker.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....
Po nejnovějším update přestal fungovat přístup do administrace. Ukáže se jen prázdná stránka. A to jak v původním, tak i novém rozhraní.
Hi,
when trying to compile from the latest master version, on Ubuntu 24.04 LTS:
-- Configuring done (0.7s)
-- Generating done (0.1s)
-- Build files have been written to: /home/mmbot/rep_mmbot/mmbot-master
Building in 2 thread(s)
[ 1%] Building CXX object src/imtjson/src/imtjson/CMakeFiles/imtjson.dir/abstractValue.cpp.o
[ 1%] Building CXX object src/server/src/simpleServer/CMakeFiles/simpleServer.dir/abstractStream.cpp.o
[ 1%] Building CXX object src/imtjson/src/imtjson/CMakeFiles/imtjson.dir/array.cpp.o
In file included from /home/mmbot/rep_mmbot/mmbot-master/src/server/src/simpleServer/abstractStream.cpp:1:
/home/mmbot/rep_mmbot/mmbot-master/src/server/src/simpleServer/abstractStream.h:789:36: error: 'std::intptr_t' has not been declared
789 | const Stream &operator << (std::intptr_t x) const {
| ^~~
make[2]: *** [src/server/src/simpleServer/CMakeFiles/simpleServer.dir/build.make:76: src/server/src/simpleServer/CMakeFiles/simpleServer.dir/abstractStream.cpp.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:514: src/server/src/simpleServer/CMakeFiles/simpleServer.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....
[ 2%] Building CXX object src/imtjson/src/imtjson/CMakeFiles/imtjson.dir/arrayValue.cpp.o
[ 2%] Building CXX object src/imtjson/src/imtjson/CMakeFiles/imtjson.dir/base64.cpp.o
[ 3%] Building CXX object src/imtjson/src/imtjson/CMakeFiles/imtjson.dir/basicValues.cpp.o
[ 3%] Building CXX object src/imtjson/src/imtjson/CMakeFiles/imtjson.dir/binary.cpp.o
[ 4%] Building CXX object src/imtjson/src/imtjson/CMakeFiles/imtjson.dir/jwt.cpp.o
[ 5%] Building CXX object src/imtjson/src/imtjson/CMakeFiles/imtjson.dir/key.cpp.o
[ 5%] Building CXX object src/imtjson/src/imtjson/CMakeFiles/imtjson.dir/namedEnum.cpp.o
[ 6%] Building CXX object src/imtjson/src/imtjson/CMakeFiles/imtjson.dir/object.cpp.o
[ 6%] Building CXX object src/imtjson/src/imtjson/CMakeFiles/imtjson.dir/objectValue.cpp.o
[ 7%] Building CXX object src/imtjson/src/imtjson/CMakeFiles/imtjson.dir/path.cpp.o
[ 7%] Building CXX object src/imtjson/src/imtjson/CMakeFiles/imtjson.dir/rpc.cpp.o
[ 8%] Building CXX object src/imtjson/src/imtjson/CMakeFiles/imtjson.dir/string.cpp.o
/home/mmbot/rep_mmbot/mmbot-master/src/imtjson/src/imtjson/rpc.cpp: In member function 'json::AbstractRpcClient::PreparedCall json::AbstractRpcClient::operator()(json::String, json::Value, json::Value)':
/home/mmbot/rep_mmbot/mmbot-master/src/imtjson/src/imtjson/rpc.cpp:588:20: error: 'runtime_error' is not a member of 'std'
588 | throw std::runtime_error("Invalid JSONRPC version (client-call)");
| ^~~~~~~~~~~~~
/home/mmbot/rep_mmbot/mmbot-master/src/imtjson/src/imtjson/rpc.cpp:17:1: note: 'std::runtime_error' is defined in header ''; did you forget to '#include '?
16 | #include "fnv.h"
+++ |+#include
17 | namespace json {
/home/mmbot/rep_mmbot/mmbot-master/src/imtjson/src/imtjson/rpc.cpp:589:1: warning: control reaches end of non-void function [-Wreturn-type]
589 | }
| ^
make[2]: *** [src/imtjson/src/imtjson/CMakeFiles/imtjson.dir/build.make:244: src/imtjson/src/imtjson/CMakeFiles/imtjson.dir/rpc.cpp.o] Error 1
make[2]: *** Waiting for unfinished jobs....
make[1]: *** [CMakeFiles/Makefile2:488: src/imtjson/src/imtjson/CMakeFiles/imtjson.dir/all] Error 2
make: *** [Makefile:136: all] Error 2
Dobrý den,
při posledním update Version: 2.22.2-2-gfa7e3e4 na Ubuntu 18.04.5 LTS vyskakuje při kompilaci chyba
src/brokers/rptbroker/database.h:186:12: sorry, unimplemented: non-trivial designated initializers not supported
if (!fn(pos, hdr, Payload{recTraderInfo, .tinfo = &nfo})) return;
~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
To samé pak pro řádek 191, 198 a 204. Takže kompilace skončí celkovou chybou.
src/brokers/rptbroker/CMakeFiles/rptbroker.dir/build.make:62: recipe for target 'src/brokers/rptbroker/CMakeFiles/rptbroker.dir/main.cpp.o' failed
make[2]: *** [src/brokers/rptbroker/CMakeFiles/rptbroker.dir/main.cpp.o] Error 1
CMakeFiles/Makefile2:293: recipe for target 'src/brokers/rptbroker/CMakeFiles/rptbroker.dir/all' failed
make[1]: *** [src/brokers/rptbroker/CMakeFiles/rptbroker.dir/all] Error 2
Makefile:129: recipe for target 'all' failed
make: *** [all] Error 2
Done
Dobrý den,
po poslední aktualizaci končí příkaz ./update následující chybovou hláškou:
[ 34%] Building CXX object src/main/CMakeFiles/mmbot.dir/btstore.cpp.o
/home/inspiration/mmbot/src/main/btstore.cpp:10:10: fatal error: filesystem: No such file or directory
#include
^~~~~~~~~~~~
compilation terminated.
src/main/CMakeFiles/mmbot.dir/build.make:950: recipe for target 'src/main/CMakeFiles/mmbot.dir/btstore.cpp.o' failed
make[2]: *** [src/main/CMakeFiles/mmbot.dir/btstore.cpp.o] Error 1
CMakeFiles/Makefile2:236: recipe for target 'src/main/CMakeFiles/mmbot.dir/all' failed
make[1]: *** [src/main/CMakeFiles/mmbot.dir/all] Error 2
Makefile:129: recipe for target 'all' failed
make: *** [all] Error 2
Hi,
I try to add a new API for SimpleFX and I get this error:
Logs:
2022-05-05 12:58:16 info [0002][http::2EB6] localhost PUT /api/admin/brokers/simplefx/apikey 200 application/json 4
2022-05-05 12:58:29 Note [0002][simplefx] Broker process disconnected because signal: 15
2022-05-05 12:58:29 [0002][simplefx] Connecting to broker: cmdline='../bin/brokers/simplefx ../secure_data/simplefx', workdir='/home/mmbot/rep_mmbot_testing/mmbot-master/bin/./../conf'
2022-05-05 12:58:42 Note [0002][simplefx] Broker process disconnected because signal: 15
2022-05-05 12:58:42 info [0002][http::2EB7] localhost GET /api/admin/brokers/simplefx/pairs/ 500 application/xhtml+xml 546
Zdravim, snazim se rozchodit bota, ale v prubehu instalace to hodi nize vypsany error. Bot se sice nainstaluje, ale training set si nestahne data atd. Nevim jestli to muze byt diky teto chybe.
Server bezi na Ubuntu 21.10
Diky za pomoc!
[ 25%] Building CXX object src/server/src/simpleServer/CMakeFiles/simpleServer.dir/linux/address.cpp.o
In file included from /home/mmbot/mmbot/src/server/src/simpleServer/linux/address.cpp:16:
/home/mmbot/mmbot/src/server/src/simpleServer/linux/localAddr.h: In member function ‘virtual std::string simpleServer::NetAddrSocket::toString(bool) const’:
/home/mmbot/mmbot/src/server/src/simpleServer/linux/localAddr.h:37:45: warning: ‘%03o’ directive output may be truncated writing between 3 and 11 bytes into a region of size 9 [-Wformat-truncation=]
37 | snprintf(perms,10,":%03o", permissions);
| ^~~~
/home/mmbot/mmbot/src/server/src/simpleServer/linux/localAddr.h:37:43: note: directive argument in the range [1, 4294967295]
37 | snprintf(perms,10,":%03o", permissions);
| ^~~~~~~
In file included from /usr/include/stdio.h:888,
from /usr/include/c++/11/cstdio:42,
from /usr/include/c++/11/ext/string_conversions.h:43,
from /usr/include/c++/11/bits/basic_string.h:6606,
from /usr/include/c++/11/string:55,
from /home/mmbot/mmbot/src/server/src/simpleServer/linux/../address.h:2,
from /home/mmbot/mmbot/src/server/src/simpleServer/linux/address.cpp:10:
/usr/include/x86_64-linux-gnu/bits/stdio2.h:71:35: note: ‘__builtin___snprintf_chk’ output between 5 and 13 bytes into a destination of size 10
71 | return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1,
| ~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
72 | __glibc_objsize (__s), __fmt,
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
73 | __va_arg_pack ());
| ~~~~~~~~~~~~~~~~~
Hi, it seems that there is an issue with Coinbase. I think it is closely tied to how the market is acting right now, anyway it seems that they have a problem, based on user reports on Reddit. Some users are reporting: When using Coinbase Pro API I am getting ESOCKETTIMEDOUT
And the Bot makes a ton of orders.
Zdravím Vás,
chtěl bych se zeptat zda jste nezaznamenal problém s připojením k burze Coinbase Pro
Mám robota nainstalovaného cca 5 dní na Raspbianu. Nová instalace.
Instalace mmbot dle návodu proběhla úspěšně.
Nastavil jsme dva API klíče a to od coinmate a coinbase pro.
Obchodování na Coinmate mě fuguje. Coinbase buď nefunguje ubec (stále píše chybu HTTP Exception: 400 Bad Request) nebo po resetu makléřú jednou načte aktuální hodnoty z nastvené měny pro obchodování a po další aktualizaci zase hlásí chybu.
Zatím si mmbot jen oťukávám, tak nevím zda je chyba u mě nebo coinbase něco změnil.
Předem děkuji za odpověď
kompilované na Raspberry Pi(armv6l), g++-7 (7.3.0-19), option (-std=c++17), libstdc++-7-dev, libcurlpp-dev, libssl-dev, libcurl4-openssl-dev,cmake, make, g++, git
/home/mmbot/mmbot/src/binance/main.cpp:380:45: error: no matching function for call to ‘min(std::size_t&, long long unsigned int)’
startTime = std::min(startTime, v.time-1);
řešeno úpravou nastartTime = std::min<std::size_t>(startTime, v.time-1);
/home/mmbot/mmbot/src/main/mtrader.cpp: In member function 'int MTrademperformW:
/home/mmbot/mmbot/src/main/mtrader.cpp:441:18: error: narrowing conversion of '(((MTrader*)this)->MTrader::trades.std::vector<IStockApi::Trad eWithBalance>::empty() ? 0 : (W(MTrader*)this)->MTraderntrades.std::vector<IStockApi::TradeWithBalance>::back())->IStockApi::TradeWithBala nce::<anonymous>.IStockApi::Trade::time - (WMTrader*)this)->MTrader::trades.std::vector<IStockApi::TradeWithBalance>::operator[](0))->IStoc kApi::TradeWithBalance::<anonymous>.IStockApi::Trade::time))' from 'long long unsigned int' to 'std::size_t' {aka 'unsigned int'} inside { }
[-Werror=narrowing]
trades.empty()?0:(trades.back().time-trades[0].time)
řešeno odmazání při kompilaci -Werror
v CMakelist
Možné takto, případně lepší cesta??
Hi Ondro,
compilation stops here on the current code from mater:
[ 20%] Built target simpleServer
[ 20%] Building CXX object src/imtjson/src/imtjson/CMakeFiles/imtjson.dir/namedEnum.cpp.o
In file included from /home/mmbot/mmbot_github_master/mmbot/src/imtjson/src/imtjson/namedEnum.cpp:8:
/home/mmbot/mmbot_github_master/mmbot/src/imtjson/src/imtjson/namedEnum.h:84:22: error: field ‘whatMsg’ has incomplete type ‘std::string’ {aka ‘std::__cxx11::basic_string’}
84 | mutable std::string whatMsg;
| ^~~~~~~
In file included from /usr/include/c++/10/iosfwd:39,
from /usr/include/c++/10/string_view:40,
from /home/mmbot/mmbot_github_master/mmbot/src/imtjson/src/imtjson/namedEnum.h:3,
from /home/mmbot/mmbot_github_master/mmbot/src/imtjson/src/imtjson/namedEnum.cpp:8:
/usr/include/c++/10/bits/stringfwd.h:74:11: note: declaration of ‘std::string’ {aka ‘class std::__cxx11::basic_string’}
74 | class basic_string;
| ^~~~~~~~~~~~
In file included from /home/mmbot/mmbot_github_master/mmbot/src/imtjson/src/imtjson/namedEnum.cpp:8:
/home/mmbot/mmbot_github_master/mmbot/src/imtjson/src/imtjson/namedEnum.h:86:14: error: field ‘errorEnum’ has incomplete type ‘std::string’ {aka ‘std::__cxx11::basic_string’}
86 | std::string errorEnum;
| ^~~~~~~~~
In file included from /usr/include/c++/10/iosfwd:39,
from /usr/include/c++/10/string_view:40,
from /home/mmbot/mmbot_github_master/mmbot/src/imtjson/src/imtjson/namedEnum.h:3,
from /home/mmbot/mmbot_github_master/mmbot/src/imtjson/src/imtjson/namedEnum.cpp:8:
/usr/include/c++/10/bits/stringfwd.h:74:11: note: declaration of ‘std::string’ {aka ‘class std::__cxx11::basic_string’}
74 | class basic_string;
| ^~~~~~~~~~~~
In file included from /home/mmbot/mmbot_github_master/mmbot/src/imtjson/src/imtjson/namedEnum.cpp:8:
/home/mmbot/mmbot_github_master/mmbot/src/imtjson/src/imtjson/namedEnum.h:135:84: error: return type ‘std::string’ {aka ‘class std::__cxx11::basic_string’} is incomplete
135 | inline std::string json::NamedEnum::allEnums(std::string_view separator) const {
| ^~~~~
/home/mmbot/mmbot_github_master/mmbot/src/imtjson/src/imtjson/namedEnum.h: In member function ‘void json::NamedEnum::allEnums(std::string_view) const’:
/home/mmbot/mmbot_github_master/mmbot/src/imtjson/src/imtjson/namedEnum.h:139:14: error: ‘res’ has incomplete type
139 | std::string res;
| ^~~
In file included from /usr/include/c++/10/iosfwd:39,
from /usr/include/c++/10/string_view:40,
from /home/mmbot/mmbot_github_master/mmbot/src/imtjson/src/imtjson/namedEnum.h:3,
from /home/mmbot/mmbot_github_master/mmbot/src/imtjson/src/imtjson/namedEnum.cpp:8:
/usr/include/c++/10/bits/stringfwd.h:74:11: note: declaration of ‘std::string’ {aka ‘class std::__cxx11::basic_string’}
74 | class basic_string;
| ^~~~~~~~~~~~
In file included from /home/mmbot/mmbot_github_master/mmbot/src/imtjson/src/imtjson/namedEnum.cpp:8:
/home/mmbot/mmbot_github_master/mmbot/src/imtjson/src/imtjson/namedEnum.h:139:14: error: ‘res’ has incomplete type
139 | std::string res;
| ^~~
In file included from /usr/include/c++/10/iosfwd:39,
from /usr/include/c++/10/string_view:40,
from /home/mmbot/mmbot_github_master/mmbot/src/imtjson/src/imtjson/namedEnum.h:3,
from /home/mmbot/mmbot_github_master/mmbot/src/imtjson/src/imtjson/namedEnum.cpp:8:
/usr/include/c++/10/bits/stringfwd.h:74:11: note: declaration of ‘std::string’ {aka ‘class std::__cxx11::basic_string’}
74 | class basic_string;
| ^~~~~~~~~~~~
In file included from /home/mmbot/mmbot_github_master/mmbot/src/imtjson/src/imtjson/namedEnum.cpp:8:
/home/mmbot/mmbot_github_master/mmbot/src/imtjson/src/imtjson/namedEnum.h:139:14: error: ‘res’ has incomplete type
139 | std::string res;
| ^~~
In file included from /usr/include/c++/10/iosfwd:39,
from /usr/include/c++/10/string_view:40,
from /home/mmbot/mmbot_github_master/mmbot/src/imtjson/src/imtjson/namedEnum.h:3,
from /home/mmbot/mmbot_github_master/mmbot/src/imtjson/src/imtjson/namedEnum.cpp:8:
/usr/include/c++/10/bits/stringfwd.h:74:11: note: declaration of ‘std::string’ {aka ‘class std::__cxx11::basic_string’}
74 | class basic_string;
| ^~~~~~~~~~~~
make[2]: *** [src/imtjson/src/imtjson/CMakeFiles/imtjson.dir/build.make:186: src/imtjson/src/imtjson/CMakeFiles/imtjson.dir/namedEnum.cpp.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:506: src/imtjson/src/imtjson/CMakeFiles/imtjson.dir/all] Error 2
make: *** [Makefile:149: all] Error 2
Hi, could this be linked with this article from Binance ?
Thank you.
https://www.binance.com/en/support/announcement/2188a59425384e2082b79d9beccf669c
> 2021-04-23 05:03:05 Warn. [0002][binance_LTCUSDT] Multiple buy orders (trying to cancel)
> 2021-04-23 05:03:05 Error [0002][binance_LTCUSDT] binance: -2011 Unknown order sent. (placeOrder)
> 2021-04-23 05:03:06 Warn. [0002][binance_RVNUSDT] Multiple buy orders (trying to cancel)
> 2021-04-23 05:03:06 Error [0002][binance_RVNUSDT] binance: -2011 Unknown order sent. (placeOrder)
> 2021-04-23 05:03:06 Warn. [0002][binance_RVNUSDT] Multiple buy orders (trying to cancel)
> 2021-04-23 05:03:07 Error [0002][binance_RVNUSDT] binance: -2011 Unknown order sent. (placeOrder)
> 2021-04-23 05:03:07 Warn. [0002][binance_RVNUSDT] Multiple sell orders (trying to cancel)
> 2021-04-23 05:03:07 Error [0002][binance_RVNUSDT] binance: -2011 Unknown order sent. (placeOrder)
> 2021-04-23 05:04:06 Warn. [0002][binance_LTCUSDT] Multiple buy orders (trying to cancel)
> 2021-04-23 05:04:06 Error [0002][binance_LTCUSDT] binance: -2011 Unknown order sent. (placeOrder)
> 2021-04-23 05:04:07 Warn. [0002][binance_RVNUSDT] Multiple buy orders (trying to cancel)
> 2021-04-23 05:04:08 Error [0002][binance_RVNUSDT] binance: -2011 Unknown order sent. (placeOrder)
> 2021-04-23 05:04:08 Warn. [0002][binance_RVNUSDT] Multiple buy orders (trying to cancel)
> 2021-04-23 05:04:08 Error [0002][binance_RVNUSDT] binance: -2011 Unknown order sent. (placeOrder)
> 2021-04-23 05:04:08 Warn. [0002][binance_RVNUSDT] Multiple sell orders (trying to cancel)
> 2021-04-23 05:04:08 Error [0002][binance_RVNUSDT] binance: -2011 Unknown order sent. (placeOrder)
> 2021-04-23 05:04:08 Warn. [0002][binance_RVNUSDT] Multiple buy orders (trying to cancel)
> 2021-04-23 05:04:08 Error [0002][binance_RVNUSDT] binance: -2011 Unknown order sent. (placeOrder)
> 2021-04-23 05:04:08 Warn. [0002][binance_RVNUSDT] Multiple sell orders (trying to cancel)
> 2021-04-23 05:04:09 Error [0002][binance_RVNUSDT] binance: -2011 Unknown order sent. (placeOrder)
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.