VermeirJellen / PoloniexR

R wrapper for the Poloniex Cryptocurrency Trading API (Package)
Other
19 stars 4 forks source link

Buy order problem #3

Closed MahmutKutlukaya closed 6 years ago

MahmutKutlukaya commented 6 years ago

Many thanks for PoloniexR package. I have been working on it for a while. It is working perfectly well. However I am experiencing problems while using the "buy" order. When I run the following code; buy.order <- ProcessTradingRequest(poloniex.trading, command = poloniex.trading@commands$buy, args = list(currencyPair = "BTC_XMR", rate = 0.015, amount = 0.0005, immediateOrCancel = 1)) I receive; Error in ProcessTradingRequest(poloniex.trading, command = poloniex.trading@commands$buy, : Unable to connect to https://poloniex.com/tradingApi? (422) Your help is much appreciated.

VermeirJellen commented 6 years ago

Hey MahmutKutlukaya,

You seem to be encountering this issue, to which I just gave a reply. I'm guessing you have been performing parallel calls, causing the Poloniex request nonce logic to fail. Renewing your key/secret and using the pair for your R application only could help.

MahmutKutlukaya commented 6 years ago

Hi Jellen, Many thanks for your kind reply. I realized that Poloniex does not allow buy and sell orders under certain limits (which are unknown) through its API. When I increased the order size the problem is solved. Just wanted to inform you. Kind regards,

Mahmut KUTLUKAYA, PhD, FRM

On Fri, Dec 29, 2017 at 5:03 AM, Jellen Vermeir notifications@github.com wrote:

Hey MahmutKutlukaya,

You seem to be encountering this issue https://github.com/VermeirJellen/PoloniexR/issues/4, to which I just gave a reply. I'm guessing you have been performing parallel calls, causing the Poloniex request nonce logic to fail. Renewing your key/secret and using the pair for your R application only could help.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/VermeirJellen/PoloniexR/issues/3#issuecomment-354387066, or mute the thread https://github.com/notifications/unsubscribe-auth/AgTm7MP0mMbO-fxmLEQ7bJUP6yLYLO-Iks5tFEhZgaJpZM4QmP8T .