#Ready-Made Crypto Exchange PHP Script
Explore tagged Tumblr posts
Text
Why PHP is the Ideal Tech Stack for Your Cryptocurrency Exchange Development?

When developing a cryptocurrency exchange platform, choosing the right tech stack is crucial for performance, security, and scalability. PHP has proven to be an efficient choice for building crypto exchange platforms due to its flexibility, security features, and extensive community support. Plurance offers a powerful Cryptocurrency Exchange PHP Script that leverages PHP's robust framework to deliver reliable and scalable solutions for crypto trading businesses.
Key Benefits of Using PHP for Crypto Exchange Development
Cost-Effective Development
PHP is an open-source language, which reduces development costs significantly. Businesses can utilize PHP frameworks like Laravel or CodeIgniter without licensing expenses, making it an economical choice for developing a Crypto Exchange Script PHP.
Fast Development Process
PHP offers a wide range of pre-built libraries and frameworks that streamline development tasks. Laravel, a popular PHP framework, enhances development speed with features like Eloquent ORM, Blade templating, and routing. This helps developers build a fully functional PHP-Based Crypto Exchange Script in a shorter timeframe without compromising on security or features.
Robust Security Mechanisms
Security is paramount in crypto exchanges. PHP includes built-in security features such as data encryption, SQL injection prevention, and secure authentication systems. Laravel enhances security with built-in CSRF protection, encryption, and secure database management. By integrating these features, Plurance ensures its Cryptocurrency Exchange PHP Script is resistant to cyber threats and fraud.
Efficient Database Management with MySQL
PHP seamlessly integrates with MySQL, a powerful relational database system. MySQL ensures fast data retrieval, structured storage, and robust data security. Plurance's PHP-Based Crypto Exchange Script leverages MySQL for managing user data, transaction records, and other critical information securely.
High Scalability for Growing Platforms
PHP allows developers to create modular architectures, making it easier to scale your platform as user demand increases. Laravel's flexible architecture and database migration tools enhance scalability, ensuring seamless integration of new features and functionalities as your business expands.
Extensive Community Support
PHP has a large developer community that actively contributes to new features, plugins, and security enhancements. This ensures ongoing support and resources for developers working on Crypto Exchange Script PHP solutions.
Features Integrated in Plurance's PHP-Based Crypto Exchange Script
Multi-Currency Support: Enables trading in various cryptocurrencies to attract a global user base.
User-Friendly Interface: Ensures intuitive navigation for both beginners and experienced traders.
Secure Wallet Integration: Protects user funds with multi-signature wallets and cold storage options.
Powerful Trading Engine: Offers efficient order matching, ensuring fast transaction processing.
Comprehensive Admin Dashboard: Provides detailed insights and controls for managing users, transactions, and security settings.
Why Choose Plurance for PHP Crypto Exchange Development?
Plurance specializes in developing tailored crypto exchange solutions using PHP, Laravel, and MySQL to meet unique business requirements. With our well-crafted Cryptocurrency Exchange PHP Script, we empower businesses to launch secure, scalable, and feature-rich crypto trading platforms.
Our expert developers ensure each solution includes cutting-edge features and adheres to industry standards, giving clients the confidence to operate their exchange securely and efficiently.
Conclusion
Choosing PHP as your tech stack for cryptocurrency exchange development ensures cost efficiency, scalability, and security. Plurance's PHP-Based Crypto Exchange Script is designed to help businesses launch a fully functional exchange platform with comprehensive features that enhance user experience and operational performance. For those seeking a powerful yet flexible solution, PHP, Laravel, and MySQL remain an ideal choice to achieve a successful crypto exchange platform.
#Cryptocurrency Exchange PHP Script#Crypto Exchange Script PHP#Bitcoin Exchange PHP Script#Ready-Made Crypto Exchange PHP Script#Cryptocurrency Trading Script In PHP
1 note
·
View note
Text
Strengthen your financial prowess by investing in a Ready-made Local Bitcoin Clone
Kickstart the development of a powerful crypto exchange by buying a ready-made Local Bitcoin clone from us.
We utilize programming languages such as Java, Python, PHP, and Laravel to prepare your script. The high-quality features include the presence of Escrow, an exclusive OTC trading facility, advertisement based trading, integrated wallets, and an in-built chatbot for smooth communication between different traders.
The process to be followed is in the form of sign-up by the buyer or seller, posting the advertisement on the trading platform with details of the quantity, trade limits, location, preferred currency, and accepted payment methods. Once the trade has been initiated between the two parties, Bitcoin will be traded locally once they have mutually agreed on the terms and conditions. The Bitcoins will be transacted to the Escrow wallet and once the seller confirms the receipt of payments, the escrow wallet will immediately transfer the Bitcoins to the buyer.
Buy the ready-made Local Bitcoin clone by availing services from our proficient developers and fulfill all your expectations successfully.
1 note
·
View note
Text
Not Known Facts About PHP currency Exchange Script

