jbertovic / tdameritradeclient

A very simple api request client accessing TD Ameritrade API built in rust.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Able to set options on http client

jbertovic opened this issue · comments

commented

I found while using the library i get timed out on some of my requests when the TDAmeritrade API is slow. The default timeout and response time are both set at 30sec when requesting endpoints through the attohttps library. I would like to set a way to set these to custom times in case I want to lengthen when times are slow waiting for a response.

The attohttpc library client allows Session Struct to set configuration on timeouts; connection timeout and read timeout. Build a way to set custom times in tdameritrade:TDAClient

commented

Haven't tested timeout. Use caution.