public class Order extends ObjectWithSignature implements ApiJson
Modifier and Type | Class and Description |
---|---|
static class |
Order.Status |
static class |
Order.Type |
signature
Constructor and Description |
---|
Order(Order.Type orderType,
AssetPair assetPair,
long amount,
long price,
long timestamp,
long expiration,
long matcherFee,
PrivateKeyAccount senderPublicKey,
PublicKeyAccount matcherKey) |
Order(Order.Type orderType,
AssetPair assetPair,
long amount,
long price,
long timestamp,
long expiration,
long matcherFee,
PublicKeyAccount senderPublicKey,
PublicKeyAccount matcherKey,
ByteString signature) |
Order(String id,
Order.Type orderType,
AssetPair assetPair,
long amount,
long price,
long timestamp,
long filled,
Order.Status status,
long expiration,
long matcherFee,
PublicKeyAccount senderPublicKey,
PublicKeyAccount matcherKey,
ByteString signature) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
long |
getAmount() |
AssetPair |
getAssetPair() |
byte[] |
getBytes() |
long |
getExpiration() |
long |
getFilled() |
ByteString |
getId() |
long |
getMatcherFee() |
PublicKeyAccount |
getMatcherPublicKey() |
Order.Type |
getOrderType() |
long |
getPrice() |
PublicKeyAccount |
getSenderPublicKey() |
Order.Status |
getStatus() |
long |
getTimestamp() |
int |
hashCode() |
boolean |
isActive() |
getSignature, verifySignature
public Order(Order.Type orderType, AssetPair assetPair, long amount, long price, long timestamp, long expiration, long matcherFee, PrivateKeyAccount senderPublicKey, PublicKeyAccount matcherKey)
public Order(Order.Type orderType, AssetPair assetPair, long amount, long price, long timestamp, long expiration, long matcherFee, PublicKeyAccount senderPublicKey, PublicKeyAccount matcherKey, ByteString signature)
public Order(String id, Order.Type orderType, AssetPair assetPair, long amount, long price, long timestamp, long filled, Order.Status status, long expiration, long matcherFee, PublicKeyAccount senderPublicKey, PublicKeyAccount matcherKey, ByteString signature)
public ByteString getId()
public Order.Type getOrderType()
public long getAmount()
public long getPrice()
public long getFilled()
public long getTimestamp()
public Order.Status getStatus()
public AssetPair getAssetPair()
public long getExpiration()
public long getMatcherFee()
public PublicKeyAccount getSenderPublicKey()
getSenderPublicKey
in interface Signable
public PublicKeyAccount getMatcherPublicKey()
public boolean isActive()
Copyright © 2019. All rights reserved.