I'd a short while ago obtained a script from Up coming Hyip. The script fitted me pretty nicely and was precisely as explained on their web site. Thank you Up coming hyip for that superb encounter! An prolonged license enables an item to be used in limitless assignments for possibly personal or industrial use. The merchandise can't be made available for resale "as-is". It really is permitted to distribute/sublicense the supply data files as portion of a larger undertaking. Near Then it can vanish soon after a while for it to return soon after some time and wishes once again one click. You should don't react using a duplicate previous concept but produce down your method and how you're thinking that you can reach it as part of your reaction or to me in chat. Many thanks! CSS HTML JavaScript Python Website Scraping $33 (Avg Bid) $33 Avg Bid 23 bids This tutorial will evaluation The fundamental code snippets necessary for use with PHP, Python, Ruby, and Java Script apps. RapidAPI supports 19 common programming languages with code automobile-technology facilities geared toward software developers. Exchange Rix is effective and characteristics rich php script which will help you to run your personal bitcoin or other cryptocurrencies exchange internet site. Basically make order and start it currently. It’s uncomplicated. We will likely be employing PHP like a scripting language and interpreter that is mainly utilized on any World-wide-web server, such as xamp, wamp, and so on. It's being used to any common Web-sites, and it's got a contemporary know-how that can certainly be utilized by the following era. Our currency converter is Search engine optimization optimized and ready to be uploaded in minutes, No coding information desired, Well documented and easy to create, Install, and operate. VERIFIED I really need to scrap uncomplicated look for results of mom Ondo services. I do not should extract details - I need just html just after JavaScript execution.- I'll extract alone Classification: MLM Description Added info Testimonials (3) Cryptocurrency is turn into a long run for that miners, it can be impossible to mine the crypto currency Using the list of time frame, only the facility comprehensive server miners can mine considerably quicker than other, so Here's the answer with the cryptocurrency miners, purchase the highly effective server for an rent to mine the crypto currency. The primary API command may be the “GET exchange” connect with which is utilized to specify the currencies for that exchange prices. Developers will require to include both their Rapi API crucial and the two variables for the currency pair in Every single API simply call. Detect that we're utilizing the set Param approach which specifies the parameter and price, which is a comma divided listing of currency codes. The currency codes can be found by following the website link for supported currencies presented above. As it is possible to see, we can easily do a great deal with our free of charge access to the currency Layer products and services because we might get the two Stay and historical facts. If you need a lot more than 1,000 API accesses in a month then you need to choose the high quality approach that most closely fits your preferences. The web site admin can PHP currency Exchange Script regulate the many exercise like increase and take away cash, payment gateways, edit buyers interface plus much more. Also, There may be all the following stats are available: Brightery Currency converter, The very best currency exchange script in 2020 you could find. Get simpler now currency rate, dollar exc. https://www.exchangerix.com/
0 notes
Text
Binance Clone Script
Binance Clone Script is made up of top-notch trading functionalities with high-tech security protocols which hold pure source code. Our battle-tested binance clone software package is ultimately built for entrepreneurs who strive to start their cryptocurrency exchange like binance. Bitdeal's binance clone Script is open to customization, business person can make their own choices by picking the desired features based upon their business requirements.
Crypto Code binance clone script stuffed with integrated Liquidity API & newfangled trading features would build a gentle & Prominent Crypto Exchange by upholding the mantra of hitting success in the competitive exchange market.
Build Language : PHP, JAVA, MeanStack, Laravel Version : Updated Version 2.0, 2021 What's New? : Binance DEX, Binance Smart Chain, Liquidity Swap, BEP-20 Token integration, NFT Marketplace Integration, Earn and Pool
What Is Binance Clone
Binance clone is a complete cryptocurrency exchange clone that can function mostly like the popular exchange binance. To build a binance clone exchange, we develop binance clone software that would have all the trading features and functionalities like DEX Trading, Basic, Advanced Trading, and multilingual features. The developed binance exchange clone would have a strong potential to gain a sure shot 10X ROI with increased customer base from more than 100+ countries. At bitdeal we provide the promising premium binance clone software that has no need for further improvements, and can build a ready to launch binance like exchange within a few hours of customization work and server hosting.
At bitdeal we provide white label binance clone Software that is powered with P2P, Smart contract, IEO, basic, pro, advanced trading features, Referral Options and can support to trade with external browser wallets like metamask, trust wallet, tron wallet and more.
Request for Demo
· Basic, Classic and OTC Trading
· Multi-Lingual
· Instant Buy/Sell
· Advanced UI/UX
· 150+ crypto support
· Two Factor Authentication
· Trust Wallet Integration
· 100% Source Code
· Futures 125X Trading
0 notes
Text
An extensive view of features of cryptocurrency exchange and the business prospects of various digital currencies
Cryptocurrencies are a widely used online platform for digital currency exchanges. These are digital currencies which owe their credibility to their technology rather than a central bank. Many of the transactions in this statistic involve cryptocurrency exchanges that exchange these coins for other currencies, including traditional currencies such as U.S. dollars or euros. It facilitates the people to exchange their bitcoins quickly and secure without any central authority. It allows users to maintain transactions digitally. The main reason for its extensive use is its international credibility and non-involvement of government regulations.
The digital exchange script supports many currencies like Bitcoin, Ethereum, Litecoin, etc. Of all the Cryptocurrencies, Bitcoin is popular as it is one of the earliest emerging markets. Amongst the digital currencies exchange, the Local Bitcoin clone platform is preferred amongst the users. Using the platform, users can publish ads for either selling or buying cryptocurrencies. Then, the users who are willing to buy can mention the price they are willing to pay and come to a negotiation with the seller. It is how transactions take place in the Local bitcoin script.
As this Local Bitcoin is popular amongst users, many entrepreneurs are interested in developing Local Bitcoin clones and establish their mark in the Cryptocurrency exchange platform.
Let us look at the business trends of Cryptocurrency exchange platform:
As of March 2020, there are approximately 5021 crypto assets. The cryptomarket has a total market capitalization of over $155 Billion.
Out of which, Bitcoin takes up 63.8% of the market value, and the top 10 cryptocurrencies make up around 88% of the market value.
According to reports published by Statista, the cryptocurrency Etherum saw an average of 753.51 transactions daily. And other leading cryptocurrency exchange platform saw less than 10 % of it.
Seeing the trends, it is clear that the Bitcoin and Ethereum make up most of the cryptocurrency exchanges.
These are the features to be considered in building Bitcoin clone script:
Escrow Wallet — Escrow script protects sellers from fraudulent buyers by requiring the Bitcoin to be deposited upfront.
Two Factor Authentications — This feature guarantees that the transactions taking place in the platform are protected. It involves validation from both parties in the transaction.
Wallet — It facilitates the users to store the Bitcoins so that they can use it for transactions whenever they want.
Multi-currency support — This wallet supports almost all the popular cryptocurrencies like Bitcoin, Ethereum, etc. It allows users to store more than one at the same time in the same wallet.
The development of the Bitcoin clone app involves an in-depth understanding of cryptocurrencies and its exchanges. The in-app calculator must provide users with accurate results; otherwise, the users can incur can loss. Instead, business owners can opt for ready-made local Bitcoin clone PHP script offered by leading app development companies.
0 notes
Text
CRYPTOCURRENCY PEOPLE PER HOUR READY MADE CLONE
Cryptocurrency People Per Hour Freelancer clone is a prominent Freelance Marketplace script, designed to enable you build your own freelance marketplace website similar to Freelancer, Upwork, Elance and many more.Freelance industry have a become a flourishing platform of business interactions where job providers and job seekers connect with each other at very large scale for either doing a job or providing a job.Cryptocurrency Fiverr clone is our staggering Freelancer Clone script on which you can rely on if you are planning to launch your own professional freelancing website and become the part of booming outsourcing industry.
Technology Used • PHP Language • Core PHP Framework • MySQL Database • Server: Any Linux Server. Modules Included • Freelancer Portal • Panels included for the above: User, Guest User, Buyer Panel, Seller Panel, Super Admin and Advanced features. Freelancer Features UNIQUE FEATURES • Skills in Demand • List of Service Category • List of Projects and statistics • Project Details • Latest Bids Listing • Rich featured Payment Gateway • System Alert message • Search Filters • Content or Unique Design • Traffic Figures • Number of Customers • Number of projects posted SUPER ADMIN PANEL
• Dashboard View details of Users, Pending approvals, Active Order details and Support Tickets details. • Proposal & Services View details of orders. Admin can preview, Pause or Trash Proposal. View Active or Deactivate Status. You can filter details by Category, Time and Seller level. • Sales View Date Wise Filter and details of Sales done. View Order and Proposal details and Amount of Profits earned. • Expenses Enter Service details Title and Description with amount and Add Expenses. • Pending Pay-outs View Details of Pending Pay-outs with Ref no. You can View User Details, Approve or Decline Payouts. View details of Declined and Completed Pay-outs. • View Reports View Report Details of Ordered, Messages and Proposal details. • Buyer Requests View details of Active, Pending, Declined details. Admin can Approve or Decline Buyer Requests. • Category Enter Category Title, Description details with Category Image. You can make them as Featured Category from Admin. View list of Category. • Sub Category Enter Sub Category Title, Description details with Sub Category Image. You can make them as Featured Sub Category from Admin. View list of Sub Category. • Delivery Time Enter Proposal and Delivery Time. This will show on Categories, Sub Categories and on related proposal pages. • Currency Add Currency and Currency code from Admin. You can add multiple currency from Admin. • Multi-Language The entire user side of the script can be customized to the language of your choice. • Skills Add Multiple Skills. You can view list of skill details. You can edit or delete seller. • Coupons Enter Coupon Details, Add Price and Amount details and Code for Coupon. • Customer Management Create customer profiles in multiple groups like registered and guest customers, view and manage wish list, coupons, etc. • Roles View All Staff Roles, Create and Manage Roles. Edit or Delete them. Customize them. • RTL Compatibility Compatible writing with Right to Left language like Arabic or Hebrew and offers bidirectional support on all browsers. • Slider Settings Upload your Layer/Top Slider Banners, Logos, and Default Images etc. from Admin • Promotional Banners Place attractive promotional banners for user’s reach, by helping them buy more. • SEO Friendly Add Meta, ALT Tags, Meta Description and Title details to update SEO from Admin. Manage your Keywords, Social Network Reach, and Alexa Traffic Rank/Graphs etc. • Advertising Add & Update Banners to Advertisement. These ads will then be showcased to the Users browsing through your Website • SMS/Newsletter Enable SMS and Newsletter Subscription feature and connect to subscribers through email and sms marketing.
USER PANEL (FREELANCER) • Hybrid Apps Users get fully branded IOS & Android Apps for your Freelancer Clone Script Website. • OTP Login Supports Social Media Login (FB and Twitter). Sign up with a mobile number to allow Login using OTP (One Time Password) for a password less login access to your Website. • Dashboard View details of Order Completed, Delivered Orders, Cancelled ones, Details and count of purchase details. • Client Login Client is for people who are seeking for freelancers to get their work done. They have accessibility to Post a Job and Contact Freelancers. • Freelancer Login People who wish to be a freelancer can login here with Unique ID with Email Address. Search Profiles by Ratings, Location, their Language, their Level. You can send them a message & get to know more details. • Payment Gateway Payment Gateways such as PayPal, stripe, credit card, debit card, etc are integrated. Same way multiple Payment gateways can be added. You can activate and deactivate it from Admin • Real Time Messaging You can send and receive messages to other Workers or Freelancers. • Notifications View details and updates on work in progress on the website. • Custom Order Create an Offer for the Freelancer. Select a Proposal or service you Offer with Delivery Time and Date and the Amount. • Proposal Search for Proposal of your Service or Quantity. Apply Coupon Code and Purchase it. • Category Search services based on Category, Delivery Time etc. View list of Service details. Compare Packages. Add to Cart or Favourite list. • Become a Seller Make sure you have a creative Profile. Customer will actually read through your content. • Submit Proposal After creating your Proposal ore service, submit it so the admin can approve it. Once the Admin approves, the proposal will be visible. • Get Orders Once the Proposal or Service is approved by Admin. Start receiving order from Customers from all over the world. • Deliver Once you receive orders, try your best to satisfy customers. Communicate with them and make sure you deliver in time. • Get Paid on Time Once your work is done on time. Get payment transferred to you. Our system has PayPal, Wallet and Crypto Currencies. • Manage Request View details of requests i.e Active, Paused, Pending, approved requests. Choose actions, View or delete requests. • Post Request Include all the necessary details for a request. Choose Category and Sub Category details. Set a Delivery Time and Budget for this Service. • Referral System For each unique member you refer that signs up, you will get $1 added to your shopping balance, once it is approved. • Proposal Referrals You can track all the proposals you have successfully promoted and the commission you have awarded for promoting them. • Profile Update you Language and Skills. View Proposals and Services you have offered. You can Create a new Proposal here. View most recent reviews. • View bids Receive free bids from our talented freelancers within seconds. • Live chat You can live chat with your freelancers to get constant updates on the progress of your work. • 24/7 support We’re always here to help. Our support consists of real people who are available 24/7. BUYERS PANEL • Find a Service Find a Service Compare Prices, time, portfolios, ratings and community recommendations in order to find the seller that suits you the best. You can send them and enquiry or post a request. • Order View details of Orders. Active, Delivered and Completed List. View details of Pending and On Progress details. • Purchases View details of Purchases done with Date and Amount details. • Details Enter complete details so the seller can provide you with quality service. Once the service is completed you will be rewarded with payment. • Transactions The Seller will deliver service within a specified time frame. Exchange files from within and get feedback and view list of transactions. • Modification If you are not satisfied with the work delivered, you can go ahead and request for modifications. • Rate your Seller Once you’re satisfied with the work you can provide feedback about your seller. This will help other buyers looking through proposals or services. SELLERS PANEL • Proposal/Service Post a proposal or service suitable with your skills. Enter specific details, so your clients know exactly what they have to pay for. • Create a Coupon Enter Coupon details, price, Code and Limit. Select the Proposal for which you want the coupon to available and submit it. • Revenue Earned View details of Amounts Withdrawals, Proposals Services. Withdraw to PayPal or Stripe Account, Mobile Money or Crypto Wallet. • Buyer Requests View details of Buyer Requests and their details. View Date and Duration of project Details. View Budget details and Send Offer. You can Accept or Remove request. • Communicate Respond to customer queries, as well as request for offers (new requirement) with time. Good communication leads to successful endeavours. • Reputation Make sure you satisfy the customers the same. Give them the best service regardless the transaction value. • Precise Date Try to be on prefect on Date of Delivery. Buyers can cancel the order once the order passes the delivery date. That will lead to no payment for the work done. ADVANCED FEATURES • Social Media Log In This allows clients to enter your Freelancer website through social media logins. It gives your consumers the seamless experience. • Social Share You can share your Jobs or details through Social Media to your other colleagues. • Live Chat With live chat integration reply to queries, make easy live conversation & ensure support. • ERP Feature ERP package enable a corporation to take care of master lists of all customers and vendors, the product it sells, the fabric company procures, chart of accounts list, worker knowledge & knowledge that company owns. • Record New Entry Suppose a brand new marketer should be recorded within the master knowledge. Correct marketer ID, his actual verified location, payment terms and mechanism and credit limits are recorded. Erp System take care of data entry in a reliable form. • ERP Report Tools for querying info and generating unexpected reports area unit accessible within the ERP system. These tools conjointly embrace customizable dashboards, making completely different graphs and different visual representations. • CRM A CRM element of ERP system principally keeps track of all of your client and sales information. This module includes options like insights of sales patterns and client behaviours, client preferences and many more.
CONTACT
Email : [email protected] [email protected] Skype ID : doditsolutions Mobile : +91 7339131505. Landline : 0431-4000616 VIEW: https://cryptocurrencyintegrations.com
0 notes
Link
SitePoint http://j.mp/2roJNqL
This post was originally published on Medium and reposted here with the author’s permission. Why not head on over there and give them some ❤️?
This tutorial will walk you through the full process of building a bitcoin bot with PHP – from setup, on to your first execution of an automated trade, and beyond.
Cryptocurrencies
I should not need to tell you but, a couple of months ago you could buy the cryptocurrency Ether for $11, it rapidly went up to $43 (I bought in between those prices) and has now gone to over $335 as of June 2017. Those kinds of gains are nearly unbelievable to a traditional investor and yet these are across the board in this space. Excited yet? So here is a scenario:
You made a ton of money on cryptocurrencies and have some concerns about shuffling it through your bank because of potential capital gains tax issues. There are places that have a solution for you if you want to be able to use this money for other investments. These places won’t make you photograph your license and send it in, just use an email and they provide you with a BTC deposit wallet, demo accounts, APIs, then when you are ready, you send money in and it’s ‘go time’, you can trade everything from treasury bonds to Forex using Cryptocurrencies as your base monetary instrument.
But, you say, I am a coder who likes to automate things, surely we can fire up some BTCbot and we can have it just do the work for us, it will make us millions in our sleep, right?
Probably not.
My solution
I don’t want to write a bot and publish it with a single strategy and just say “here, use this”, I don’t think that is helpful to anyone, I would rather give you the tools and show you how to write strategies yourself, show you how to set up data collection for the strategies and how to implement them in a trading system and see the results.
Also, I don’t want to create this in a new or arcane language, I want this written in PHP which the biggest number of people are familiar with and in a framework (Laravel – here’s a great premium course for sale, and a bunch of free articles if you’re not familiar with it) that is simple to use but powerful enough to let you can create what you need. If you think PHP is just for web pages, read on, this should surprise you.
I like to build systems. I have been working on this post for a while and it represents a good deal of non-derivative custom work. If you have read some of my other tutorials you know that I like to write tutorials that “I wish that I had found instead of having to to write”, so you are in for a thorough read, with a lot of copy-paste style recipes.
Let’s get started.
Steps we are going to take:
Get boilerplate/framework installed.
Walk through the core parts of the system, see what is where.
Install and configure the software we need.
Account creation at the brokerages we will be using, setting up the API keys for the scripts.
Run tests and examples.
Set up websocket streams to get data.
Finding strategies for our automated agents.
Deep dive into Indicators and Candles available to us.
Coding up our first agent.
Testing the agent.
A few closing words about the risks you are taking.
Get boilerplate/framework installed (Bowhead)
You can find the repository for the Bowhead boilerplate at it’s Github repository. It’s a full application already, but we’ll be using its functionality to get the stuff in this post done.
It is recommended you use the extremely Laravel-friendly Homestead Improved Vagrant box for a good, isolated development environment you can get started with in under 5 minutes. If you’re unfamiliar with Vagrant, here’s an excellent re-introduction, and if you’d like to dig deeper, this premium book will teach you amazing things.
git clone http://j.mp/2rp7sam cd bowhead composer install cp .env-example .env sudo pecl install trader echo "extension=trader.so" | sudo tee /etc/php/7.1/mods-available/trader.ini sudo phpenmod trader
Now let’s explain the the current folder structure of the app.
app/Console/Commands/
This is where all our console commands are located.
BitfinexWebsocketCommand.php – Stream market data from Bitfinex
CoinbaseWebsocketCommand.php – Stream market data from GDAX
ExampleForexStrategyCommand.php – Forex example strategy
ExampleStrategyCommand.php – Our example of a strategy
ExampleUsageCommand.php – Basic usage examples
GetHistoricalCommand.php – Pull in historic data from broker
OandaStreamCommand.php – Stream market data from Oanda
app/Util/
Is where all the utility classes that are available are found.
Bitfinex.php – Bitfinex API wrapper
BrokersUtil.php – Utilities for various brokers
Candles.php – All 60 TALib candle methods wrapped
Coinbase.php – GDAX API wrapper
Console.php – Console color, tables and progress
Indicators.php – 21 TALib indicators and moving averages.
Oanda.php – Oanda API wrapper
OneBroker.php – 1Broker API wrapper
Other.php – possible indicators, not implemented yet
testStrategy.php – Here is your test strategy
Whaleclub.php – Whaleclub API wrapper
app/Scripts
Extras and some testing data, these scripts are SKLearn price forecasting scripts taken from a study on beer consumption I thought was really useful, these might be used for market price predictions.
close_prediction.py – SKLearn script to predict a closing price
ohlc-btc.csv – Sample CSV data, if needed
open_prediction.py – SKLearn script to predict an opening price – a python script in the root dir called ‘streaming.py’ which is part of the Oanda streaming command.
If you execute php artisan, you should see something like the following, the part you are interested in is below.
Redis and MySQL
Redis really does not need any tweaking out of the box, it’s installed and ready if you’re using Homestead Improved.
MySQL will need a database and a few tables. Change the credentials in the .env file (create it from .env.example if it doesn’t exist).
DB_CONNECTION=mysql DB_HOST=localhost DB_PORT=3306 DB_DATABASE=homestead DB_USERNAME=homestead DB_PASSWORD=secret
Let’s add the DB dump into MySQL:
mysql -u homestead -psecret < app\Script\DBdump.sql
Open up the database in a tool like Sequel Pro and you will the sample data in the bowhead_ohlc (open, high, low, close) table.
API accounts we need in order to set up automated trading
Full disclosure: Where possible, I have set up bonuses for you on these links, all sites below offer free accounts which do not require ‘verification’ and do not require a deposit. The links are referral links which also bring me some perks if you sign up.
1) Whaleclub is the main site we want to trade on for this tutorial. They key their market data off of the Bitfinex websocket and match with Oanda streaming data for Forex. This site allows you to trade many instruments and commodities with BTC at up to 20x leverage, Forex up to 222x as well as providing BTC-based binary options. They have a simple, easy to understand interface and an excellent API. The API key is found by clicking on your name in the upper-right, and clicking on API. (use DEMO API key to start)
2) 1Broker the secondary site we want to trade on, they are similar to other BTC-based market makers and have a ‘trader follow’ system as well that is fairly interesting, particularly to get people following ‘you’. The API key is found on the right, just under the email icon, there is a small box with what looks like sliders on it, then click on Access & API Management.
3) Oanda is where we get our streaming Forex data, you need an account. API access is found here.
4) Coinbase/GDAX is what used to be called ‘Coinbase Exchange’ and is now called GDAX. I have been automated-trading there since they first opened. The API key is found at the far upper-right, then click on API and create your keys.
5) Bitfinex – you need an account here with an API key so we can get Cryptocurrency quotes. API keys are found under ‘Account’ then click on API.
6) Poloniex is like Bitfinex but supports many alt-coins. API keys are found under Settings – API Keys.
7) TradingView is not mandatory, but you will want an account there because all the indicators bowhead uses can be viewed on charts to help you build your strategies.
The reasoning behind this combination is that the Whaleclub and 1Broker APIs are rate limited, WC only allows 60 requests per minute, if we want to make sure we have streaming real-time data to work with we need to stream from a BTC brokerage. Same with Forex.
Definitely look around on these sites and see what they have to offer, I’ve been around the block with a lot of brokers and market maker sites and for BTC, these are all good as of June 2017. For Forex, Oanda is great, but for the purposes here of trading using BTC we just need their streaming Forex data.
Once you get the API keys for these sites, you will want to put them in your .env file.
NOTE: Start off by using DEMO/TEST API keys, DO NOT use real money API keys with untested trading scripts.
Let’s test that we are set up right.
Bowhead has a testing script to verify that everything is set up correctly and that you have the right API keys, PHP version and the Trader extension is correctly installed.
php artisan bowhead:example_usage
This script will stop on any issues that you may have and provide commands to run to fix the issues or links to get API keys you might still need.
Let’s get data flowing in
We have two things we need to do for data here so we can create an automated trading system that can trade both Crypto and Forex pairs. We will be using this data to trade on BTC market maker sites in real time.
Get streaming Forex data coming into our database from Oanda.
Get streaming Cryptocurrency data coming into our database from Bitfinex
Note: You should have the screen command installed on the server the app is running on. Screen is a terminal tool for detaching windows and keeping them running in the background. You can detach a screen, log off and come back and reattach to it from another location at another time.
screen python streaming.py screen php artisan bowhead:oanda_stream
This is what the Forex streamer looks like if you turn the echo back on.
Now if the Forex markets are open (U.S.A Eastern time, Sunday 5:00pm to Friday 4pm) you will start to see data flowing into the bowhead_ohlc table for the currency pairs that are traded on Whaleclub. The list is in streaming.py and can be modified there. The following pairs are all streaming into your database in real time now. USD_JPY, EUR_USD, AUD_USD, EUR_GBP, USD_CAD, USD_CHF, USD_MXN, USD_TRY, USD_CNH, NZD_USD
Now we have regular Forex data, lets add in the BTC/USD currency pair.
screen php artisan bowhead:websocket_bitfinex
Crypto markets are open 24/7 and you should begin to see current data flowing in immediately.
To see these running processes and reattach to them use screen -list and screen -r
~$ screen -list There are screens on: 4604.ttys005.Joels-MacBook-Pro-2 (Detached) 4636.ttys005.Joels-MacBook-Pro-2 (Detached) 4652.ttys005.Joels-MacBook-Pro-2 (Detached) 3 Sockets in /var/folders/bq/79z2kd916hbd39n5bckb5_s00000gn/T/.screen.
The numbers on the left are the screen IDs so in this instance you can reattach to the latest (Bitfinex) screen by using the following command.
screen -r 4604
We are only using screen for the purposes of this tutorial on a local machine, for a server environment we put these on supervisord to make sure they are always running on our server and if they die, then they are restarted.
This is the supervisord conf I use for this, you may need to change the directory for your user. From /etc/supervisor/conf.d/crypt.conf:
[program:oanda] command=/usr/bin/python streaming.py user=ubuntu directory=/home/ubuntu/bowhead startretries=3 stopwaitsecs=10 autostart=true [program:o_stream] command=/usr/bin/php artisan bowhead:oanda_stream user=ubuntu directory=/home/ubuntu/bowhead startretries=3 stopwaitsecs=10 autostart=true [program:wsbitfinex] command=/usr/bin/php artisan bowhead:websocket_bitfinex directory=/home/ubuntu/bowhead startretries=3 stopwaitsecs=10 autostart=true
You can see what these look like in Supervisor with
~$ sudo supervisorctl o_stream RUNNING pid 31644, uptime 1 day, 22:15:24 oanda RUNNING pid 31645, uptime 1 day, 22:15:24 wsbitfinex RUNNING pid 31646, uptime 1 day, 22:15:24 supervisor> help default commands (type help <topic>): ===================================== add exit open reload restart start tail avail fg pid remove shutdown status update clear maintail quit reread signal stop version supervisor>
note: Currently, bowhead only supports BTC/USD from Bitfinex, I will be adding ETH and LTC in future revisions. You can create an ETH version of this if you want by copying and modifying the BitfinexWebsockCommand.php file to use ETHUSD and renaming the class. You will need to add any new commands class to the $commands array in app/Console/Kernel.php
Finding strategies
So, we have our boilerplate/framework set up. We have accounts and we have data flowing into our database. We also have our indicator/signals and candles working. Let’s jump in and see how to create a very simple strategy.
Now that we see how we can use this, we need strategies and we need to know how to find more strategies. Quantopian is a great resource for strategies.
For instance, two that I was recently looking at: “Stocks On The Move” and “Trading on multiple TA-Lib signals” are both interesting, however saying we use TALib methods in bowhead, lets go with the latter, additionally this will only be for BTC as Oanda does not return Volume with forex pairs.
You will notice that this strategy uses three signals to determine if a stock (or in our case a pair) is overbought (sell) or underbought (buy).
Money flow index (mfi)
Commodity channel index (cci)
Chande momentum oscillator (cmo)
This is a simple technicals strategy where if all three of these indicators agree then we go the direction they say to go. Here is the core part of the strategy in code.
$indicators = new \Bowhead\Util\Indicators(); $recentData = $util->getRecentData('BTC/USD'); $cci = $indicators->cci($instrument, $recentData); $cmo = $indicators->cmo($instrument, $recentData); $mfi = $indicators->mfi($instrument, $recentData); /** instrument is overbought, we will short */ if ($cci == -1 && $cmo == -1 && $mfi == -1) { $overbought = 1; } /** It is underbought, we will go LONG */ if ($cci == 1 && $cmo == 1 && $mfi == 1) { $underbought = 1; }
Don’t worry about putting this anywhere, this strategy is included in bowhead as a console command
php artisan bowhead:example_strategy
NOTE: DO NOT RUN THIS ON YOUR LIVE ACCOUNT UNTIL YOU HAVE TESTED IT, USE YOUR DEMO API KEY TO START.
The output will look like this!
If you would like to see what these look like on a chart, then head over to TradingView and add the indicators. TradingView idea stream is another great place to find strategies and see what other people are doing and you can view the strategies in the source code section of of TradingView.
Bowhead Indicators and Candles
I provide two classes in bowhead for checking signals on data: Candles and Indicators. Each class has an all method which will run all the methods in its parent class over the data you provide.
To keep things as simple as possible without sacrifice of functionality all methods in both of these libraries provide a return as -1, 0 or 1. Where ‘1’ will always be the buy or ‘bullish’ side and ‘-1’ will always be the sell or ‘bearish’ side, where applicable. There are a couple which return -100 and 100 as returns, please read the comments above each method and in each class for more info about abnormal return values as there are links to explain what they do and why we use them as well as what they represent and how you can use them in your scripts.
Candles.php — the allCandles() method will check for the presence of 60 specific candles across your dataset. It returns a complex array which will even provide the data point location of the candle and data points around the candle. For purposes of automated scripting, the current array in the return is the candles that are currently active.
Indicators.php —Provides multiple indicators over a dataset, these are all the common technical indicators such as Bollinger bands, RSI and many types of moving averages. These include overlap studies, momentum indicators, volume indicators and volatility indicators. There are no cycle indicators yet. The core methods are adx, aroonosc, cmo, sar, cci, mfi, obv, stoch, rsi, macd, bollingerBands, atr with MA methods of sma, ema, wma, dema, tema, trima, kama, mama, and t3 which can be combined using macdext() fairly dynamically.
SMA methods are typically called by themselves as they cannot respond with a buy or sell signal
These two sets of indicators and candles can be combined in many different ways that have been noted in the comments at the top of each class. Combining MA cross overs with Bearish/Bullish candle patterns (which would not be apparent to a moving average), you can pinpoint your entries and exits much better.
Packaging these trader methods in this way provides a lot of flexibility to you to be able to use them very easily and as you notice above, translating a strategy is very simple when you have only buy(1)/hold(0)/sell(-1) signals.
Code it up
So, lets do another quick script that will showcase what we do, this time lets do a Forex bot that trades all the pairs on WC, and it will use the following technical strategy.
Average directional movement index (ADX) is a trend indicator that typically returns a number from 0–100. Under 20 it indicates a weak trend, over 50 it indicates a strong trend. Bowhead returns a -1 for under 20 and a 1 for over 50;
Two simple moving averages, on period 6 and period 40. Period 6 SMA will follow the price very closely and just smooth out any spikes. An SMA 40 is a much more smoothed average which will cross the period 6 at various points when movements start taking place. The ADX is a check that we are indeed in a trend and not in a ranging (sideways) market.
When ADX registers a trend (over 50), and our SMA(40) down-crosses the SMA(6) we can buy as the trend is now moving up.
When ADX registers a trend and our SMA (40) up-crosses the SMA(6) we can sell as the trend is now moving down.
Here is what this looks like on TradingView, orange in the bottom is the ADX, the green line is the SMA(6) and the blue line is the SMA(40). You can see where you would most likely want to do your trades and lo and behold, we have some line crossings at or near those exact places.
Seems kind of complicated? Not when you are working in bowhead. The main thing is we need to get the data off the stack for checking previous and current values, that way you can tell when a moving average has crossed another moving average.
$recentData = $util->getRecentData($instrument); $adx = $indicators->adx($instrument, $recentData); $_sma6 = trader_sma($recentData['close'], 6); $sma6 = array_pop($_sma6); $prior_sma6 = array_pop($_sma6); $_sma40 = trader_sma($recentData['close'], 40); $sma40 = array_pop($_sma40); $prior_sma40 = array_pop($_sma40); /** have the lines crossed? */ $down_cross = (($prior_sma6 <= $sma40 && $sma6 > $sma40) ? 1 : 0); $up_cross = (($prior_sma40 <= $sma6 && $sma40 > $sma6) ? 1 : 0); Now you can just if ($adx == 1 && $down_cross) { $buy = 1; } if ($adx == 1 && $up_cross) { $sell = 1; }
Testing it
Okay, so I provided this as the following file, ADX will spit out errors (-9) without at least 21 data points, so keep that in mind.
app/Console/Commands/ExampleForexStrategyCommand.php ~$ php artisan bowhead:example_forex_strategy
This is what it looks like.
Closing words and a note about risk
Now you can find strategies and quickly build your own scripts to trade cryptocurrencies via technical indicators and candle patterns. The sky is the limit.
Because this is within the Laravel framework, you can create web pages to manage your automated trading, easily create strategies using web-based tools. You can use the queues and jobs system to have strategy ‘workers’ (I will be adding this as I update it), broadcasts, and so on.
Now to talk about risk.
I would like to point out that there is SUBSTANTIAL risk involved in cryptocurrency trading and you need to make sure you are in demo mode when testing and working out your strategies. This is of paramount importance as I would hate to hear of someone who lost any amount of money because of this.
I am personally fairly risk tolerant and sometimes it pays off. I use Bowhead to do WC ‘Turbo’ trading (which is Forex Binary options), these are a ‘guess’ if the price will be up or be down in 1 minute and 5 minute contracts. If you guess right then win up to 75% return, if you guess wrong then you lose your entire bet. There are some Forex strategies specifically for Turbo trading that I have had some good luck with. However, be aware that most require you are in a trending market. So an indicator like ADX on a longer period is not a bad choice.
Here is an example of one strategy that was working.
Final note
Part 2 will go over making your bot talk to all the exchanges and even attempt to discern price discrepancies, building real-time GDAX straddle-bot using about five Forex strategies and even setting up Bowhead as an API.
If you notice any errors here or have any issues with the code, please let me know, make a comment here or open an issue in the Github repository and I will address it.
— Keep in mind that this project is under active development.
http://j.mp/2roF3kZ via SitePoint URL : http://j.mp/2c7PqoM
0 notes