Pages:
Author

Topic: [BTC-TC] Virtual Community Exchange [CLOSED] - page 59. (Read 316457 times)

sr. member
Activity: 266
Merit: 250
Science!
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).
hero member
Activity: 630
Merit: 500
Bitgoblin
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?
ajk
donator
Activity: 447
Merit: 250
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
ajk
donator
Activity: 447
Merit: 250
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
newbie
Activity: 59
Merit: 0
Is anyone else getting "Access temporarily denied." when they try to login? What is causing this issue?
ajk
donator
Activity: 447
Merit: 250
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,
legendary
Activity: 1106
Merit: 1006
Lead Blockchain Developer
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
Activity: 447
Merit: 250
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..............
hero member
Activity: 728
Merit: 500
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.
legendary
Activity: 4438
Merit: 3387
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.
sr. member
Activity: 266
Merit: 250
Science!
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?
legendary
Activity: 1106
Merit: 1026
Cry  yes. 

 Sad  Angry  Sad

Hmm.. I guess this time I'm the lucky one. Selling and buying works like a charm right now. Cheesy
legendary
Activity: 1106
Merit: 1006
Lead Blockchain Developer
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  yes. 

 Sad  Angry  Sad
sr. member
Activity: 493
Merit: 262
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.
legendary
Activity: 1106
Merit: 1006
Lead Blockchain Developer
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.
legendary
Activity: 1106
Merit: 1006
Lead Blockchain Developer
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:

Code:
preg_replace( '/[^[:print:]]/', ' ',$content);

Thanks for the input all.  It definitely threw me for a loop. 

sr. member
Activity: 493
Merit: 262
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. )
sr. member
Activity: 392
Merit: 250
please do manual transfers tonight or I'm going to be fucked saddened  Shocked
sr. member
Activity: 493
Merit: 262
Bingo! Wink

Quote
[02:11:28] 1 ASK ACTIVEMINING @ 0,1
{"status":"success","response":"Received Ask Order: 1 of ACTIVEMINING @ 0.1 BTC: Placed Sale Order #959414: 1 @ 0.1 BTC.

"}

[02:11:16] 1 BID ACTIVEMINING @ 0,0001
{"status":"success","response":"Received Bid Order: 1 of ACTIVEMINING @ 0.0001 BTC: Placed Purchase Order #959404: 1 @ 0.0001 BTC.

"}

Sweet.  Moved it from oauth/trade_new to oauth/trade.  Thanks again!
Just wanted to thank you for the fast fix. Great job!
And thanks dexX7 for helping, great its working properly now.
sr. member
Activity: 330
Merit: 255
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().
Pages:
Jump to: