Bitcoin Forum
November 02, 2024, 07:38:54 PM *
News: Latest Bitcoin Core release: 28.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1] 2 3 4 »  All
  Print  
Author Topic: Building an opensource exchange from scratch  (Read 4872 times)
IamAGentleman (OP)
Full Member
***
Offline Offline

Activity: 134
Merit: 100


View Profile
December 07, 2014, 09:44:03 PM
Last edit: December 14, 2014, 12:12:41 AM by IamAGentleman
 #1

I am building an opensource Crypto currency exchange from scratch and will release the source code on here. Will take me a couple of months it'll be OOP, and using twitter bootstrap. I will release to the public once it's complete, keep an eye out. I've only just started. Register page is pretty much the same layout as cryptsy. Site will be run based on classes and functions MVC.  All userinputs will be trimmed, escaped and secured  to stop any sql injections. WIll also need people eventually to test for XSS and other types of flaws.

For an example, the $_POST will be passed through $system->secureinput(); function.
Dashboard coins will be accessed via a htaccess rewrite: website.com/dashboard/market/coin
Not too sure what coins I will be adding, but BTC, LTC and a few others are a must. Will eventually be adding a language file that can be edited via the admin panel

Features built:

- User register
- User Login
- Navbar
- Sidebar
- Dashboard
- Profile
- Language file added with an option for users to select language...
- Added a timeline to show you all of your purchases.
- Bitcoins can now be deposited and balance updates.



To DO:

- Get callback from OKpay for deposits of GBP and USD
- Allow bitcoin withdrawals
- Add LITC deposit,withdraw
- Create a nice index page
- Clean up a few things and it will be done


Pictures:









hexafraction
Sr. Member
****
Offline Offline

Activity: 392
Merit: 268

Tips welcomed: 1CF4GhXX1RhCaGzWztgE1YZZUcSpoqTbsJ


View Profile
December 07, 2014, 11:44:02 PM
 #2

Looks very nice; will it integrate with all of the bitcoin-clones out there over RPC? What about unique coins (maybe over some sort of PHP-class that could be loaded for each distinct coin)? Maybe even some sort of integration with a bank/ACH API?

I have recently become active again after a long period of inactivity. Cryptographic proof that my account has not been compromised is available.
IamAGentleman (OP)
Full Member
***
Offline Offline

Activity: 134
Merit: 100


View Profile
December 08, 2014, 12:47:53 AM
 #3

r
Looks very nice; will it integrate with all of the bitcoin-clones out there over RPC? What about unique coins (maybe over some sort of PHP-class that could be loaded for each distinct coin)? Maybe even some sort of integration with a bank/ACH API?

Yeah, coins using the same source as Bitcoin and Litecoin should be pretty easy to implement.  Regarding a bank, I probably will in the future, but I'm not too sure of what ones to add, but I will add paypal depositing money and withdrawing.
IamAGentleman (OP)
Full Member
***
Offline Offline

Activity: 134
Merit: 100


View Profile
December 08, 2014, 02:03:28 AM
 #4

Added more functions
IamAGentleman (OP)
Full Member
***
Offline Offline

Activity: 134
Merit: 100


View Profile
December 08, 2014, 03:06:29 AM
 #5

Trade history is now working. Will start cleaning up a few things and start working on the Bitcoin api to generate a wallet to deposit bitcoins.
meowball
Full Member
***
Offline Offline

Activity: 196
Merit: 100


View Profile
December 08, 2014, 04:45:49 AM
 #6

Nice project. Sounds like you'll be very busy for a while!  Wink If it's open-source, when do you plan to show the repo? I could maybe contribute here and there when I have time. I'm pretty busy myself.
IamAGentleman (OP)
Full Member
***
Offline Offline

Activity: 134
Merit: 100


View Profile
December 08, 2014, 05:13:36 AM
 #7

Nice project. Sounds like you'll be very busy for a while!  Wink If it's open-source, when do you plan to show the repo? I could maybe contribute here and there when I have time. I'm pretty busy myself.


Thank you. The base of is coming a long very well. All I need to do is implement the bitcoin and litecoin api to create a wallet, check deposits etc, the website is pretty much trading now, I've just edited the credits via the phpmyadmin. I'd say a month and the repo will be released, hopefully that will include a fully functioning admin panel too. I don't want to release it while it's buggy, so I'll spend a certain amount of time testing every features. Hopefully this becomes something, I just hope to god it doesn't attract people who will just run it hoping for a quick buck.
IamAGentleman (OP)
Full Member
***
Offline Offline

Activity: 134
Merit: 100


