Bitcoin Forum
May 02, 2024, 11:49:05 PM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
  Home Help Search Login Register More  
  Show Posts
Pages: [1] 2 3 »
1  Bitcoin / Bitcoin Technical Support / Re: MTGox api/v1 php script, Incomplete need help adding to it. on: December 19, 2013, 11:26:07 PM
ok I need up bump this thread


im programming the follow steps to do this.

//get current price

//get current order book

//get amount (USD available to make purchase)

//calculate order (amount btc to be bought to reach USD target)

//place order for the btc calculated at market that would equate to the dollar amount.

//verify dollar's transaction cost. (assuming order book didn't change while placing.)



....

Is this really the way to do this? why on earth would an API not be able to place a market buy at a USD amount. I can do this on mtgox's website.

.1 btc reward to some one that figures this out.
2  Bitcoin / Bitcoin Technical Support / Re: MTGox api/v1 php script, Incomplete need help adding to it. on: December 17, 2013, 10:28:27 AM
hmm, I know on mtgox's website I can set a market buy and just select USD. If i sell at a price isn't it possible it doesn't fill right  away? especially if the price is falling? If I calculated with the current price how much btc to buy, and placed an order priced over it would fill right away. But its possible it would spend more USD than my original target. Id have to go into the order book and make sure the entire trade can complete at a given price.

though it would be easier to tell an api to buy 5$ worth of bitcoin and have it be accurate down to the penny.
3  Bitcoin / Bitcoin Technical Support / Re: MTGox api/v1 php script, Incomplete need help adding to it. on: December 17, 2013, 09:56:27 AM
Found the v2

https://github.com/medoix/php-mtgox-v2/blob/master/mtgox_private_api.php


looks like its built the same way, not sure how to do the market order at USD
4  Bitcoin / Bitcoin Technical Support / MTGox api/v1 php script, Incomplete need help adding to it. on: December 17, 2013, 09:22:00 AM
Got this api script to work for the defined functions

although im trying to set the market buy to an amount in USD, ie buy 5$ worth of btc!

line 88 submit_buy_order_at_market($amount)

problem is the amount is in BTC, I need to set it to USD somehow

https://github.com/daftspunk/php-mtgox-v1/blob/master/mtgox_private_api.php     


Thanks for the help
5  Bitcoin / Project Development / Re: Bitlab Bitcoind Clustering on: November 04, 2013, 11:26:28 PM
are the private keys stored locally on each node? ie, if one node is compromised does the amount on bitcoin on the entire cluster get lost? or does 1/x (if btc is spread evenly between nodes). Or optimally are the keys generated so each node only has 1/x of the key. So an attacker would need to compromise all the servers to get the full private key?
6  Bitcoin / Project Development / Open Source Bitcoin ATM's; Looking for Developers. Front End/CSS for Python app on: November 04, 2013, 10:50:25 PM
I run Cash2BTC.com and We have been building/selling DIY bitcoin atm's for the last 4 months. I've moved the project from vb.net and windows, to python based apps on Raspbian on a raspberry pi. We are getting really close to launching this new version but the GUI is no where near what I want it to be. So im tossing it out, and building it from scratch. I'm looking for some CSS pro's to give this project the look and feel it needs.

The drivers are built (python), The GUI is going to be a python app running in miridi(browser) locally and is built on python flask; and going to be optimized for touch screens. The basic programming objects are there; Now it all about what the customer see's and how they interface with it. all the graphics, how it looks and feels is completely up for redesign. I am looking for some developers who would like to jump on this project. I will be paying in BTC as well as giving out developer kits (Check the photos) but really hoping that will catch on and start evolving on its own. And this whole-project will be/is posted on github.

The github (most recent gui is not posted because im tossing it, but email me and ill get you caught up.)
https://github.com/HighlanderEnterprises/Pyramid-Acceptors-Rpi-Python-Driver

also, Photos from the new kits
http://imgur.com/a/Y91Vj

Email me
BitHighlander@gmail.com
7  Bitcoin / Development & Technical Discussion / Re: How to watch confirmations on set of transactions? on: September 21, 2013, 07:07:52 PM
bitcoin-qt has a pop up window in the gui, is it really that big a stretch to get bitcoind to be able to run(or just trigger) a 3rd party script for notification when it receives a payment?

8  Bitcoin / Bitcoin Technical Support / Re: blockchain.info wallet API's, Avoid Change being sent to moniterd address's on: August 26, 2013, 09:50:59 PM
ohh, duh, just though of a better solution

