legedric / ptmagic Goto Github PK
View Code? Open in Web Editor NEWMagic addon for Profit Trailer cryptocurrency trading bot.
License: Other
Magic addon for Profit Trailer cryptocurrency trading bot.
License: Other
If so how would I go about just using the analytics section?
Is this normal? Looks like it hasn't changed anything other than putting some coins into SOM. It is only using my default Pairs settings for values in "Active Settings" on the dashboard.
Guys need help, could you give me a strategy for me to use the original MAGIC configuration? Are you using LOWBB? I do not know which one to use.
please tell me what you think of my original
LOWBB = 25
GAIN = 0.5
PROFIT TRAILING = 0.05
I am a layperson and would like at least 2% a day, my wheel 24 hours a day in VPS
AND I'M VERY HAPPY TO BE PART OF THIS TIME MAGIC
Any chance you guys and open a discord channel?
If the chat ID is too big, the following error is displayed in browser:
Error.
An error occurred while processing your request.
Request ID: 0HLBMR8RCS0RQ:00000001
Failed to convert '-1234567891234' to type 'System.Int32'.
I guess it's because the id is bigger than 2,147,483,647
Hey guys, love your work! I run multiple bots on my VPS. What is required to set up PTMagic to support multiple bots?
On linux, my files are named like so:
PAIRS.properties , DCA.properties ...
as you know, linux is case sensitive, and your code tries to open PAIRS.PROPERTIES, even though i changed it to PAIRS.properties in the analyzer.settings .
Hi
I have done this, does that mean PTMagic will use these settings as default? Because I have changed these in the location in the guide and the monitor showed that it had set it self to "Default settings" but Profit trailer still using its own settings.
Though I can see that PT Magic has updated the Profit Trailer settings as it has updated with it's own messages on what it is doing.
Also, one more question, can we use PT Magic base settings or is it recommened we change these?
Many thanks
Gary
Thanks for great tool.
I'm setting up the ptmagic, and I found out that it supports currently exchange bittrex and binance, but not poloniex.
I temporary set-up to poloniex configured Profit Trailer with Binance setting. Well monitored but incompatible result, because as you know, added currency settings are improper to Poloniex.
So, would you have a plan to support Poloniex ?
Hi mate, why not release source code? It's fee anyway... people will fix bugs for you and improve it.....
# curl -vvv http://localhost:5000
* Rebuilt URL to: http://localhost:5000/
* Trying ::1...
* TCP_NODELAY set
* connect to ::1 port 5000 failed: Connection refused
* Trying 127.0.0.1...
* TCP_NODELAY set
* Connected to localhost (127.0.0.1) port 5000 (#0)
> GET / HTTP/1.1
> Host: localhost:5000
> User-Agent: curl/7.55.1
> Accept: */*
>
< HTTP/1.1 500 Internal Server Error
< Date: Fri, 16 Feb 2018 16:27:18 GMT
< Server: Kestrel
< Content-Length: 0
Absolutely no errors in the Monitor process output (actually no useful output at all).
# dotnet --version
2.1.4
# cat /etc/issue
Ubuntu 17.10 \n \l
# dotnet Monitor/Monitor.dll
Hosting environment: Production
Content root path: /PTMagic
Now listening on: http://0.0.0.0:5000
Application started. Press Ctrl+C to shut down.
In each trigger, the bot buys the amount you currently have, but with the new price.
so if you buy with 1 BTC at first, and your first buy trigger is -3,
you'll buy at the price of 0.97.
Can you take into consideration all the buy triggers?
When calling dotnet PTMagic.dll
on *nix, it gives the following error:
A fatal error was encountered. The library 'libhostpolicy.so' required to execute the application was not found in 'path/to/ptmagic/'.
Everything is configured in accordance with the guide provided for *nix systems. Here is the dotnet --info
output:
.NET Command Line Tools (2.1.4)
Product Information:
Version: 2.1.4
Commit SHA-1 hash: 5e8add2190
Runtime Environment:
OS Name: amzn
OS Version: 2
OS Platform: Linux
RID: linux-x64
Base Path: /usr/share/dotnet/sdk/2.1.4/
Microsoft .NET Core Shared Framework Host
Version : 2.0.5
Build : 17373eb129b3b05aa18ece963f8795d65ef8ea54
I don't have any experience with .NET, so at this point it's hard to figure out whether the problem is with my system, with the way I'm trying to launch PTMagic, or with the archive. I tried to look up the missing file but I don't think it'a part of any library.
I've got everything up and running, cmd screen for the monitor is on and I can connect to localhost but then receive this message:
Monitor update failed!
PTMagic Monitor failed to update data. If this error does not go away by itself, please check the connection to your hosting
I've checked everything from the wiki twice. Can't seem to find a solution...
Hi there,
when I'm trying to access the Monitor my Monitor.dll process wents up to 90% CPU load.
I cant access the Dashboard and the Sales analyzer:
Monitor.dll:
PTMagic.dll:
Webinterface:
And sometime I get an JSON error at the Sales Analyzer Tab. I've set "StartBalance" manualy. Running in TestMode version 1.0.2 on dotnet 2.3.1 on Ubuntu Linux
Any ideas?
Hi man,
There's no real issue. I use feeder and want to use this program for profit tracking as I love how it looks. How would I make it do this (i don't want it to trade or change any settings)? My trade history is on 99999
How do i make it accurate? By the way the balance is refering to total balance or available balance?
Is there a way to test the telegram connection to PT Magic to ensure it is set up properly? Also, what messages should we expect to receive on Telegram?
I think this file should distributed with the PTMagic, and add it to the Mac/Linux wiki instructions.
Here's the file(s) I use for both PTMagic & PTMagic Monitor:
pm2-PTMagic.json:
{
"apps": [
{
"name": "pt-magic",
"cwd": ".",
"script": "PTMagic.dll",
"node_args": [],
"log_date_format": "YYYY-MM-DD HH:mm Z",
"exec_interpreter": "dotnet",
"exec_mode": "fork",
"autorestart": true
}
]
}
pm2-PTMagic-Monitor.json:
{
"apps": [
{
"name": "pt-magic-monitor",
"cwd": ".",
"script": "Monitor/Monitor.dll",
"node_args": [],
"log_date_format": "YYYY-MM-DD HH:mm Z",
"exec_interpreter": "dotnet",
"exec_mode": "fork",
"autorestart": true
}
]
}
This makes managing the PTMagic process on Linux/Mac machines and VPS servers.
root@profi:/var/opt/PTMagic/Monitor# dotnet Monitor.dll
Error:
An assembly specified in the application dependencies manifest (Monitor.deps.json) was not found:
package: 'Microsoft.AspNetCore.Antiforgery', version: '2.0.1'
path: 'lib/netstandard2.0/Microsoft.AspNetCore.Antiforgery.dll'
This assembly was expected to be in the local runtime store as the application was published using the following target manifest files:
aspnetcore-store-2.0.3.xml
root@profi:/var/opt/PTMagic/Monitor#
my PT is in my VPS can you give us a tuturial to install PTMagic in a VPS? Thanks
After I run PTMagic they have parameter ALL_buy_value for various strategies.
I use LOWBB before with ALL_buy_value positive values, so your ALL_buy_value have negative values - So what strategy you use for standard from the box - EMASPREAD, EMAGAIN, LOWBB or etc.?
Hey folks,
you can start the bot using pm2 with the following File:
pm2.PTMagic.json
{
"apps": [
{
"name": "PTMagic",
"cwd": ".",
"script": "PTMagic.dll",
"node_args": [],
"log_date_format": "YYYY-MM-DD HH:mm Z",
"exec_interpreter": "dotnet",
"exec_mode": "fork",
"autorestart": false
}
]
}
Now the Monitor:
pm2.PTM-Monitor.json:
{
"apps": [
{
"name": "PTM-Monitor",
"cwd": ".",
"script": "Monitor/Monitor.dll",
"node_args": [],
"log_date_format": "YYYY-MM-DD HH:mm Z",
"exec_interpreter": "dotnet",
"exec_mode": "fork",
"autorestart": false
}
]
}
Put both files in the PTMagic dir and start the processes with:
pm2 start pm2.PTMagic.json
pm2 start pm2.PTM-Monitor.json
This might be easier to handle for some people.
Best Regards
I am trying to run the command:
dotnet PTMagic.dll
But I am getting this error:
2018/02/17 12:37:47.598 ERROR - Trading settings directory not found (/var/opt/pttrading/)
What am I doing wrong?
my pt directory is "/var/opt/pt/"
I don't know where I change the "Trading settings directory"
Hi Developer, I hope you don't mind. PTMAGIC still very new & many of us is still very confusing on how to use it. Please allow me put a discord link to gather more people who is interested on PTMAGIC, either is installation issue & file settings.
Please join us for any discussion about PTMAGIC.
Everything went fine until i tried to connect to the monitor. Command window running with no errors. Tried in Chrome and IE. Get the same error, "This page can't be displayed"
Hi,
I am running this program on my computer but I am getting this error message whenever I try to start it up. I don't why it is saying anything about a D drive.
2018/02/19 12:35:16.008 FATAL - Error loading configuration! System.FormatException Could not parse the JSON file. Error on line number '6': '"TestMode": true, // If TestMode is active, no properties files will be changes
"ProfitTrailerPath": "C:\Users\Dave\Desktop\MainProfitTrailer\", // Path to your Profit Trailer main directory (use double backslashes for windows like C:\ProfitTrailer\)'. at Microsoft.Extensions.Configuration.FileConfigurationProvider.Load(Boolean reload)
at Microsoft.Extensions.Configuration.ConfigurationRoot..ctor(IList`1 providers)
at Microsoft.Extensions.Configuration.ConfigurationBuilder.Build()
at Globals.SystemConfiguration.LoadSettings(String basePath) in D:\Tools\PTMagic\Globals\SystemConfiguration.cs:line 24
at PTMagic.Program.Main(String[] args) in D:\Tools\PTMagic\PTMagic\Program.cs:line 41
Unhandled Exception: System.FormatException: Could not parse the JSON file. Error on line number '6': '"TestMode": true, // If TestMode is active, no properties files will be changes
"ProfitTrailerPath": "C:\Users\Dave\Desktop\MainProfitTrailer\", // Path to your Profit Trailer main directory (use double backslashes for windows like C:\ProfitTrailer\)'. ---> Newtonsoft.Json.JsonReaderException: Bad JSON escape sequence: \D. Path 'GeneralSettings.Application.ProfitTrailerPath', line 6, position 39.
at Newtonsoft.Json.JsonTextReader.ReadStringIntoBuffer(Char quote)
at Newtonsoft.Json.JsonTextReader.ParseValue()
at Newtonsoft.Json.Linq.JContainer.ReadContentFrom(JsonReader r, JsonLoadSettings settings)
at Newtonsoft.Json.Linq.JContainer.ReadTokenFrom(JsonReader reader, JsonLoadSettings options)
at Newtonsoft.Json.Linq.JObject.Load(JsonReader reader, JsonLoadSettings settings)
at Microsoft.Extensions.Configuration.Json.JsonConfigurationFileParser.Parse(Stream input)
at Microsoft.Extensions.Configuration.Json.JsonConfigurationProvider.Load(Stream stream)
--- End of inner exception stack trace ---
at PTMagic.Program.Main(String[] args) in D:\Tools\PTMagic\PTMagic\Program.cs:line 59
C:\Users\Administrator\Desktop\PROFITTRAILERMAGIC\PTMagic.1.0.2\PTMagic 1.0.2\PT
Magic>dotnet Monitor/Monitor.dll
Unhandled Exception: System.FormatException: Could not parse the JSON file. Erro
r on line number '3': '"PTMagicBasePath": "C:\Users\Administrator\Desktop\PR
OFITTRAILERMAGIC\PTMagic.1.0.2\PTMagic 1.0.2\"
"Logging": {'. ---> Newtonsoft.Json.JsonReaderException: After parsing a value a
n unexpected character was encountered: ". Path 'PTMagicBasePath', line 3, posit
ion 2.
at Newtonsoft.Json.JsonTextReader.ParsePostValue(Boolean ignoreComments)
at Newtonsoft.Json.JsonTextReader.Read()
at Newtonsoft.Json.Linq.JContainer.ReadContentFrom(JsonReader r, JsonLoadSett
ings settings)
at Newtonsoft.Json.Linq.JContainer.ReadTokenFrom(JsonReader reader, JsonLoadS
ettings options)
at Newtonsoft.Json.Linq.JObject.Load(JsonReader reader, JsonLoadSettings sett
ings)
at Microsoft.Extensions.Configuration.Json.JsonConfigurationFileParser.Parse(
Stream input)
at Microsoft.Extensions.Configuration.Json.JsonConfigurationProvider.Load(Str
eam stream)
--- End of inner exception stack trace ---
at Microsoft.Extensions.Configuration.FileConfigurationProvider.Load(Boolean
reload)
at Microsoft.Extensions.Configuration.FileConfigurationProvider.Load()
at Microsoft.Extensions.Configuration.ConfigurationRoot..ctor(IList`1 provide
rs)
at Microsoft.Extensions.Configuration.ConfigurationBuilder.Build()
at Monitor.Program.Main(String[] args) in D:\Tools\PTMagic\Monitor\Program.cs
:line 21
C:\Users\Administrator\Desktop\PROFITTRAILERMAGIC\PTMagic.1.0.2\PTMagic 1.0.2\PT
Magic>pause
Press any key to continue . . .
I install this project as the steps on wiki, PTMagic.dll is running looking good.
But Monitor.dll seens not work,I try to connect to http://localhost:5000/,nothing show up.
I also try to change the port in settings.general.json, then run monitor again,but the port not changed.
Hi guys,
when I woke up today I just saw that issue #18 somehow disappeared here on our GitHub.
Just in case you are wondering, we did not remove the issue! In fact, you cannot even delete issues on GitHub for a good reason (making good answer unavailable) and we were kinda shocked when we saw that the issue is no longer with us.
However, I already contacted GitHub about this issue but it seems like the user that created this issue deleted his entire GitHub account and so all his content he ever created here got removed, including this issue with all its answers and comments...
Please use this topic now to answer questions regarding this topic and we will see what GitHub may be able to do to restoe this original issue.
Best regards,
Legedric
"https://github.com/Legedric/ptmagic STAY AWAY FROM THIS - Its a rip off of PT TRACKER and PT FEEDER that could steal your API KEYS and Wipe Your Accounts. YOU'VE BEEN WARNED"
This was posted in a Dischord channel. Can you clarify your position to this claim?
Thanks,
P
Looks like a great add on!
And would definitely like to try it, however.. I am running PT on a Mac..
Will there be a version for Mac users in addition the current Windows and lLinux versions? Would be great.
Good luck and keep it up!
Grtz Robarbo
Can't get this to run on Mac...any decent guide? The directions are lacking in information.
Some of the URLs are absolute paths and some are relative. Assets are relative and all the others (/DCACalculator, SalesAnalyzer, etc) are absolute. All should be relative so that it's much easier to setup behind an apache/nginx proxy (and it's good to be consistent).
I have everything in place. Path etc.
But in end Start PTMagic.cmd gives:
Unhandled Exception: System.ArgumentException: An item with the same key has already been added. Key: XMRBTC
at System.ThrowHelper.ThrowAddingDuplicateWithKeyArgumentException(Object key)
at System.Collections.Generic.Dictionary2.TryInsert(TKey key, TValue value, InsertionBehavior behavior) at System.Collections.Generic.Dictionary
2.Add(TKey key, TValue value)
at PTMagic.PTMagic.MarketTrendCheckTimer_Elapsed(Object sender, ElapsedEventArgs e) in D:\Tools\PTMagic\PTMagic\PTMagic.cs:line 580
at PTMagic.Program.Main(String[] args) in D:\Tools\PTMagic\PTMagic\Program.cs:line 177
After launching dotnet Monitor/Monitor.dll
I get this error in the browser:
Could not find a part of the path '/home/user/ptmagic/ptmagic/_data/LastRuntimeSummary.json'.
Indeed, there is no such file. The '_data' folder isn't there either.
The version of ptmagic I'm using is 1.0.1
I run PT on my windows PC and was wondering do I need to install Windows Server Hosting (.exe) to make PTM work?
If not, do I need to do anything to allow for http://localhost:5000/ through my firewall?
Error.
An error occurred while processing your request.
Request ID: 0HLBN3UNPI9OO:00000003
Could not find a part of the path 'C:\Users\Administrator\Desktop\PTMagic 1.0.2\PTMagic_data\LastRuntimeSummary.json'.
market trend is every so often throwing a fatal error:
2018/02/19 12:36:48.715 INFO - Starting market trend check with Version 1.0.2
2018/02/19 12:36:49.095 FATAL - The remote server returned an error: (403) Forbidden. System.Net.WebException The remote server returned an error: (403) Forbidden. at System.Net.HttpWebRequest.GetResponse()
at BusinessRules.MarketAnalyzer.BaseAnalyzer.GetSimpleJsonObjectFromURL(String url, LogHelper log) in D:\Tools\PTMagic\BusinessRules\MarketAnalyzer\BaseAnalyzer.cs:line 45
2018/02/19 12:36:49.103 INFO - CoinMarketCap - Getting market data...
2018/02/19 12:36:49.154 INFO - CoinMarketCap - Market data received for 100 currencies
Does seem to work fine regardless. My interval is set to 1 minute.
Hi,
I have followed the tutorials and managed to get PTMagic working without much hassle which is great. However i've set up my telegram bot and constantly every minute I get a message saying the settings have been switched to "Default". Is there a defect in the sense that if the settings are already default should it be constantly switching to it regardless instead of just doing a check to see what state it's currently in first.
I'm getting no errors from the logs from what I can see so I imagine i set it up correctly. (VPS Ubuntu if that helps)
side note: just want to say a big thank for for creating this addon with the aim of keeping it free - fantastic work and the community appreciates it!
Has this been installed and tested on a raspberry pi? - As a side note, amazing project! Can't wait to get this up and running!
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.