View Profile
December 08, 2014, 05:23:21 AM
 #8

Also, if anyone can create a Bitcoin and litecoin ticker, I'm currently using Blockchain, and when I release it that wont be included because it's bad practise, I'll grab maybe 5 tickers, round up the numbers and the average of that will be the price... I guess. I'm not too sure how I'll work that, any tips will be appreciated
Small
Sr. Member
****
Offline Offline

Activity: 266
Merit: 250


Grow SMALL amount of BTC by earning it


View Profile
December 08, 2014, 05:28:50 AM
 #9

I like the clean design!
If you need any help with testing or debugs or anything like marketing or management,
I'm glad to help out.


  ╓▄▄    ,,,╓╓,,                     ,   ▄██▌`        ,╓▄▄▄▄▄▄╓  ╓▄▄               ,▄████@             ╙▀██▀░██W▐██
  ▀█████████▀██████@░                ▀█████▀       ╓▄█████▀▀▀██████▀               `▀███▀                ▓▌ `█▀██▒█
   ▒███████░  ╙██████          ▄╖     ████▌  ╓▄▄ ▄██████▌     ╙███▌       ╓▄,       ╓╖      ,,,   ,╓     ▐▀  █`▀▌░█
    ▐██████`   ▐█████`     ,╓▄███▓α ▄██████████Ñ▄██████▌       ▓██▌     ,▄████▄▄,   ███╖    █████▄████▄▄╖
    ]██████╢╖  ▓████▀   ▓████▀████▌ ▀█████████▌ ███████▌       ▐██▌ ╥█████▀▀█████▌╫██████[▐███████▀█████▌
    ]█████▌▐██████▀▒    ▐████▌ ▀███▌ ]█████ ```]███████▌       └▀▀╩ ▒▐███▌  ]████  ▐█████`╙╜█████   ████▌
    ]██████╜╙▀██████▄c  ]████▓▒▄███▀╩]█████    ████████▌        ,,  `▐███▌   ████  ]█████   ▐████▌  ████▌
    ▐██████   `▀██████▄▒]███████▀`   ]█████    ▐███████▌       ▐██   ▐████   ████L  █████   ▐████▌  ████▌
    ▐██████     ███████ ╫█████▒  ▄▄p ]█████     ███████▌       ███   ▐████   ▓███U  █████U  ▐████▌  ████▌
     ▓██████p    ██████▌░▓██████▄▄██Ü ▐█████▄▄╖  ▐███████      ▐███   ▐█████▄.████µ ▐█████▄, █████▄ ,█████▄
  ╓▄████████, ,███████ `▀████████▀   ▀███████▌   ╙██████▄    ▄████▒  ╙███████▀▀▀▀▓▓██████╜ ╚██████ ▀█████▀
▐█████████████████▀▀      ▐▀████▌      ╙▀████     `▀███████████████    ╙▀███▌     `╙▀▀██▌   └▀██▌    ▀██
└▀▀                        `   ╙                       '`╙╙╙`   ▐███▄▄
                                                                ╙████▀
  Highest BTC Payouts in the World!
Truly a one-stop casino for any player| 301% Deposit Bonus
Slots
          ██▄,   ▄███████████▄
         █████▌ ███████▀███████
           ▀██▌ ███▀  ,╓,  ▀███
       ██   ██▌ ███   ███   ███
          ▄███▌ ████▄     ▄████
      ▄▄▄  ▀██▌ ███▀  ▄▄▄  ▀███
     ▀███   ██▌ ██▌  ▐███▌  ▐██
   ╓       ▄██▌ ███▄       ▄███
  ▄███████████▀ ███████████████
  ▀▀▀▀▀▀▀▀▀▀▀    ▀▀▀▀▀▀▀▀▀▀▀▀
Casino              ▄▄▄█▀▀█.     
           ███▄▄▄    █     
                 █   ▐▌   
                 █    █   
         ╓,      █     █   
        ▐█,▄,    ██▄   ▐▌ 
        █████▌   ███▌   █µ
       ██████▀   ███▀    █
       ████▀     █     ▓Æ▐▌
         ▀     , █      ▀ █
               ▀ █  ,▄▄Æ▀▀▀
               ▀ █▀▀`     
    ▀▀▀▀▀▀▀▀▀▀▀▀▀
Sports        "▀▀▀▄▄,     
       ,     ▐██▄   
      ╒██▀▀▀▀▀████▄ 
      ██       ▀███▌
     ▐█▄        █▀▀█µ
       ▐█      ▄▀  ]▌
         ███████   j▌
        ▐███████   █
   ,,╓▄▄█████████▄▄▀
 ,▀     ╙▀████▀ ,█▀ 
 █,       ╔█  ▄▀▀   
 ▀▀█▄▄▄▄▄██▀▀▀
