Skip to content
This repository has been archived by the owner on Dec 13, 2023. It is now read-only.

deposit multi address #18

Open
pedram1995kzm opened this issue Nov 3, 2021 · 1 comment
Open

deposit multi address #18

pedram1995kzm opened this issue Nov 3, 2021 · 1 comment

Comments

@pedram1995kzm
Copy link

I'm trying to generate deposit address for each account of my exchange website users by using COINEX API I've faced a real problem imagine there is 2 users in my website and USER1 wants to deposit BTC so when he clicks on generate deposit address code runs : PUT /balance/deposit/address/BTC and address displays to him. but he hasn't used this address yet suddenly USER2 wants to deposit BTC too and then code runs again: PUT /balance/deposit/address/BTC but it says { code: 318, data: { }, message: "Deposit address not used." } should USER2 wait untill USER1 completes his deposit?! it can't be like that.. any idea for solving this? how everyone make an exchange with coinex api, it doesn't make a trouble for them?

@CliffS CliffS self-assigned this Nov 20, 2021
@CliffS
Copy link
Collaborator

CliffS commented Nov 20, 2021

Each user should have his own connection by calling const coinex = new Coinex(API_KEY, SECRET);. I'm not sure how you are dealing with multiple users but only one API_KEY and SECRET pair.
`

@CliffS CliffS removed their assignment Mar 5, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant