Open mrbionik opened 5 years ago
added
@FormParam("trading_agreement") String agreement,
to
KrakenOrderResult addOrder
in KrakenAuthenticated
interface
added new String to KrakenStandardOrder.class
private final String trading_agreement;
+ GETTER
and set value to agree in constructor
this.trading_agreement = "agree";
now i use new field _tradingagreement in placeKrakenOrder method -> market orders and stop-loss orders works now
public KrakenOrderResponse placeKrakenOrder(KrakenStandardOrder krakenStandardOrder)
throws IOException {
KrakenOrderResult result = null;
if (!krakenStandardOrder.isValidateOnly()) {
result =
kraken.addOrder(
KrakenUtils.createKrakenCurrencyPair(krakenStandardOrder.getAssetPair()),
krakenStandardOrder.getType().toString(),
krakenStandardOrder.getOrderType().toApiFormat(),
krakenStandardOrder.getPrice(),
krakenStandardOrder.getSecondaryPrice(),
krakenStandardOrder.getVolume().toPlainString(),
krakenStandardOrder.getLeverage(),
krakenStandardOrder.getPositionTxId(),
delimitSet(krakenStandardOrder.getOrderFlags()),
krakenStandardOrder.getStartTime(),
krakenStandardOrder.getExpireTime(),
krakenStandardOrder.getUserRefId(),
krakenStandardOrder.getCloseOrder(),
krakenStandardOrder.getTradingAgreement(),
exchange.getExchangeSpecification().getApiKey(),
signatureCreator,
exchange.getNonceFactory());
} else { ...
maybe a poor fix works for the moment. ;-) i would be very thankful if you could include krakens trading agreement in the next release
Hello, I have the same issue. Any update on this ? Thanks :)
Hi, i try to open a market order or a stop-loss order on kraken but kraken api respond this error:
ExchangeException: [EOrder:Trading agreement required]
Placing a limit order or cancel orders works smoothly.
Kraken Suport Docs say: _You will need to submit your order with the following parameter: ‘tradingagreement’:’agree’ This will resolve the error message you are receiving when placing an order.
Can i set this agreement parameter in the order builder? I'm was not able to find it.
thank you. regards peter