Set up your own crypto exchange in 1 hour by n.exchange



hey guys this is Carolus Romanovs cos i am a software engineer at next change dot IO for those who are not familiar with us we are a fairly new cryptocurrency exchange we hold zero balance and we have really strong values of transparency and openness as a result we you might already know we decided to make our front end open source and our back-end open for anybody to use so you can find our front end here you know on github just paste this URL I will also put it in my description as you can see it's written in react but if you don't know react don't worry for the basic changes for your own exchange you don't really have to know react you can just change it's like changing at HTML but if you want to do any more complicated modifications you might want to take a course in react or learn how Redux and react work in general so yeah we also have a open back in the API which you can find if you go to our website and click on API Docs it will get you to our documentation it's an apiary you can see all the end points here so let's see this one it allows it to get all the currencies which we exchange or they get latest ticker shows you the latest price of a given pair so let's say if you trade Bitcoin litecoin it will show you what each Bitcoin is worth and white coins probably the most interesting end point for you is gonna be this referrals and point which allows you to set your own referral Spee and get your own referral code i will show you how it works later but now that we have our front-end open sourced and ready and we have a back-end where you can set your own referrals you can set up your own exchange in less than one hour I hope and I will show you how to do it in this tutorial so let's get started so we will start setting up the exchange by cloning our front-end repository you can find the link for our github repository in the description and I also assume that you know what gate and what cloning means and if you do let's copy the URL and clone the project just like that so while it downloads let me quickly show you what what the basic structure of our project so we have this config directory it's it just contains the basic configuration files for web pack for web pack for testing just basic configuration for public it contains all the publicly accessible assets like favicons index.html file in the scripts we just have three files test build and I forgot and start so we suggest NPM scripts which you type in your terminal like NPM start and it will start my project so you are not going to have to change that at all and then we have this source directory which is where you're gonna spend the most of your time most likely we have these actions and reducers folders which the logic for the redux stuff then we have this components directory for the react components we have a CSS which has a lot of files split based on the component and it's written in SAS CSS but you can always change that and then we have a fonts images and we have this JavaScript folder which contains the libraries on which some of the libraries on which the project depends which are not installed as NPM modules so that's kind of it let's see if the project has been louder downloaded yes it has so the next step is to download – now the next step is to go into our repository and install all the dependencies on which the project depends on it doesn't have that many it just basically babble for translation Axios for HTTP 8 transmission like making HTTP requests in a jQuery lo – moment for dealing with dates just the basic stuff and the redux of course so it will take some time to install so let me get back to you once that's done okay so all the npm modules have been installed and here we can see this node modules directory so now what we can do is actually start our project and see how it works so it's still loading why is it loading okay here we are so it's basically what you should see is almost the same as on what you can see if you go to next change dot IO because it's basically we it's it's the same so you probably want to delete all these and change about us you might want to change your background picture change the description the logo you might want to change your FAQ so let me show you how to do that so in order to change the content like the About section or images and stuff like that we need to open the code for our repository so let's navigate there okay here we go and as I mentioned previously all the react components are located at the source and then at the components folder and as you can see there are a lot of them and I try to name them as descriptive as possible so let's say about for the set about this section the component is called about and you can see right here the content for we don't have any sophisticated CMS at the moment content management system we just hard code our content like that and this is what you can do as well so let's say instead of an exchange you can put fun change or something like that and then you can obviously delete all these team members because we are not going to be a part of your team but you can always change the name like the title the country and add with social links but for now I am just going to delete them and that's it let's see how that looks yeah so the same for the FAQ section let's see here we go there's a lot of questions and answers here we can delete any of them which you don't need and you can add any of them which you think would be useful so this is how it goes for a background picture you can go to hero dodge is which is the component that contains this entire section and the hero image let's see you can inspect you can inspect where the image is set it's set in the hashtag hero and that's gonna be contained in the hero SS CSS file and then you can change the background picture here which is located in the images directory so obviously you're gonna need some CSS some HTML skills but this is nothing extraordinary and nothing that you cannot figure out especially if you have some background in programming so I think this is all I'm going to show you in terms of the front end now let's get started with the back end so in regards the back end the main thing we want to discuss is how to obtain your own referral token and how to use that in your own exchange so the way we have done it for now is that you have to make an order of any size so I'm buying some ether with Bitcoin execute that order and then if you scroll down you can see this referral link you can send this link to your friends and if they use it and make a order later you will get a commission fee but you can also copy this part so basically anything after ref equals and then if you search for file config yes you will see this referral code key and at the moment it's null but you can set it to your own referral code so now any time back and makes a call like if you if the front end makes a call to the back end yeah it will also always add this referral code and then our back end can check if the referral code is set and if it is it can accumulate your Commission to see how it works let's go to referrals yes and here in this part we are checking if config that referral code is set and if it is we use it we set the header to X referral token and then we execute our Ajax request you don't have to understand how it works but to put it short if you set the referral code in your configuration file anytime the front-end makes an HTTP request it will attach this referral talking header now let's discuss shortly how the Commission's work for September since we are newly opened any time anybody new user makes a transaction you're gonna get a commission of $5 but after that you will be able to set your own fees on top of our base fees and the planned base fees at the moment are 0.5% so you can add anything on top of that and then you will get paid and you will get paid to whatever wallet you set as a web draw address in your transaction so let's say if our transaction was this and you set and you got my referral talking from here and you set the destination address as this then any time we want to pay out the Commission we will send it to this address in ether so if you want to get paid in Bitcoin you should buy some Bitcoin from us so let me receive address is Bitcoin address I hope that's clear and if you have any questions let me know in the comments if this tutorial gets more popular we will make a new version perhaps more more like advanced more comprehensive we will go through perhaps more detail in how everything works now the only step left for you to have your own exchange is to set it up to set up a domain so all you need to do is set up this entire repository somewhere on the server what you will have to do is run NPM run build and copy paste the files and that's it it's really really simple so I hope you liked it and I'll see you next time

34 thoughts on “Set up your own crypto exchange in 1 hour by n.exchange”

  1. Nice one! You can also get a ready-made customizable bitcoin exchange website script here—> https://www.cryptoexchangescript.com

  2. if you find any difficulties in creating new and very Own Cryptocurrency exchange platform inbox me on Priyadharshini(@)spiegeltechnologies(dot)com

  3. Can you please let us know the legal requirements or running this exchange to the public? I live in the USA.

  4. Great tut please make a advanced version and explain on security best practices. Also to comply to kyc/aml laws it woukd help if the customer registers which isn't a available feature on this exchange

  5. #brilliant idea i have no experience but i like what i see here and i am going to try my best to set my own exchange up thank you very much for shinning the light on how to set up an exchange would love any assistance email [email protected]

  6. Nice video with useful information. Meanwhile, I 'm thinking that not every people can write the code or modify them right?. For the kind of people who don’t have knowledge in coding can use the cryptocurrency exchange software. I have shared the link below,

    Software details:
    https://www.cryptoexchangescript.com/

Leave a Reply

Your email address will not be published. Required fields are marked *