BittrexKit icon indicating copy to clipboard operation
BittrexKit copied to clipboard

Buy/Sell order error

Open paipaipai217 opened this issue 6 years ago • 0 comments

I implemented the buy/sell methods just like all the other methods (which actually worked).

The error the buy/sell methods return it's the same, which is the following: responseError(Swift.DecodingError.keyNotFound(BittrexKit.BuySellLimitResponse.CodingKeys.uuid, Swift.DecodingError.Context(codingPath: [], debugDescription: "No value associated with key uuid (\"result, uuid\").", underlyingError: nil)))

Here's my implementation of the methods:

  bittrexx.sellLimit(market: "ETH-ZRX", quantity: 0.03000000, rate: 0.00210079) { result in
            switch result {
            case .success(let response):
                print(response)
                print("hi")
            case .failure(let error):
                print(error)
                 print("hi error")
            }
        }

        bittrexx.buyLimit(market: "ETH-ZRX", quantity: 0.03000000, rate: 0.00210079) { result in
            switch result {
            case .success(let response):
                print(response)
                print("hi")
            case .failure(let error):
                print(error)
                print("hi error")
            }
        }

paipaipai217 avatar May 28 '18 09:05 paipaipai217