Poker         ██▄▄,       
        ▐██████▄,   
        ▀████████▌   
       ▌    ▀█████▀ 
      ██▄▄▄   ███   
        ███▌   ██▌   
    ╒██████▄   ▐█████
    µ    ███▌  ▓█████
   ████████▀  ╓█████▌
  ▐█▌▐█▌    ,▄██████
 ╒▄▄,   ,▄▄███▀▀██▀ 
 ██████████▌         
▄███████████         
  '▀▀▀▀▀▀╙
¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯
dezoel
Legendary
*
Offline Offline

Activity: 2198
Merit: 1081


Leading Crypto Sports Betting & Casino Platform


View Profile
December 08, 2014, 12:15:59 PM
 #10

clean design!

I hope more than just exchange system, and one more, please add more language because most users in my country can't use english perfectly.
I think this can be diferent with another exchange sites Cheesy

*just my opinion

..Stake.com..   ▄████████████████████████████████████▄
   ██ ▄▄▄▄▄▄▄▄▄▄            ▄▄▄▄▄▄▄▄▄▄ ██  ▄████▄
   ██ ▀▀▀▀▀▀▀▀▀▀ ██████████ ▀▀▀▀▀▀▀▀▀▀ ██  ██████
   ██ ██████████ ██      ██ ██████████ ██   ▀██▀
   ██ ██      ██ ██████  ██ ██      ██ ██    ██
   ██ ██████  ██ █████  ███ ██████  ██ ████▄ ██
   ██ █████  ███ ████  ████ █████  ███ ████████
   ██ ████  ████ ██████████ ████  ████ ████▀
   ██ ██████████ ▄▄▄▄▄▄▄▄▄▄ ██████████ ██
   ██            ▀▀▀▀▀▀▀▀▀▀            ██ 
   ▀█████████▀ ▄████████████▄ ▀█████████▀
  ▄▄▄▄▄▄▄▄▄▄▄▄███  ██  ██  ███▄▄▄▄▄▄▄▄▄▄▄▄
 ██████████████████████████████████████████
▄▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▄
█  ▄▀▄             █▀▀█▀▄▄
█  █▀█             █  ▐  ▐▌
█       ▄██▄       █  ▌  █
█     ▄██████▄     █  ▌ ▐▌
█    ██████████    █ ▐  █
█   ▐██████████▌   █ ▐ ▐▌
█    ▀▀██████▀▀    █ ▌ █
█     ▄▄▄██▄▄▄     █ ▌▐▌
█                  █▐ █
█                  █▐▐▌
█                  █▐█
▀▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▀█
▄▄█████████▄▄
▄██▀▀▀▀█████▀▀▀▀██▄
▄█▀       ▐█▌       ▀█▄
██         ▐█▌         ██
████▄     ▄█████▄     ▄████
████████▄███████████▄████████
███▀    █████████████    ▀███
██       ███████████       ██
▀█▄       █████████       ▄█▀
▀█▄    ▄██▀▀▀▀▀▀▀██▄  ▄▄▄█▀
▀███████         ███████▀
▀█████▄       ▄█████▀
▀▀▀███▄▄▄███▀▀▀
..PLAY NOW..
IamAGentleman (OP)
Full Member
***
Offline Offline

Activity: 134
Merit: 100


View Profile
December 08, 2014, 01:24:23 PM
 #11

clean design!

I hope more than just exchange system, and one more, please add more language because most users in my country can't use english perfectly.
I think this can be diferent with another exchange sites Cheesy

*just my opinion

Added a language option, but it will need translating, Once it's released we can all translate it.
IamAGentleman (OP)
Full Member
***
Offline Offline

Activity: 134
Merit: 100


View Profile
December 08, 2014, 02:46:16 PM
Last edit: December 08, 2014, 03:00:02 PM by IamAGentleman
 #12

Help translate guys, I'll adding more so keep an eye out for this updated post

Code:
<?php

$lang 
= array();

//dashboard
$lang['buycoin'] = "Buy";
$lang['sellcoin'] = "Sell";
$lang['ammountof'] = "Ammount of";
$lang['valueof'] = " Value of";
$lang['totalpriceof'] = "Total Price of";
$lang['buyingorders'] = " Buying Orders";
$lang['sellingorders'] = "Selling Orders";
$lang['calculatetotal'] = "Calculate Total";

$lang['tostitle'] = "Terms of Service";

