profile
viewpoint

ttodua/useful-php-scripts 290

several different,useful php scripts and functions

ttodua/winauth 16

Updated WinAuth : Authenticator on Windows, usable for any website/service

ttodua/useful-javascript 5

some useful javascript codes and files

ttodua/other-projects 2

THESE FILES ARE NOT FOR PUBLIC USE. JUST MY PERSONAL JUNK !!!!!!!!!!!!!!!!!

ttodua/php-hot-reloader 1

Stupidly simple way to add a live reloader feature to a php project

Puvox/All-Vulnerability-Scanners 0

All in one Vulnerability Scanners & Penetration testers

issue commentccxt/ccxt

Minimize number of requests to an exchange

The website structure you seem to have, it up to you to decide where/what files you want to have in project, and it's up to your experience/practice how you develop project. However, in terms of CCXT re-usability and minimizing odd repeated calls, you'd better to use different approaches: global-scope variable or file-scope variable. You are doing the latter-one, and seems you have a correct concept chosen in your example (to call already initiated object, instead of re-creating exchange object on every loadMarkets (or other) methods. Also, I don't think this part is needed:

    if(!(exchange_id in markets)){
        
        exchange = exchanges[exchange_id];
        let market = await exchange.loadMarkets();
        markets[exchange_id] = market;
    
    }

as loadMarkets() method will be called inside exchange object by itself whenever it decides on its own, if that is needed or not. For example, exchange.fetchOHLCV itself calls loadMarkets() if it sees that method hasn't been yet fired at least once.

YuriyTigiev

comment created time in 4 minutes

issue commentspatie/async

Output/Echo debugging

@techno-express many thanks for sharing that. I will try to give it a shot when I'll return to the project I was working onto .

ttodua

comment created time in an hour

issue commentbinance-chain/bsc

BSC Light client peers - What is going on?

any news?

DamCzech

comment created time in 4 days

PR opened ccxt/ccxt

Fix timeOut MAX INTEGER issue

Actually, this PR is incomplete due to my lack of time and in-deep knowledge of ccxt internals. However, as I've noted in https://github.com/ccxt/ccxt/issues/10761 , and many similar issues out there in internet (i.e. this ) suggest that it needs fix.

the ccxt's core function setTimeout_safe needs fix to accommodate that workaround. plus. all of "setTimeout" functions in ccxt.pro might also need to be replaced by 'setTimeout_safe, so CCXT will have one base fixedsetTimeout` function.

Even though, such high number setTimeout calls shouldn't be happening in realworld (who needs to fire callback after 2147483647 MS ? ) this is still happening in the wild (due to some unknown issues) and should be addressed. Maybe instead of workaround, you can just leave throwing an exception from setTimeout_safe if it is called with such unrealistic delay.

Also, this might be also needed to all 'setInternal' functions mentioned across ccxt/ccxt-pro.

+6 -2

0 comment

2 changed files

pr created time in 4 days

push eventttodua/ccxt-1

T. Todua

commit sha e60a476cf61d0702c395487c412145d46742369d

Update time.js

view details

push time in 4 days

push eventttodua/ccxt-1

T. Todua

commit sha 843870baf6b65f83789784cfc500fba2c9e3baff

Update time.js

view details

push time in 4 days

push eventttodua/ccxt-1

T. Todua

commit sha f66e3b5472e9803d3cdf3119fe9c2843bcfd696d

Update time.js

view details

push time in 4 days

push eventttodua/ccxt-1

T. Todua

commit sha cf158f4a5e7e22bf7d6279c854a00dbfd4c1b848

Update throttle.js

view details

push time in 4 days

fork ttodua/ccxt-1

A JavaScript / Python / PHP cryptocurrency trading API with support for more than 100 bitcoin/altcoin exchanges

fork in 4 days

issue commentccxt/ccxt

getting error "TimeoutOverflowWarning"

found this, but dont know in which library that might be. I assume it might be in CCXT's 'sleep' function or somewhere, I cant say. but this spoilt our trading several times already.

ttodua

comment created time in 4 days

issue openedccxt/ccxt

getting error "TimeoutOverflowWarning"

I used Kucoin API to submit a few orders. I also had watchOrderbook WS enabled at that moment. Shortly after, I get:


 (node:13408) TimeoutOverflowWarning: 162206566290365 does not fit into a 32-bit signed integer.  
Timeout duration was set to 1.
(node:13408) TimeoutOverflowWarning: 162206566290363 does not fit into a 32-bit signed integer.  
Timeout duration was set to 1.

this happened before too, and now consistently happens. What could be an issue? it doesn't have any Exception/trace to find out from where it comes. Any thoughts?

created time in 4 days

issue commentChainSafe/web3.js

web3.eth.getPendingTransactions doesn't work

@zeleniy As the error describes The method eth_pendingTransactions does not exist/is not available, which means the RPC method eth_pendingTransactions is not supported by the provider you are connected to. You didn't described which service you are connected to or you are connected to a local node. I assume here that you are using Infura which does not support this RPC method.

Try using the pendingTransactions subscription with Infura and see if it works for your use-case.

https://web3js.readthedocs.io/en/v1.5.0/web3-eth-subscribe.html#subscribe-pendingtransactions

Can you please tell from your experience, for BSC (https://bsc-dataseed1.binance.org:443) which method would you use to get pending transactions?

zeleniy

comment created time in 6 days

fork ttodua/Front-RunBot

front-running uniswap bot

fork in 7 days

issue commentGorvGoyl/Shortcut-Menu-Bar-VSCode-Extension

How to run code in terminal with "custom button"?

i've tried and made it work, however, isn't it possible to just run any sample command directly in the open terminal, without starting the task (being placed in toolbar with loading icon aside : https://i.imgur.com/klEqRww.png )

ttodua

comment created time in 7 days

issue commentccxt/ccxt

Any way to add "synthetic" timestamp?

so, what you've decided? will there be added any additional property in ccxt's orderBook object, like 'responseTimestamp' or not? if this idea is under "wont-fix" status, then can you tell how to parse response header manually? i.e. this.last_response_headers.Date ? (but it doesnt have milliseconds part, which is important in this case)

ttodua

comment created time in 8 days

issue commentccxt/ccxt

Issue with timeout

@kroitor I am seeing the obvious issue. Even though I've solved that problem and exceptions are being catched, specifically kucoin has issue in ccxt (i dont know where problem arises). for example, if you run even 2000ms interval to get balance, after around 10 or 15th call, (or earlier even) the 'await fetchBalance()enters in hanged state (and later returningrequest timeout...` message, mentioning 10000ms). the Rate-limit is not such strict to forbid getting balance once in every 2 seconds. So, there is somewhat I couldnt solve.

