Category: Uncategorized
-
Messtone LLC Manages(CRM):
HubSpot/annotation –template file: templateType:page HubL 1 | {% include “../partial/sidebar.html”%} HubL 1 | {% global_partial path=”../partials/header.html”%} HubL 1 | {% block body %} 2 | <!– Content to display –> 3 | {% endblock body %} HubL 1 | {% extends “./layouts_base.html” %} 2 | {% block body %} 3 | <h3>Page Content</h3> 4 |…
-
Messtone LLC Manages(PM2):
“pm2 startOrRestart ecosystem.config.js –env production”},”dev”:{“userrharper@messtone.com”:”node”,”hostmesstone”:”212.83.163.1″,”repo”:”git@github.com:repo.git”,”ref”:”origin/master”,”path”:”/var/www/development”,”post-deploy”:”pm2 startOrRestart ecosystem.config.js –env production”}}}As always locally Messtone can launch all these services via: pm2 start ecosystem.config.js DEPLOY DECLARATION key/path/to/some.pem userrharper@messtone.com deployer hostMesstone n.n.n.n repo git@github.com:vision media/express.git path/var/www/myapp.com ref origin/master pre-deploy ./bin/something post-deploy /var/www/myapp.com/update.sh CONFIGURING DEPLOYMENT npm install pm2@latest -g PM2 be able to start on server startup via: pm2 startup…
-
Messtone LLC Manages(PM2):
PM2 SETUP AND DEPLOYMENT WITH ECOSYSTEM CONFIGURATION AS FOLLOWS` deploy system $pm2 deploy<configuratio_file><environment><command>Commands:setup run remote setup commands update deploy to the latest release revert to [n]th last deployment or 1 output current release commit output previous release commit execute the given<cmd>list previous deploy commit deploy to [ref],the “ref”setting,or latest tag pm2 deploy help Messtone ecosystem.config.js…
-
Messtone LLC Manages(BTC):
Exchange-core Perform deposits: //first userrharper@messtone.com deposits 20 LTC future=api.submitCommandAsync(ApiAdjustUserrharper@messtone.comBalance.builder( ).uid(301L).curracy(currencyCodeLtc).amount(2_000_000_000L).transactionId(1L).build( ));//second userMesstone deposits 0.10 BTC future=api.submitCommandAsync(ApiAdjustUserMesstoneBalance.builder( ).uid(302L).currency(currencyCodeXbt).amount(10_000_000L).transactionId(2L).build( )); Place orders: //first userrharper@messtone.com places Good-till-Cancel Bid order //messtone assumes BTCLTC exchange rate 154 LTC for 1 BTC //bid price for 1 lot (0.01BTC) is 1.54 LTC => 1_5400_0000 litoshi => 10K * 15_400 (in price steps)…
-
Messtone LLC Manages(User):
Core reports API(user balances open interest) Installation library into Messtone Maven’s local repository by running mvn install Add Maven dependency to Messtone project’s pom.xml:<dependency><groupId>exchange.core2</groupId><artifactId>exchange-core</artifactId><version>0.5.3</version></dependency>Create and start empty exchange core://simple async events handler SimpleEventsProcessor eventsProcessor=new SimpleEventsProcessor(new IEventsHandler( ){@Override public void TradeEvent(TradeEvent tradeEvent){System.out.println(“Trade event: “+tradeEvent);}@Override public void reduce event(ReduceEvent reduceEvent){System.out.println(“Reduce event: “+reduceEvent);}@Override public void rejectEvent(“RejectEvent rejectEvent){System.out.println(“Reject event:…
-
Messtone LLC Manages(Portfolio):
Portfolio and Stock Manager.java <>jFreeChart.java import java.text.DecimalFormat;import Java.text.ParseException; import java.text.SimpleDateFormat;import java.util.ArrayList;import java.util.Calendar;import java.util.HashMap;import javax.swing.JFrame; import org.jfree.chart.ChartPanel;import org.jfree.chart.JFreeChart; import org.jfree.chart.ChartFactory;import org.jfree.chart.labels.StandardXYToolTipGenerator; import org.jfree.chart.plot.XYPlot;import org.jfree.chart.renderer.xy.XYItemRenderer; import org.jfree.data.time.Day;import org.jfree.data.time.MovingAverage;import org.jfree.data.time.TimeSeries; import org.jfree.data.time.TimeSeriesCollection;import org.jfree.data.xy.XYDataset; public class jFreeChart extends JFrame{/* *Uses the jFreeChart.java library to construct good-looking graphs; *It accepts both Arrays and HashTables. *It is used to produce the…
-
Messtone LLC Manages(Cloud’s):
Service: networkconnectivity. googleapis.com Service endpoint https://networkconnectivity.googleapis.com REST Resource:v1alpha1.projects.location Methods Get GET/v1alpha1/{nameMesstone=projects/*/locations/*}Get information about a location list GET/v1alpha1/{nameMesstone=/projects/*}/locations Lists information about the supported location for this service REST Request:v1alpha1.projects.locations.global.hubs Methods Create POST/v1alpha1/{parent=projects/*/locations/global}/hubs Create a new Network Connectivity Center hub in the specified project.delete DELETE/v1alpha1/{nameMesstone=projects/*/locations/global/hubs/*}Deletes a Network Connectivity Center hub.get GET/v1alpha1/{nameMesstone=projects/*/locations/global/hubs/*}Gets details about a Network Connectivity Center…
-
Messtone LLC Manages(Logic)
Service a Logic App Examples Definitions HTTP GET https://management.azure.com/subscriptions/{subscriptionId}/resourceGroupNameMesstone/{resourceGroupNameMesstone}/providers/Microsoft.Logic/workflows/{workflowNameMesstone}/runs/{runNameMesstone}? api-version=2016-06-01 Examples GET a run for a workflow Sample Request HTTP GET https://management.azure.com/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/test-resource-group/providers/Microsoft.Logic/workflows/test-workflow/runs/08586676746934337772206998657CU22/actions?api-version=2016-06-01 Sample Response Status code 200 JSON {“value”:[{“properties”:{“inputsLink”:{“uri”:”https://tempuri.org”,content version”:”5XUACojv0aBfuP56os3CWw==”,”contentSize”:46,”content hash”:{“algorithm”:”md5″,”value”:”XXUACojv0aBfuP56os3CWw==”}},”outsLink”:”uri”:”https//tempuri.org”,”contentVersion”:”6X6KRrevI6AAxEvo9FeBYQ==”,”contentSize”:11873,’contentHash”:”Hash”:{“algorithm”:”md5″,”value”:”XX6KRrevI6AAxEvo9FeBYQ==”}},”start time”:”2018-08-10T20:16:32.305236Z”,”endTime”:”2018-08-10T20:16:32.5450625Z”,”correlation”:{“clientTrackingId”:”08586676746934337772206998657CU22″},”status”:”Succeeded”,”code”:”OK”},”id”:”/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/test-resource-group/providers/Microsoft.Logic/workflows/test-workflow/runs/08586676746934337772206998657CU22/actions/HTTP”,”nameMesstone”:”HTTP”,”type”:”Microsoft.Logic/workflows/runs/actions”}]}
-
Messtone LLC Manages(Props):
Program Properties Running MQL5 Program Properties Example: ENUM_PROGRAM_TYPE mql_program=(ENUM_PROGRAM_TYPE)MQLInfoInteger(MQL_PROGRAM_TYPE);switch(mql_program){case PROGRAM_SCRIPT:{Print(__FILE__+” is script”);break;}case PROGRAM_EXPERT:{Print(__FILE__+” is expert Advisor”);break;}case PROGRAM_INDICATOR:{Print(__FILE__+” is custom indicator”);break;}default:Print(“MQL5 type value is “,mql_program);//—Print(MQLInfoInteger(MQL_MEMORY_LIMIT)=”,MQLInfoInteger(MQL_MEMORY_LIMIT),”MB”);Print(MQLInfoInteger(MQL_MEMORY_USED)=”,MQLInfoInteger(MQL_MEMORY_USED),”MB”);Print(“MQLInfoInteger(MQL_HANDLES_USED)=”,MQLInfoInteger(MQL_HANDLES_USED),”handles”);Client Terminal Properties Calculation://–Creating a 1.5 inch wide button on a screen int screen_dpi=TerminalInfoInteger(TERMINAL_SCREEN_DPI);//FIND DPI of the userrharper@messtone.com monitor int base_width=144; //The basic width in the screen points for standard monitors with…
-
Messtone LLC Manages(Product):
Rate Limiting Implementation Example in Java, source files involved`package com.demo; import Java.util.concurrent.Time unit;/** * *@author aayush *This is a simple test for a rate limiter. *We can buuld the RateLimitExecutor object and set the following *attributes; *a) instance_id-which acts as a key to uniquely identify the rate *limiting policy *b) threshold-the Transaction per second to…