//register page
$lang['registertitle'] = "Register Form";
$lang['firstname'] = "First Name"
$lang['lastname'] = "Last Name"
$lang['username'] = "Username"
$lang['email'] = "Email"
$lang['password'] = "Password"
$lang['passwordconfirm'] = "Confirm Password"
$lang['passwordrequirements'] = "Password Requirements";
$lang['passwordchars']= "8 characters minimum";
$lang['passworduper'] = "1 or more upper-case letters";
$lang['passwolower'] = "1 or more lower-case letters";
$lang['passwordspecial'] = "1 or more digits or special characters";
$lang['registersecurity'] = "
These security questions will not be changeable or visible after registration. <br/>
If you lose access to your email/account, we will use these questions as part of the process to grant access to your account."
;
//faq page

//Faq 1
$lang['faq1question'] = 'I\'ve never heard of Bitcoins, what exactly are they?'
$lang['faq1answer'] = "
Developed in 2009, Bitcoin (frequently referred to as BTC) is a digital form of currency, 
revolutionizing the world by becoming the first online currency able to be traded between individuals without a 
\"middle man.\" This means that users of the Bitcoin system are able to trade Bitcoins with one another without 
going through a payment processor such as a bank, allowing you the freedom to buy, sell and trade as you please. 
For a lot more information check How it works or the official Bitcoin site Bitcoin ."


//Faq 2
$lang['faq2question'] = 'Is trading bitcoins and the usage of website legal?';
$lang['faq2answer'] = "
btc is a deposit collector for real money and virtual currency bitcoins (BTC), so yes. 
Trading and having an account with btc.com is legal. It is your personal responsibility to 
declare any profit, accumulated by trading with BTC through btc"


//Faq 3
$lang['faq3question'] = 'Is my information/identity safe when using Bitcoin?';
$lang['faq3answer'] = "
Yes! Using a system established upon obscurity and encoding, Bitcoin is extremely secure. btc will not dispense,
 broadcast, nor vend your information to any parties. It should be noted though, that if and when it is requested 
 by government agencies that . btc disclose information relating to user activity and/or contact information we 
 will comply. Since your personal Bitcoins are maintained on your computer, it is imperative that you take 
 additional steps to ensure that your Bitcoin wallet remains protected from users other than yourself. You 
 should take the necessary precautions to keep your own Bitcoin wallet (on your computer) safe from third 
 party access."


//Faq 4
$lang['faq4question'] = 'How do I get started?';
$lang['faq4answer'] = "
Simply sign up for an account on the btc website- don't worry, it is absolutely free! 
Once you have created your account you need to place funds into the account using an approved 
means of deposit. You are now ready to begin purchasing and selling Bitcoins on the btc website. 
btc trade system will always match your offer with the optimal benefit for you."




?>
IamAGentleman (OP)
Full Member
***
Offline Offline

Activity: 134
Merit: 100


View Profile
December 08, 2014, 11:00:26 PM
 #13

More Features, give me feedback.
meowball
Full Member
***
Offline Offline

Activity: 196
Merit: 100


View Profile
December 08, 2014, 11:45:55 PM
 #14

oh nooo. php!  Smiley Why not use javascript? hehe
IamAGentleman (OP)
Full Member
***
Offline Offline

Activity: 134
Merit: 100


View Profile
December 09, 2014, 12:01:37 AM
 #15

oh nooo. php!  Smiley Why not use javascript? hehe

Lol what do you think.
IamAGentleman (OP)
Full Member
***
Offline Offline

Activity: 134
Merit: 100


View Profile
December 09, 2014, 06:33:28 PM
 #16

Bitcoins can now be deposited.
IamAGentleman (OP)
Full Member
***
Offline Offline

Activity: 134
Merit: 100


View Profile
December 10, 2014, 12:33:53 AM
Last edit: December 10, 2014, 03:39:16 PM by IamAGentleman
 #17

Calculate fees done.
IamAGentleman (OP)
Full Member
***
Offline Offline

Activity: 134
Merit: 100


View Profile
December 10, 2014, 03:38:11 PM
 #18

We can now trade coins guys. Big step forward.
Bitcoin Explorer
Hero Member
*****
Offline Offline

Activity: 854
Merit: 500



View Profile
December 10, 2014, 04:16:39 PM
 #19

I'm more of a design guy (front end)  and I must say. The design is awesome

IamAGentleman (OP)
Full Member
***
Offline Offline

Activity: 134
Merit: 100


View Profile
December 10, 2014, 04:24:43 PM
 #20

I'm more of a design guy (front end)  and I must say. The design is awesome


Thanks brother Smiley
Pages: [1] 2 3 4 »  All
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!