just have 2 wallets, deposits get instantly sent to a second wallet. That way no change is ever sent on the first wallet; and the hotwallet isnt linked to a moniterd address.
9  Bitcoin / Bitcoin Technical Support / Re: blockchain.info wallet API's, Avoid Change being sent to moniterd address's on: August 26, 2013, 09:41:23 PM
How would I go about configuring bitcoind to forward all change to a new address?
10  Bitcoin / Bitcoin Technical Support / blockchain.info wallet API's, Avoid Change being sent to moniterd address's on: August 26, 2013, 08:40:14 PM
o I ran into an issue. I'm playing with php and blockchain.info's api. I am issuing a new address to a new user, watching for deposits and crediting their account when btc is sent to that address, everything was working good. except sometimes if I do a send with that same blockchain wallet, the "change" gets sent back to the original address, crediting the user when it shouldn't. Is there a better way to use block-chains wallet api to do this?

Im thinking I could just make a bunch of offline address's, use them for deposits, and then keep a hotwallet online.

But I want to ability to keep a tiny hotwallet and don't want a some one with a lot of btc to come in and be like, wtf I want my coin now.

So Im looking to either, 1) set blockchain.info to forward all "change" to a new address (if that's even possible) or 2) Do I just need to move on to more full featured php bitcoin tools? like?
11  Other / Beginners & Help / wallet API's, useing php to build with bitcoin on: August 26, 2013, 08:19:31 PM
o I ran into an issue. I'm playing with php and blockchain.info's api. I am issuing a new address to a new user, watching for deposits and crediting their account when btc is sent to that address, everything was working good. except sometimes if I do a send with that same blockchain wallet, the "change" gets sent back to the original address, crediting the user when it shouldn't. Is there a better way to use block-chains wallet api to do this?

Im thinking I could just make a bunch of offline address's, use them for deposits, and then keep a hotwallet online.

But I want to ability to keep a tiny hotwallet and don't want a some one with a lot of btc to come in and be like, wtf I want my coin now.

So Im looking to either, 1) set blockchain.info to forward all "change" to a new address (if that's even possible) or 2) Do I just need to move on to more full featured php bitcoin tools? like?
12  Other / Beginners & Help / Re: MTGOX ACCOUNT FOR SALE on: July 29, 2013, 08:46:40 PM
so you want to pass some one credentials for an MTgox account, so they can change the name and info on the account and apply to MTgox to take a hold off the account?

you think MTgox is going to actually unlock this account? are you kidding, I can here mtgox support now, so whos email is XXX and why do you want to change your name?

ohh I ahh forgot my name signing up, and now I want to verify my account with a new name email address and info.

that's going to go well

I think Id be more likely that all this would do is get my current account locked as well...
13  Other / Beginners & Help / Re: How to build a Bitcoin Dispenser; A photo walk-through of my latest build. on: July 29, 2013, 08:42:14 PM
thanks
14  Other / Beginners & Help / How to build a Bitcoin Dispenser; A photo walk-through of my latest build. on: July 29, 2013, 05:53:42 PM
Completed a new version, Ive been developing these boxes for a few months now and wanted to show off some pics from my build.


http://imgur.com/a/obhNx
15  Economy / Services / Re: Cash2BTC bitcoin dispensors, get going with just 7.8btc on: July 29, 2013, 05:02:11 PM
Totally posted this and completely spaced off following up.

cash2btc is very real, not a joke, we build fully functional bitcoin dispensers; similar in function to lamassu but albeit without the sexy styling.

We had a fully functional Dispenser at the San Jose conference Hackathon

http://bitcoinmagazine.com/day-two-at-bitcoin-2013-live-coverage/

small blurb mentioning us.



I have recently completed our newest version of the device.

here is a photo album from the construction.
http://imgur.com/a/obhNx

Our orders have been kinda of slacking lately (as I am hand making them personally and still have plenty of free time) Ive been thinking of ways to drum up some interest.

This new box has a bunch of features, and I want to gauge interest in placing my baby, the original prototype (the one pictured in the album), up for auction. this is fully assembled and tested device.

Ill continue to follow this thread and answer any more questions. let me if its worth my time posting an auction.

Thanks
Matt
Cash2btc.com
16  Economy / Services / Cash2BTC bitcoin dispensors, get going with just 7.8btc on: July 01, 2013, 09:33:10 PM
I am a bitcoin developer; like all of you I want to see bitcoin succeed. One of the major hurdles I have is helping people buy bitcoin. The current methods are too cumbersome; and I feel personally responsible when a service I recommend screws over my friends. Bitcoin needs to be able to flow into and out of markets easily. I think absolute best way to experience bitcoin for the first time is with an easy purchase. With our packages you can turn that old desktop you got laying around into a fully functional bitcoin dispenser. Host these devices in your living room, man cave, or around the office. With our basic package all the leg work is done for you.

How it works

  • You purchase a basic package via bitcoin from cash2btc.com
  • We use bitpay same day deposits; and order your hardware as soon as it clears.
  • Your account is activated on cash2btc.com and hosting setup is started.
  • Bill dispenser shows up in the mail
  • You download and install the client side software from cash2btc.com onto your desktop
  • plug the dispenser in via USB
  • plug in a webcam if you don’t already have one
  • open a browser and point to your hosted device page
  • inset a bill into the dispenser to test the device.

Hack together a case and a UPS and you got a portable bitcoin dispenser.
If you ever lose the device (or have it taken!) a new dispenser can be bought for a mere 252.00; I hoping for groups to get together and build cool unique cases.  I can see these deployed everything from ultralight to carry in a backpack, to large devices like a redbox. I plan on providing as much customer support as I can, I will be looking to the bitcoin community to organize host and use the devices to help promote bitcoin. If Our sales do well I will be looking to hire people from the community grow our company as well.

Check out our Welcome video
http://www.youtube.com/edit?ns=1&video_id=MZAntrBDuso

And our website
Cash2BTC.com
17  Other / Beginners & Help / Re: MTGOX api, send simple not working. [unsolved so added bounty .1 btc ] on: May 23, 2013, 05:26:18 PM
Thank you very much Matt,

That quick hack was indeed correct


18  Other / Beginners & Help / Re: MTGOX api, send simple not working. [unsolved so added bounty .1 btc ] on: May 23, 2013, 05:45:40 AM
corrected order, still getting same error :/


noticed the end of the error changed when I switched them

backwards
 13 [function] => withdraw_coins [class] => MtGox_Private_Api [type] => -> [args] => Array (
  • => 1 [1] => 14XnxAbrNZkkXRX76MS2S5JnJ1hUbgCs1Y ) ) ) [previous:Exception:private] => )

