BittrexKit
BittrexKit copied to clipboard
Buy/Sell order error
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")
}
}