VolanicEruptor
|
![](https://bitcointalk.org/Themes/custom1/images/post/xx.gif) |
August 06, 2013, 10:59:30 PM |
|
please do manual transfers tonight or I'm going to be fucked saddened ![Shocked](https://bitcointalk.org/Smileys/default/shocked.gif)
|
|
|
|
pascal257
|
![](https://bitcointalk.org/Themes/custom1/images/post/xx.gif) |
August 07, 2013, 12:23:34 AM |
|
Just found another bug, every time you try to fill an order (at least bid) directly via OAuth you get an error Example: OAuth ->fetch (' https://btct.co/oauth/trade', array('act' => 'ask_submit', 'ticker' => 'S.MPOE-PT', 'ask_quantity' => '1', 'ask_price' => '0.0008607'), 'POST') Response: Invalid auth/bad request (got a 500, expected HTTP/1.1 20X or a redirect) Its also possible that it creates a deadlock. It seems that the system does not release the lock after this. (Just guessing) On second try I get: Array ( [status] => error [error_message] => Received Ask Order: 1 of S.MPOE-PT @ 0.0008607 BTC: Excessive wait trying to get lock on S.MPOE-PT. )
|
|
|
|
burnside
Legendary
Offline
Activity: 1106
Merit: 1006
Lead Blockchain Developer
|
![](https://bitcointalk.org/Themes/custom1/images/post/xx.gif) |
August 07, 2013, 08:30:36 AM |
|
Depending on whether there are some special characters which you do actually want to preserve, or whether you'd like to knock everything down to a safe least common denominator, these kind of gremlins often succumb to judicious use of utf8_decode()/utf8_encode or if necessary iconv().
iconv in newer php versions is a little bugged. I ended up with: preg_replace( '/[^[:print:]]/', ' ',$content); Thanks for the input all. It definitely threw me for a loop.
|
|
|
|
burnside
Legendary
Offline
Activity: 1106
Merit: 1006
Lead Blockchain Developer
|
![](https://bitcointalk.org/Themes/custom1/images/post/xx.gif) |
August 07, 2013, 09:21:19 AM |
|
Just found another bug, every time you try to fill an order (at least bid) directly via OAuth you get an error Example: OAuth ->fetch (' https://btct.co/oauth/trade', array('act' => 'ask_submit', 'ticker' => 'S.MPOE-PT', 'ask_quantity' => '1', 'ask_price' => '0.0008607'), 'POST') Response: Invalid auth/bad request (got a 500, expected HTTP/1.1 20X or a redirect) Its also possible that it creates a deadlock. It seems that the system does not release the lock after this. (Just guessing) On second try I get: Array ( [status] => error [error_message] => Received Ask Order: 1 of S.MPOE-PT @ 0.0008607 BTC: Excessive wait trying to get lock on S.MPOE-PT. ) Thank you. I have found two potential points of exit from the code where the security lock was not being released prior to exiting: - One related to backend bitcoind failure, which I do not think was the cause here because there's logging that would have been seen if this were the case. - Another which may be the smoking gun was a DDoS prevention piece that was intended to run once at init, but was being called twice because of a double layer of validation in the bid/ask processing methods. I've fixed it to only do the DDoS test the first call per run. Hopefully it ends up being taken care of now, but I've also added more logging/debugging code a bunch of places to help out if this doesn't end up taking care of it. Cheers.
|
|
|
|
pascal257
|
![](https://bitcointalk.org/Themes/custom1/images/post/xx.gif) |
August 07, 2013, 10:36:11 AM Last edit: August 07, 2013, 11:09:20 AM by pascal257 |
|
Thank you. I have found two potential points of exit from the code where the security lock was not being released prior to exiting:
- One related to backend bitcoind failure, which I do not think was the cause here because there's logging that would have been seen if this were the case. - Another which may be the smoking gun was a DDoS prevention piece that was intended to run once at init, but was being called twice because of a double layer of validation in the bid/ask processing methods. I've fixed it to only do the DDoS test the first call per run.
Hopefully it ends up being taken care of now, but I've also added more logging/debugging code a bunch of places to help out if this doesn't end up taking care of it.
Cheers.
Have you already applied the code. I just tested it and the problem occurred again.
|
|
|
|
burnside
Legendary
Offline
Activity: 1106
Merit: 1006
Lead Blockchain Developer
|
![](https://bitcointalk.org/Themes/custom1/images/post/xx.gif) |
August 07, 2013, 10:56:37 AM |
|
Thank you. I have found two potential points of exit from the code where the security lock was not being released prior to exiting:
- One related to backend bitcoind failure, which I do not think was the cause here because there's logging that would have been seen if this were the case. - Another which may be the smoking gun was a DDoS prevention piece that was intended to run once at init, but was being called twice because of a double layer of validation in the bid/ask processing methods. I've fixed it to only do the DDoS test the first call per run.
Hopefully it ends up being taken care of now, but I've also added more logging/debugging code a bunch of places to help out if this doesn't end up taking care of it.
Cheers.
Have you already applied the code. I just tested it and the problem occurred again. ![Cry](https://bitcointalk.org/Smileys/default/cry.gif) yes. ![Sad](https://bitcointalk.org/Smileys/default/sad.gif)
|
|
|
|
dexX7
Legendary
Offline
Activity: 1106
Merit: 1026
|
![](https://bitcointalk.org/Themes/custom1/images/post/xx.gif) |
August 07, 2013, 11:50:32 AM |
|
Hmm.. I guess this time I'm the lucky one. Selling and buying works like a charm right now. ![Cheesy](https://bitcointalk.org/Smileys/default/cheesy.gif)
|
|
|
|
Exocyst
Sr. Member
![*](https://bitcointalk.org/Themes/custom1/images/star.gif) ![*](https://bitcointalk.org/Themes/custom1/images/star.gif) ![*](https://bitcointalk.org/Themes/custom1/images/star.gif)
Offline
Activity: 266
Merit: 250
Science!
|
![](https://bitcointalk.org/Themes/custom1/images/post/xx.gif) |
August 07, 2013, 02:19:49 PM |
|
Has anyone tried to write an API trader for BTC-TC in Lua? It's the only language I ever bothered to learn, and it appears to have all the necessary support packages to make it easy enough: - an OAuth library - json library - client library for executing a session in R (for integrating complex statistical model) - sql library for storing/retrieving historical data - Kepler project for making a web interface
Is there some obstacle to succeeding that might be escaping me?
Thoughts? Collaborators?
|
|
|
|
odolvlobo
Legendary
Online
Activity: 4410
Merit: 3305
|
![](https://bitcointalk.org/Themes/custom1/images/post/xx.gif) |
August 07, 2013, 05:47:46 PM |
|
Has anyone tried to write an API trader for BTC-TC in Lua? It's the only language I ever bothered to learn, and it appears to have all the necessary support packages to make it easy enough: - an OAuth library - json library - client library for executing a session in R (for integrating complex statistical model) - sql library for storing/retrieving historical data - Kepler project for making a web interface
Is there some obstacle to succeeding that might be escaping me?
Thoughts? Collaborators?
Here's a thought: World of Warcraft lets you customize your UI with Lua plugins. You could create a BTC-TC or LTC-GLOBAL fund that holds WoW gold, and then let people buy and sell while they are playing WoW.
|
Join an anti-signature campaign: Click ignore on the members of signature campaigns. PGP Fingerprint: 6B6BC26599EC24EF7E29A405EAF050539D0B2925 Signing address: 13GAVJo8YaAuenj6keiEykwxWUZ7jMoSLt
|
|
|
Rannasha
|
![](https://bitcointalk.org/Themes/custom1/images/post/xx.gif) |
August 07, 2013, 05:50:38 PM |
|
Has anyone tried to write an API trader for BTC-TC in Lua? It's the only language I ever bothered to learn, and it appears to have all the necessary support packages to make it easy enough: - an OAuth library - json library - client library for executing a session in R (for integrating complex statistical model) - sql library for storing/retrieving historical data - Kepler project for making a web interface
Is there some obstacle to succeeding that might be escaping me?
Thoughts? Collaborators?
Here's a thought: World of Warcraft lets you customize your UI with Lua plugins. You could create a BTC-TC or LTC-GLOBAL fund that holds WoW gold, and then let people buy and sell while they are playing WoW. Unfortunately the WoW Lua-API doesn't offer any functions to access anything outside the game.
|
|
|
|
ajk
Donator
Sr. Member
Offline
Activity: 447
Merit: 250
|
![](https://bitcointalk.org/Themes/custom1/images/post/xx.gif) |
August 07, 2013, 05:56:07 PM |
|
Ethan this is the 2nd week ive been waiting for my share transfer, I still have not received dividends for the shares I transferred out of your PT 2 weeks ago..............
|
|
|
|
burnside
Legendary
Offline
Activity: 1106
Merit: 1006
Lead Blockchain Developer
|
![](https://bitcointalk.org/Themes/custom1/images/post/xx.gif) |
August 07, 2013, 06:51:40 PM |
|
Ethan this is the 2nd week ive been waiting for my share transfer, I still have not received dividends for the shares I transferred out of your PT 2 weeks ago..............
Frustrating for sure, but you were CC'd on the initial contact to Friedcat and the subsequent follow-up attempt. Resends risk Friedcat accidentally making the transfer twice, so I hesitate to risk additional requests. Cheers.
|
|
|
|
ajk
Donator
Sr. Member
Offline
Activity: 447
Merit: 250
|
![](https://bitcointalk.org/Themes/custom1/images/post/xx.gif) |
August 07, 2013, 06:59:47 PM |
|
Ya cheers...
Can you send him a PM you have been sending him emails which either isnt getting read or skipped over, why is this such a difficult task to PM him
If this was 10 shares or something I wouldnt be crying but its 160BTC worth of shares,
|
|
|
|
bitcad
Newbie
Offline
Activity: 59
Merit: 0
|
![](https://bitcointalk.org/Themes/custom1/images/post/xx.gif) |
August 07, 2013, 07:02:57 PM |
|
Is anyone else getting "Access temporarily denied." when they try to login? What is causing this issue?
|
|
|
|
ajk
Donator
Sr. Member
Offline
Activity: 447
Merit: 250
|
![](https://bitcointalk.org/Themes/custom1/images/post/xx.gif) |
August 07, 2013, 07:03:29 PM |
|
what about other people have their transfers been going through,
i am tired of waiting for something that is usually done within a week but by someone who operates an exchange for many peoples shares cant do the same simple task in 2-3 weeks?
thats great
|
|
|
|
ajk
Donator
Sr. Member
Offline
Activity: 447
Merit: 250
|
![](https://bitcointalk.org/Themes/custom1/images/post/xx.gif) |
August 07, 2013, 07:23:17 PM |
|
also I assume with the way your handling the situation your going to keep the dividends since the shares are still with your address?
also for future reference I should never try to withdraw shares just sell off and withdraw bitcoins because obviously this cant be done correctly
|
|
|
|
Lohoris
|
![](https://bitcointalk.org/Themes/custom1/images/post/xx.gif) |
August 07, 2013, 09:48:25 PM |
|
Here's a thought: World of Warcraft lets you customize your UI with Lua plugins. You could create a BTC-TC or LTC-GLOBAL fund that holds WoW gold, and then let people buy and sell while they are playing WoW.
Unfortunately the WoW Lua-API doesn't offer any functions to access anything outside the game. Quite obviously. It is well known how much Blizzard hates gold sellers, why should they do something that would help them so much, lol?
|
|
|
|
Exocyst
Sr. Member
![*](https://bitcointalk.org/Themes/custom1/images/star.gif) ![*](https://bitcointalk.org/Themes/custom1/images/star.gif) ![*](https://bitcointalk.org/Themes/custom1/images/star.gif)
Offline
Activity: 266
Merit: 250
Science!
|
![](https://bitcointalk.org/Themes/custom1/images/post/xx.gif) |
August 08, 2013, 02:34:34 AM |
|
also I assume with the way your handling the situation your going to keep the dividends since the shares are still with your address?
also for future reference I should never try to withdraw shares just sell off and withdraw bitcoins because obviously this cant be done correctly
I don't know why your slamming burnside. What is he supposed to do? Friedcat isn't the most responsive guy in the world. Why don't you go raise some noise in the ASICMINER thread? (BTW, Friedcat doesn't read it, so don't bother).
|
|
|
|
ajk
Donator
Sr. Member
Offline
Activity: 447
Merit: 250
|
![](https://bitcointalk.org/Themes/custom1/images/post/xx.gif) |
August 08, 2013, 02:52:01 AM |
|
also I assume with the way your handling the situation your going to keep the dividends since the shares are still with your address?
also for future reference I should never try to withdraw shares just sell off and withdraw bitcoins because obviously this cant be done correctly
I don't know why your slamming burnside. What is he supposed to do? Friedcat isn't the most responsive guy in the world. Why don't you go raise some noise in the ASICMINER thread? (BTW, Friedcat doesn't read it, so don't bother). How about you mind your own business?
|
|
|
|
burnside
Legendary
Offline
Activity: 1106
Merit: 1006
Lead Blockchain Developer
|
![](https://bitcointalk.org/Themes/custom1/images/post/xx.gif) |
August 08, 2013, 04:32:21 AM |
|
also I assume with the way your handling the situation your going to keep the dividends since the shares are still with your address?
also for future reference I should never try to withdraw shares just sell off and withdraw bitcoins because obviously this cant be done correctly
Follow-up PM Sent to Friedcat. For others in this situation I should note that normal procedure is that once Friedcat has confirmed the transfer, missed dividends are sent to your btct.co account via internal transfer. Cheers.
|
|
|
|
|