npm i @maidenlane/nodejs
attribute | type |
---|---|
length | u16 |
type_id | u16 |
request_id | u64 |
attribute | type |
---|---|
header | Header |
request_id | u64 |
attribute | type |
---|---|
header | Header |
user_id | u64 |
quote_asset_id | u32 |
base_asset_id | u32 |
attribute | type |
---|---|
header | Header |
user_id | u64 |
attribute | type |
---|---|
header | Header |
user_id | u64 |
after_order_token | u64 |
attribute | type |
---|---|
header | Header |
user_id | u64 |
access_key | char[32] |
attribute | type |
---|---|
header | Header |
user_id | u64 |
quote_asset_id | u32 |
base_asset_id | u32 |
order_token | u64 |
replace_order_token | u64 |
quantity | u64 |
price | u64 |
is_buy | bool |
attribute | type |
---|---|
header | Header |
user_id | u64 |
order_token | u64 |
leaves_quantity | u64 |
- OrderResting
- OrderDone
- OrderRejected
- OrderDetails
- TradeSessionOpened
- MarketReady
- NextOrderToken
- CurrentBalance
- Error
- OrderAccepted
- OrderModified
- SessionDetails
- Match
- MarketStateDetails
- Header
- DepositApplied
- TradeSessionClosed
- UpdateTradingLimitResult
- Pong
- WithdrawResult
attribute | type |
---|---|
header | Header |
user_id | u64 |
quote_asset_id | u32 |
base_asset_id | u32 |
order_token | u64 |
quantity_removed | u64 |
quantity_resting | u64 |
price | u64 |
is_buy | bool |
attribute | type |
---|---|
header | Header |
user_id | u64 |
quote_asset_id | u32 |
base_asset_id | u32 |
order_token | u64 |
quantity_removed | u64 |
price | u64 |
is_buy | bool |
reason | DoneReason |
attribute | type |
---|---|
header | Header |
user_id | u64 |
order_token | u64 |
reason | RejectReason |
is_buy | bool |
attribute | type |
---|---|
header | Header |
user_id | u64 |
quote_asset_id | u32 |
base_asset_id | u32 |
order_token | u64 |
older_order_token | u64 |
price | u64 |
quantity | u64 |
original_quantity | u64 |
is_buy | bool |
attribute | type |
---|---|
header | Header |
user_id | u64 |
attribute | type |
---|---|
header | Header |
user_id | u64 |
quote_asset_id | u32 |
base_asset_id | u32 |
attribute | type |
---|---|
header | Header |
user_id | u64 |
next_order_token | u64 |
used_tokens | u64 |
attribute | type |
---|---|
header | Header |
user_id | u64 |
asset_id | u32 |
balance | u64 |
hold | u64 |
attribute | type |
---|---|
header | Header |
request_id | u64 |
code | ErrorCode |
attribute | type |
---|---|
header | Header |
user_id | u64 |
quote_asset_id | u32 |
base_asset_id | u32 |
order_token | u64 |
existing_order_token | u64 |
is_buy | bool |
quantity | u64 |
price | u64 |
attribute | type |
---|---|
header | Header |
user_id | u64 |
quote_asset_id | u32 |
base_asset_id | u32 |
order_token | u64 |
quantity_removed | u64 |
quantity_remaining | u64 |
price | u64 |
is_buy | bool |
attribute | type |
---|---|
header | Header |
user_id | u64 |
session_tag | u32 |
order_count | u32 |
unlock_at | u64 |
attribute | type |
---|---|
header | Header |
user_id | u64 |
quote_asset_id | u32 |
base_asset_id | u32 |
order_token | u64 |
quantity | u64 |
price | u64 |
cost | u64 |
sequence | u64 |
fees | u64 |
limit_version | u64 |
is_maker | bool |
is_buy | bool |
attribute | type |
---|---|
header | Header |
user_id | u64 |
quote_asset_id | u32 |
base_asset_id | u32 |
fee_limit | u64 |
limit_version | u64 |
quote_qty | i64 |
base_qty | i64 |
quote_market_hold | u64 |
base_market_hold | u64 |
min_quote_qty | i64 |
min_base_qty | i64 |
long_max_price | u64 |
short_min_price | u64 |
quote_shift_qty_major | i32 |
quote_shift_qty_minor | u64 |
base_shift_qty_major | i32 |
base_shift_qty_minor | u64 |
attribute | type |
---|---|
length | u16 |
type_id | u16 |
timestamp | u64 |
attribute | type |
---|---|
header | Header |
user_id | u64 |
asset_id | u32 |
current_balance | u64 |
attribute | type |
---|---|
header | Header |
user_id | u64 |
attribute | type |
---|---|
header | Header |
user_id | u64 |
quote_asset_id | u32 |
base_asset_id | u32 |
limit_version | u64 |
success | bool |
attribute | type |
---|---|
header | Header |
request_id | u64 |
attribute | type |
---|---|
header | Header |
user_id | u64 |
asset_id | u32 |
quantity | u64 |
success | bool |
Data type: u8
name | value |
---|---|
INSUFFICIENT_FUNDS | 1 |
INVALID_QUANTITY | 2 |
TRADING_LIMIT | 3 |
NOT_A_REASON | 4 |
OUT_OF_MEMORY | 5 |
UNLOCKED | 6 |
Data type: u8
name | value |
---|---|
FILLED | 1 |
CANCELED | 2 |
ERROR | 3 |
NO_LONGER_VALID | 4 |
REPLACED | 5 |
CANNOT_ADD | 6 |
Data type: u32
name | value |
---|---|
UNKNOWN_COMMAND_TYPE | 1 |
OUT_OF_MEMORY | 2 |
INTERNAL_ERROR | 899999 |
SESSION_DOES_NOT_EXIST | 900005 |
BAD_ACCESS_KEY | 900004 |
ASSET_NOT_PREPARED | 900001 |
INVALID_REQUEST | 900000 |
FEED_DROPPED | 900003 |
AT_CAPACITY | 900002 |