correct
13 [function] => withdraw_coins [class] => MtGox_Private_Api [type] => -> [args] => Array (
  • => 14XnxAbrNZkkXRX76MS2S5JnJ1hUbgCs1Y [1] => 1 ) ) ) [previous:Exception:private] => )


but other then that the error is the same. (sent you a little bit for taking the time to look)  Smiley
19  Other / Beginners & Help / Re: MTGOX api, send simple not working. [unsolved so added bounty .1 btc ] on: May 23, 2013, 03:54:36 AM
I do not have any 2 factor enabled;

and the key does have withdraw enabled. 
20  Other / Beginners & Help / Re: MTGOX api, send simple not working. [unsolved so added bounty .1 btc ] on: May 23, 2013, 02:36:20 AM
.1btc

my script
Code:
<?php
include 'mtgox_api_base.php';
include 
'mtgox_private_api.php';

$private = new MtGox_Private_Api();
$private->set_currency('USD'); // CHANGE TO USD IF YOU NEED USD!!
$private->set_authentication("SSSSSSSSSSSSSSSS""SSSSSSSSSSSSSSSSSSSSSSS");

$address '14XnxAbrNZkkXRX76MS2S5JnJ1hUbgCs1Y';
$amount_int 10000;

try{
    
$send_simple $private->withdraw_coins($amount_int$address);
    
print_r($send_simple);
}catch(
Exception $e) {
    
print_r($e);
}
?>


is returning the error

Quote
Exception Object ( [message:protected] => Parameter amount_int or amount is required [string:Exception:private] => [code:protected] => 0 [file:protected] => /var/www/admin/atm/mtgox_api_base.php [line:protected] => 79 [trace:Exception:private] => Array (
  • => Array ( [file] => /var/www/admin/atm/mtgox_api_base.php [line] => 70 [function] => process_api_response [class] => MtGox_Api_Base [type] => -> [args] => Array (
  • => Array ( [result] => error [error] => Parameter amount_int or amount is required [token] => unknown_error ) ) ) [1] => Array ( [file] => /var/www/admin/atm/mtgox_private_api.php [line] => 46 [function] => send_request [class] => MtGox_Api_Base [type] => -> [args] => Array (
  • => 1/generic/bitcoin/send_simple ) ) [2] => Array ( [file] => /var/www/admin/atm/history.php [line] => 13 [function] => withdraw_coins [class] => MtGox_Private_Api [type] => -> [args] => Array (
  • => 10000 [1] => 14XnxAbrNZkkXRX76MS2S5JnJ1hUbgCs1Y ) ) ) [previous:Exception:private] => )
Pages: [1] 2 3 »
Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!