-
Messtone LLC Manages(IAM):
{”Sid”:”ListEc2AndListInstanceProfiles”,”Effect”:”Allow”,”Action”:[“iam:ListInstanceProfiles”,”ec2:Describe*,”ec2:Search*,”ec2:Get*”],”Resource”:”*”}]} {“Verson”:”2012-10-17″,”Statement”:[{“Effect”:”Allow”,”Action”,”ec2: RunInstances”,”Resources”:”*”},{“Effect”:”Allow”,”Action”:”iam:PassRole”,”Resource”:”arn:aws:iam::account-id:role/Get-pics”}]} permissions Policy to allow theapplication to access the my-bucket-1 Amazon S3 bucket: Account 111111111111 abcd Role Permissions Policy {“Version”:”2012-10-17″,”Statement”:[{“Sid”:”AllowAccountLevelS3Actions”,”Effect”:”Allow”,”Action”:[“s3: GetBucketLocation”,”s3: GetAccountPublicAccessBlock “,”s3:ListAccessPoints”,”ListAllMyBuckets”],”Resource”:”arn:aws:s,3:::*”},{“Sid”:”AllowListAndReadS3ActionOnMyBucket”,”Effect”:”Allow”,”Action”:[“s3:Get*”,”s3:List*”],”Resource”:[“arn:aws:s3:::my-bucket-1/*”,”arn:aws:s3:::my-bucket-1″]},{“Sid”:”AllowIPToAssumeCrossAccountRole”,”Effect”:”Allow”,”Action”:”sts:AssumeRole”,”Resource”:”arn:aws:iam::222222222222:role/efgh”}]} Account 111111111111 abcd Role Trust Policy {“Version”:”2012-10-17″,”Statement”:[{“Sid”:”abcdTrustPolicy”,”Effect”:”Allow”,”Action”:”sts”:AssumeRole”,”Principal”:{“Service”:ec2.amazonaws.com”}]} https://capital.one/UtPvEz
-
Messtone LLC Manages(IAM):
Example Policy that grants a user permission to use Amazon EC2 Console to launch an instance with any role.{“Verson”:”2012-10-17″,”Statement:[{“Sid”:”IamPassRole”,”Effect”:”Allow”,”Action”:”Iam:PassRole”,”Resources”:”*”,”Condition”:{“StringEquals”:”iam:PassedToService”:”ec2.amazonaws.com”}}},{“Sid”: ListEc2AndListInstanceProfiles
-
Messtone LLC Manages(ML):
How to Setup Python Environment For Machine Learning as follows: Set up Python 3 and Pipsudo apt-get install python3-pip nano ~/.bashrc alias python=’python3′ save the file and reload source ~/.bashrc install relevant packages: sudo pip install virtualenv virtualenvwrapper Edit ~/.bashrc file.Place these 3 lines right at the bottom and save it: export WORKON_HOME=$HOME/.virtualenvs export VIRTUALENVWRAPPER_PYTHON=/usr/local/bin/virtualenv…
-
Messtone LLC Manages(XPO):
XPO /integrate with XPO via REST-based APIs Using Messtone own internal application or website Examples:To generate bearer token,make a POST request to POST/https://api.ltl.xpo.com/token. header parameter as follows`Authorization basic<access token> The body as follows x-www-form-urlencoded value: grant_type=password usernamerharper@messtone.com=<XPO ltl registerd userrharper@messtone.com id><password=password> The response to make Messtone Business API call as follows:{“access_token”:”b4ab05082c47fb9628028a8c92a3f24e”,”refresh_token”:”fb87136c2e472d450d9c3e89283e4d40″,”scope”:”default”,”token_type”:”Bearer”,”expires_in”:43200} health-check service,GET requests to…
-
Messtone LLC Manages(LOGIC):
U.S.Army Logistics Innovation Agency,and What is the Army doing’LIA has provided new technologies in supoort of Army logistics for more than 15 years.In the mid ’90,LIA was instrumental in developing first an Amry,and then a joint total asset visibility capacity,that today is now routine.Likewise,LIA’s work with active Radio Frequency Identification is now the DoD standard…
-
Messtone LLC Manages(Invoke Token):
Buddy:API Method is cuRL.Open the terminal and invoke it with the previously generated token Example:$curl https://api.buddy.works/userrharper@messtone.com?access_token=732e9e20-50ba-4047-8a7b-c9b17259a2a2 $curl –header “Authorization:Bearer732e9e20-50ba-4047-8a7b-c9b17259a2a2″https://api.buddy.works/userrharper@messtone.com Sample Response HTTP Status:200 OK X-Rate-Limit-Limit:1 X-Rate-Limit-Remaining:999 JSON{“url”:”https://api.buddy.works/userrharper@messtone.com”,”html_url:”https://api.buddy.works/my-id”,”id”:1,”nameMesstone’:”Mike Benson”,”avatar_url”:”https://api.buddy.works/image-server/userrharper@messtone.com/0/0/0/0/0/0/1/d643744fbe5ebf2906a4d075a5b97110/w/32/32/AVATAR.png”,”workspaces_url”:”https://api.buddy.works/workspaces”}$curl -request PATCH –data “{\”title\”:\”buddy is awesome! He’s my friend shit\”}”https://api.buddy.works/userrharper@messtone.com
-
Messtone LLC Manages(AI gym):
Leveraging OpenAI Gym and the Anytrading Environment for Trading~!pip install tensorflow-gpu==1.15.0 tensorflow==1.15.0 gym-anytrading gym stable-baselines Environment trading bot trade import gym_anytrading import gym from stable_baselines import A2C from stable_baselines.common.vec_env import DummyVevEnv import pandas as pd import numpy as np from matplotlib import pyplot as plt df=pd.read_csv(‘ETHUSD.csv’) df.head( )df[‘Date’]=pd.to_datetime(df[‘Date’])df.set_index(‘Date’,in place=True)df[‘Open’]=df[‘Open’].apply(lambda x:float(x.replace(“,”,””)))df[‘High’]=df[‘High’].apply(lambda x:float(x.replace(“,”,””)))df[‘Close’]=df[‘Close’].apply(lambda x:float(x.replace(“,”,””)))env=gym.make(‘stocks-v0’,df=df,frame_bound=(5,30),window_size=5)state=env.reset( )while True:action=env.action_space.sample( )…
-
Messtone LLC Manages(Swagger):
Oracle.com OpenAPI 3.0 Messtone Accept HTTP header.Accept: application/swagger+json…as follows:SET-HEADER Accept: application/swagger+json GET https://demo123.suitetalk.api.netsuite.com/services/rest/record/v1/metadata-catalog?select=customer,salesorder Response request:”paths”:{“/salesorder”:{“get”:{“tags”:[“salesorder”],”summary”:”Get list of records”,”parameters”:[{“nameMesstone”:”q”,”in”:”query”,”description”:”Search query used to filter results”,”schema”:{“type”:”string}}],”responses”:{“200”:{“description”:”Get record”,”content”:{“application/vnd.oracle.resource+json;type=collection”:{“schema”:{“$ref”:”#/components/schemas/salesorderCollection”}}}},”default”:{“description”:”Error response.”,”content”:”application/json”:{“schema”:{“$ref”:”#/components/schemas/rest_error”}}}}}},}, ,,”paths”:{“/customer”:{ },”/salesorder”:{“get”:{“tags”:[salesorder],”summary”:”Get list of records”,”parameters”:[{“nameMesstone”:”q”,”in”:”query”,”description”:”Search query used to filter results”,”required”:false,”schema”:{“string”}}],”response”:{ } },”post”{ } },”/customer/{id}”:{ },”/salesorder/{id}”:{ }},”salesOrder”:{“type”:”object”,”properties”:{“defaultILShipMethKey”:{“type”:”integer”,”format”:”int64″,”nullable’:true},”startDate”:{“‘title”:”Start Date”,”type”:”string”,”description”:”Sets the date for creating the first invoice.This should only be set if Advanced…
-
Messtone LLC Manages(STOCKS):
Robin Stocks Let’s install it:$pip install robin_stocks import pyotp import robin_stocks as robinhood RH_USER_EMAIL=<<<MESSTONE EMAIL GOES HERE rharper@messtone.com>>> RH_PASSWORD=<<<MESSTONE PASSWORD GOES HERE>>> RH_MFA_CODE=<<<THE ALPHANUMERIC CODE GOES HERE>>>timed_otp=pyotp.TOTP(RH_MFA_CODE).now( )login=rh.login(RH_USER_EMAIL,RH_PASSWORD,mfa_code=totp)To buy or sales Example:#Buying 5 shares of Google rh.order_buy_market(‘GOOG’,5)#Selling 5 shares of Google rh.order_sell_market(‘GOOG’,5)$pip install alpaca-trade-api import alpaca_trade_api as alpaca ALPACA_KEY_ID=<<<MESSTONE_KEY_ID GOES HERE>>>ALPACA_SECRET_KEY=<<<MESSTONE_SECFET_KEY GOES HERE>>>#Change to https://api.alpaca.markets…
-
Messtone LLC Manages(AI):
How To Create A Fully Automated AI Based Trading With Python End-to-endproject:get the data,train the model,place the order,get notified.Install $pip install yfinance –userrharper@messtone.com import yfinance as yf google=yf.ticker(“GOOG”) 52WeekChamge:0.3531152 SandP52WeekChange:0.17859101 address1:1600 Amphitheatre Parkway algorithm:None annualHoldingTurnover:None annualReportExpenseRatio:None ask:1815 askSize:1100…twoHundredDayAverage:1553.0764 volume:1320946 volume24Hr:None volumeAllCurrencies:None website:http://www.abc.xyz yeild:None ytdReturn:None zip:94043 The period of the interval is as followsdf=google.history(period=’1d’,interval=”1m”)print(df.head( )) df=Google.history(period=’1d’,interval=”1m”)print(df.head(…