ttodua

comment created time in 9 days

issue commentccxt/ccxt

Transpiling CCXT to C++ for C++ support

@kroitor can you mention why it's worth c++ version and are those performance advantages any of worth over i.e. nodejs version?

MrMechanical

comment created time in 9 days

issue commentccxt/ccxt

CCXT Developer Wanted

And another 2 cents - if the burden is too much, you might make the approved PR's rewardable (with cryptos) and incentivize users to fix & PR the github-listed issues, :) some people might get interested and ccxt might get more PR's & updates.

kroitor

comment created time in 9 days

issue commentccxt/ccxt

Issue with timeout

ouch, thanks!!! (btw, sorry for formatting, i've only seen at this moment that i havent had used code-block properly.)

ttodua

comment created time in 10 days

issue commentvuejs/vue

v-show should be !important

I still think that between design and logic part, the logic should be given the priority. Bootstrap's imporant is for design, and vue's v-show is logic part, and it should take superiority. when we say v-show="myCondition that's all - if myCondition is false, element should be hidden. We can blame this or that, but it's obvious. But till date, not addressed, being the fact that thousands of people use Bootstrap, and moreover not implementing the valid suggestions by @gerardreches .

codysherman

comment created time in 10 days

issue openedvuejs/vue-next

CSS conflict with bootstrap

Version

3.2.23

Steps to reproduce

Vue.createApp{
..
myVariable : false,
..
}
<div class="d-flex flex-row" v-show="myVariable">
    hello world
</div>

What is expected?

Many people use bootstrap. Vue 'v-show' should be superior in logic, and override bootstrap's "display:flex" css. However, bootstrap overrides vue's "display:none" which doesn't seem to be any logical in this case, as obviously VUE's conditional 'should be' superior . Maybe somewhere in vue initilization property we can set 'v-show's to use 'display:none' with !important flag.

<!-- generated by vue-issues. DO NOT REMOVE -->

created time in 10 days

issue openedccxt/ccxt

Issue with timeout

I am getting the timeout exception, without having a way to catch it, and it exits whole application. ... setInterval( myWalletFetch, 1000); ... isInsideWalletFetch : false, myWalletFetch(){ try{ if (this.isInsideWalletFetch) return; this.isInsideWalletFetch = true; let prom = exchange.fetchBalance(); c("Wallet Requestedd"); prom.then(this.Wallet_received); } catch(ex){ c(ex); } }

Wallet_received(response){ 
	console.log("Wallet  received");
	...self....isInsideWalletFetch = false;
}, 

however, after around 5-10th cycle, it exits whole application with exception RequestTimeout: kucoin GET https://openapi-v2.kucoin.com/api/v1/accounts?type=trade request timed out (10000 ms) at ..node_modules\ccxt\js\base\Exchange.js:438:27

My concern is why i cant (or how to) catch that exception, so avoided it breaking whole running application.

created time in 11 days

issue commentccxt/ccxt

Any way to add "synthetic" timestamp?

Sorry for kicking in. I definitely agree with Kroitor, there is jot doubt in with what kroitor says, and no probably no need for further discussion. Data of any event shouldnt be ever treated to be 'better than nothing' by default. The default behavior of data should be to show whatever it is meant to do. by default, when I ask X exchange about Y data, ccxt should provide whatever server responses and whatever balues should have been provided if i called different API client too. default behavior of API CLIENT shouldnt be to add any data on its own. That is solely the user-decision to change that behavior consiously, and thus, there should be a 'setting' to be turned on, which would change that behavior and set timestamp to server request. or you can add extra parameter named 'serverTime' in response. So, user needs to have a solution. but dont change 'timestamp' property by default.

On Wed, Nov 24, 2021, 6:37 AM Igor Kroitor ***@***.***> wrote:

@frosty00 https://github.com/frosty00 we could add the optional feature for ws-purposes, and that would be the timestamp when the last updated was received (if the update itself didn't contain a timestamp inside it).

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/ccxt/ccxt/issues/10689#issuecomment-977437134, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABWJZGWLYMJJSPEUHR22SY3UNRFVZANCNFSM5ITR2KWQ . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

ttodua

comment created time in 12 days

issue closedccxt/ccxt

Missing endpoint in gate.io API

Gate.io has "cancel all orders" endpoint for specified symbol. However, in ccxt I can't find that method in gate class. Can you please add?

closed time in 13 days

ttodua

PR opened ccxt/ccxt

add "cancelAllOrders"

addresses https://github.com/ccxt/ccxt/issues/10690

+11 -0

0 comment

1 changed file

pr created time in 13 days

push eventttodua/ccxt

T. Todua

commit sha 55b5720fef78e7bc2053daac3ebcef3638856952

add "cancelAllOrders" addresses https://github.com/ccxt/ccxt/issues/10690

view details

push time in 13 days

fork ttodua/ccxt

A JavaScript / Python / PHP cryptocurrency trading API with support for more than 100 bitcoin/altcoin exchanges

fork in 13 days

issue commentccxt/ccxt

Missing endpoint in gate.io API

cancelAllOrders = async function (symbol = undefined, params = {}) { await this.loadMarkets (); const request = { }; let market = undefined; if (symbol !== undefined) { market = this.market (symbol); request['symbol'] = market['id']; } return await this.privateSpotDeleteOrders (this.extend (request, params)); }

ttodua

comment created time in 13 days

issue openedccxt/ccxt

Missing endpoint in gate.io API

Gate.io has "cancel all orders" endpoint for specified symbol. However, in ccxt I can't find that method in gate class. Can you please add?

created time in 13 days

issue openedccxt/ccxt

Any way to add "synthetic" timestamp?

Let's say we have:

for (i=0; i<5; i++)
   ex.fetchOrderBook('btc/usdt').then(myParseOB);
   phseudo_sleep(100); 
}

function myParseOB(resp){
   this.OB = resp;
}

in our app, we reply OB to be the latest, and for that, we depend on .timestamp property of response. However, with some exchanges, (i.e. gate.io) it is 'undefined' and thus, returned 5 calls are in not chronological orders sometimes. (i.e. the 5th sent request might return response earlier then 3rd request)

What is your advise to make their responses chronologically sorted? I've been thinking if there is any internal property in ccxt (or maybe somewhere in headers), like exchange.Request_Start_Time_Of_Last_Received_Response would have been very useful, for many different ccxt methods, to make them datestamped, when exchange doesn't give any timestamp.

created time in 13 days

more