Download OpenAPI specification:Download
{- "symbol": "string",
- "marketId": "string",
- "marketDisplayName": "string",
- "denom": "string",
- "priceDenom": "string",
- "orderId": "string",
- "quantity": "string",
- "price": "string",
- "direction": "UNKNOWN_DIRECTION",
- "orderType": "UNKNOWN_ORDER_TYPE",
- "clientOrderId": "string",
- "remainingQuantity": "string",
- "filledQuantity": "string",
- "state": "UNKNOWN_ORDER_STATE",
- "created": "2019-08-24T14:15:22Z",
- "expiration": "2019-08-24T14:15:22Z",
- "feeTotal": "string",
- "executionType": "ALLOW_TAKER",
- "failureReason": "string",
- "stopPrice": "string",
- "timeInForce": "DAY",
- "cashOrderQty": "string",
- "totalFilledValue": "string",
- "maxFeeTotal": 0,
- "feeBasisPoints": 0
}Restricted to YLDS stablecoin markets only. Please use the low-latency trading endpoint for other markets.
| symbol required | string Market id |
| quantity | number > 0 A quantity must be provided for non market orders |
| direction required | string (Direction) Enum: "UNKNOWN_DIRECTION" "ASK" "BID" |
| orderType required | string (OrderType) Enum: "UNKNOWN_ORDER_TYPE" "LIMIT" "STOP_LIMIT" "MARKET" |
| price | number > 0 |
| stopPrice | number |
| clientOrderId required | string <uuid> |
| expiration | string <date-time> |
| executionType | string (OrderExecutionType) Enum: "ALLOW_TAKER" "MAKER_ONLY" |
| timeInForce | string (TimeInForce) Enum: "DAY" "IMMEDIATE_OR_CANCEL" "GOOD_TILL_TIME" "GOOD_TILL_CANCEL" "FILL_OR_KILL" "TIME_IN_FORCE_GOOD_TILL_CANCEL" "TIME_IN_FORCE_FILL_OR_KILL" Use 'GOOD_TILL_CANCEL' and 'FILL_OR_KILL' instead of 'TIME_IN_FORCE_GOOD_TILL_CANCEL' and 'TIME_IN_FORCE_FILL_OR_KILL' |
| cashOrderQty | number > 0 Total value of a market order |
| shortSell required | boolean |
{- "quantity": 0,
- "direction": "UNKNOWN_DIRECTION",
- "orderType": "UNKNOWN_ORDER_TYPE",
- "price": 0,
- "stopPrice": 0,
- "clientOrderId": "2af8d1c2-f2bf-4061-b3ad-acd950a272bb",
- "expiration": "2019-08-24T14:15:22Z",
- "executionType": "ALLOW_TAKER",
- "timeInForce": "DAY",
- "cashOrderQty": 0,
- "shortSell": true
}{- "symbol": "string",
- "marketId": "string",
- "marketDisplayName": "string",
- "denom": "string",
- "priceDenom": "string",
- "orderId": "string",
- "quantity": "string",
- "price": "string",
- "direction": "UNKNOWN_DIRECTION",
- "orderType": "UNKNOWN_ORDER_TYPE",
- "clientOrderId": "string",
- "remainingQuantity": "string",
- "filledQuantity": "string",
- "state": "UNKNOWN_ORDER_STATE",
- "created": "2019-08-24T14:15:22Z",
- "expiration": "2019-08-24T14:15:22Z",
- "feeTotal": "string",
- "executionType": "ALLOW_TAKER",
- "failureReason": "string",
- "stopPrice": "string",
- "timeInForce": "DAY",
- "cashOrderQty": "string",
- "totalFilledValue": "string",
- "maxFeeTotal": 0,
- "feeBasisPoints": 0
}| marketId required | string Market id |
| quantity | number > 0 A quantity must be provided for non market orders |
| direction required | string (Direction) Enum: "UNKNOWN_DIRECTION" "ASK" "BID" |
| orderType required | string (OrderType) Enum: "UNKNOWN_ORDER_TYPE" "LIMIT" "STOP_LIMIT" "MARKET" |
| price | number > 0 |
| stopPrice | number |
| clientOrderId required | string <uuid> |
| expiration | string <date-time> |
| executionType | string (OrderExecutionType) Enum: "ALLOW_TAKER" "MAKER_ONLY" |
| timeInForce | string (TimeInForce) Enum: "DAY" "IMMEDIATE_OR_CANCEL" "GOOD_TILL_TIME" "GOOD_TILL_CANCEL" "FILL_OR_KILL" "TIME_IN_FORCE_GOOD_TILL_CANCEL" "TIME_IN_FORCE_FILL_OR_KILL" Use 'GOOD_TILL_CANCEL' and 'FILL_OR_KILL' instead of 'TIME_IN_FORCE_GOOD_TILL_CANCEL' and 'TIME_IN_FORCE_FILL_OR_KILL' |
| cashOrderQty | number > 0 Total value of a market order |
| shortSell required | boolean |
| buyNowLimit | number When estimating for a buy now order, this should be the ACH/Debit limit. maxCashOrderQty will be based on this instead of current account balances. |
{- "quantity": 0,
- "direction": "UNKNOWN_DIRECTION",
- "orderType": "UNKNOWN_ORDER_TYPE",
- "price": 0,
- "stopPrice": 0,
- "clientOrderId": "2af8d1c2-f2bf-4061-b3ad-acd950a272bb",
- "expiration": "2019-08-24T14:15:22Z",
- "executionType": "ALLOW_TAKER",
- "timeInForce": "DAY",
- "cashOrderQty": 0,
- "shortSell": true,
- "buyNowLimit": 0
}{- "marketId": "string",
- "quantity": 0,
- "price": 0,
- "cashOrderQty": 0,
- "estimatedFee": 0,
- "basisPoints": 0,
- "makerBasisPoints": 0,
- "minCashOrderQty": 0,
- "maxCashOrderQty": 0
}| marketId | string (Market id) |
| baseAsset | string Base asset for all markets to cancel orders on |
{- "marketId": "string",
- "baseAsset": "string"
}[- {
- "symbol": "string",
- "marketId": "string",
- "marketDisplayName": "string",
- "denom": "string",
- "priceDenom": "string",
- "orderId": "string",
- "quantity": "string",
- "price": "string",
- "direction": "UNKNOWN_DIRECTION",
- "orderType": "UNKNOWN_ORDER_TYPE",
- "clientOrderId": "string",
- "remainingQuantity": "string",
- "filledQuantity": "string",
- "state": "UNKNOWN_ORDER_STATE",
- "created": "2019-08-24T14:15:22Z",
- "expiration": "2019-08-24T14:15:22Z",
- "feeTotal": "string",
- "executionType": "ALLOW_TAKER",
- "failureReason": "string",
- "stopPrice": "string",
- "timeInForce": "DAY",
- "cashOrderQty": "string",
- "totalFilledValue": "string",
- "maxFeeTotal": 0,
- "feeBasisPoints": 0
}
]| symbol | string Deprecated Market id |
| marketId | string |
| type | string (OrderType) Enum: "UNKNOWN_ORDER_TYPE" "LIMIT" "STOP_LIMIT" "MARKET" |
| direction | string (Direction) Enum: "UNKNOWN_DIRECTION" "ASK" "BID" |
| status | Array of strings (OrderState) Items Enum: "UNKNOWN_ORDER_STATE" "NEW" "PARTIALLY_FILLED" "FILLED" "CANCELED" "REPLACED" "REJECTED" "EXPIRED" "PENDING_NEW" "PENDING_REPLACE" "PENDING_CANCEL" "PENDING_RISK" |
| size | integer <int32> [ 1 .. 100 ] |
| token | string pagination token |
| baseAsset | string Search by markets with base asset |
| startTime | string <date-time> |
| endTime | string <date-time> |
{- "data": [
- {
- "symbol": "string",
- "marketId": "string",
- "marketDisplayName": "string",
- "denom": "string",
- "priceDenom": "string",
- "orderId": "string",
- "quantity": "string",
- "price": "string",
- "direction": "UNKNOWN_DIRECTION",
- "orderType": "UNKNOWN_ORDER_TYPE",
- "clientOrderId": "string",
- "remainingQuantity": "string",
- "filledQuantity": "string",
- "state": "UNKNOWN_ORDER_STATE",
- "created": "2019-08-24T14:15:22Z",
- "expiration": "2019-08-24T14:15:22Z",
- "feeTotal": "string",
- "executionType": "ALLOW_TAKER",
- "failureReason": "string",
- "stopPrice": "string",
- "timeInForce": "DAY",
- "cashOrderQty": "string",
- "totalFilledValue": "string",
- "maxFeeTotal": 0,
- "feeBasisPoints": 0
}
], - "nextPageToken": "string",
- "totalCount": 0
}{- "symbol": "string",
- "marketId": "string",
- "marketDisplayName": "string",
- "denom": "string",
- "priceDenom": "string",
- "orderId": "string",
- "quantity": "string",
- "price": "string",
- "direction": "UNKNOWN_DIRECTION",
- "orderType": "UNKNOWN_ORDER_TYPE",
- "clientOrderId": "string",
- "remainingQuantity": "string",
- "filledQuantity": "string",
- "state": "UNKNOWN_ORDER_STATE",
- "created": "2019-08-24T14:15:22Z",
- "expiration": "2019-08-24T14:15:22Z",
- "feeTotal": "string",
- "executionType": "ALLOW_TAKER",
- "failureReason": "string",
- "stopPrice": "string",
- "timeInForce": "DAY",
- "cashOrderQty": "string",
- "totalFilledValue": "string",
- "maxFeeTotal": 0,
- "feeBasisPoints": 0
}| orderId required | string |
| state | Array of strings (TradeState) Items Enum: "UNKNOWN_TRADE_STATE" "NEW" "CLEARED" "BUSTED" "INFLIGHT" "PENDING_RISK" "PENDING_CLEARED" "REJECTED" "CLEARING_ACKNOWLEDGED" "RETRY_REQUEST" |
| token | string pagination token |
| size | integer <int32> [ 1 .. 200 ] Default: 20 |
| sort | string (SortOrder) Enum: "ASC" "DESC" |
{- "data": [
- {
- "symbol": "string",
- "marketId": "string",
- "denom": "string",
- "id": "string",
- "price": 0,
- "quantity": 0,
- "created": "2019-08-24T14:15:22Z",
- "askFee": 0,
- "bidFee": 0,
- "state": "UNKNOWN_TRADE_STATE",
- "direction": "UNKNOWN_DIRECTION",
- "askId": "string",
- "bidId": "string",
- "type": "UNKNOWN_ORDER_TYPE",
- "settlementTxHash": "string"
}
], - "nextPageToken": "string",
- "totalCount": 0
}| symbol | string |
| direction | string (Direction) Enum: "UNKNOWN_DIRECTION" "ASK" "BID" |
| state | Array of strings (TradeState) Items Enum: "UNKNOWN_TRADE_STATE" "NEW" "CLEARED" "BUSTED" "INFLIGHT" "PENDING_RISK" "PENDING_CLEARED" "REJECTED" "CLEARING_ACKNOWLEDGED" "RETRY_REQUEST" |
| token | string pagination token |
| size | integer <int32> [ 1 .. 200 ] Default: 20 |
| sort | string (SortOrder) Enum: "ASC" "DESC" |
{- "data": [
- {
- "symbol": "string",
- "marketId": "string",
- "denom": "string",
- "id": "string",
- "price": 0,
- "quantity": 0,
- "created": "2019-08-24T14:15:22Z",
- "askFee": 0,
- "bidFee": 0,
- "state": "UNKNOWN_TRADE_STATE",
- "direction": "UNKNOWN_DIRECTION",
- "askId": "string",
- "bidId": "string",
- "type": "UNKNOWN_ORDER_TYPE"
}
], - "nextPageToken": "string",
- "totalCount": 0
}| id required | string <uuid> Client generated unique payment id |
| leveragePoolId required | string <uuid> |
| amount required | number |
{- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "leveragePoolId": "3229a80e-6400-4afe-a15e-c4b4652ff574",
- "amount": 0
}{- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "asset": "string",
- "leveragePoolId": "3229a80e-6400-4afe-a15e-c4b4652ff574",
- "amount": 0,
- "status": "PENDING"
}| id required | string <uuid> Client generated unique loan id |
| amount required | number > 0 |
| leveragePoolId required | string <uuid> |
| loanType required | string (LoanType) Default: "MARGIN" Enum: "MARGIN" "OFF_PLATFORM_MARGIN" Type of loan to create |
object (WithdrawRequest) Optional MPC withdraw request for off platform loan | |
object (FiatWithdrawRequest) Optional fiat withdraw request for off platform loan |
{- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "amount": 0,
- "leveragePoolId": "3229a80e-6400-4afe-a15e-c4b4652ff574",
- "loanType": "MARGIN",
- "withdrawRequest": {
- "amount": "string",
- "recipientAddress": "string",
- "currency": "string",
- "feeId": "9ed713df-fd25-4df4-998a-8235f4f7a0b3",
- "memo": "string",
- "uncommitOnly": true
}, - "fiatWithdrawRequest": {
- "amount": 0,
- "currency": "string",
- "paymentRail": "ACH",
- "destinationPlaidAccountId": "0013e9e5-eabe-40c3-a996-8a42afbb90ac"
}
}{- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "rate": {
- "amt": 0,
- "rate": 0,
- "periodIntAmt": 0,
- "periodRate": 0
}
}| actions | Array of strings (TransferAction) Items Enum: "DEPOSIT" "WITHDRAW" "INTEREST" "REFUND" "RETURN" "REWARD" "ISSUANCE" "RECEIVE_YLDS_PAYMENT" "P2P" "CBL_DISBURSEMENT" "CBL_PAYMENT" "REPAYMENT_TRANSFER" "MARGIN" "NMS_SEND" "NMS_RECEIVE" "SEND" "RECEIVE" "SEND_COLLATERAL" "RECEIVE_COLLATERAL" |
| status | Array of strings (TransferHistoryStatus) Items Enum: "PENDING" "TRANSFER_PENDING" "TRANSFER_AWAITING_EXECUTION" "TRANSFER_EXECUTED" "COMPLETE" "ERROR" "CANCELED" "INVITATION_ACCEPTANCE_PENDING" "PENDING_CANCELED" "UNKNOWN" "DECLINED" "REVIEW" |
| statusToExclude | Array of strings (TransferHistoryStatus) Items Enum: "PENDING" "TRANSFER_PENDING" "TRANSFER_AWAITING_EXECUTION" "TRANSFER_EXECUTED" "COMPLETE" "ERROR" "CANCELED" "INVITATION_ACCEPTANCE_PENDING" "PENDING_CANCELED" "UNKNOWN" "DECLINED" "REVIEW" |
| assets | Array of strings |
| page | integer <int32> |
| size | integer <int32> |
{- "data": [
- {
- "uuid": "095be615-a8ad-4c33-8e9c-c7612fbf6c9f",
- "action": "DEPOSIT",
- "recipientAddress": "string",
- "senderAddress": "string",
- "currency": "string",
- "denom": "string",
- "amount": "string",
- "transferDateTime": "2019-08-24T14:15:22Z",
- "transferUpdateDateTime": "2019-08-24T14:15:22Z",
- "status": "PENDING",
- "fee": "string",
- "groupProposalId": 0,
- "memo": "string",
- "toEmail": "string",
- "expiration": "2019-08-24T14:15:22Z",
- "fromEmail": "string",
- "fiatRail": "ACH",
- "clearingDate": "2019-08-24T14:15:22Z",
- "transactionHash": "string",
- "brokerage": {
- "brokerageName": "string",
- "dtcNumber": "string",
- "accountNumber": "string"
}
}
], - "pagination": {
- "page": 0,
- "size": 0,
- "totalPages": 0,
- "totalCount": 0
}
}| size | integer <int32> [ 1 .. 50 ] Default: 20 |
| page | integer <int32> >= 1 Default: 1 |
| period | string (PeriodSpan) Enum: "HOUR" "DAY" "WEEK" "MONTH" "YEAR" |
| leverage_pool_uuid required | string <uuid> |
{- "data": [
- {
- "startTime": "2019-08-24T14:15:22Z",
- "endTime": "2019-08-24T14:15:22Z",
- "leveragePoolId": "3229a80e-6400-4afe-a15e-c4b4652ff574",
- "currency": "string",
- "rolloverAmount": 0,
- "newLoanIncurred": 0,
- "fees": 0,
- "effectiveApr": 0,
- "payments": 0,
- "endingBalance": 0,
- "lenderInterest": 0,
- "marketFees": 0
}
], - "pagination": {
- "page": 0,
- "size": 0,
- "totalPages": 0,
- "totalCount": 0
}
}| leverage_pool_uuid required | string <uuid> |
{- "leveragePoolId": "3229a80e-6400-4afe-a15e-c4b4652ff574",
- "denomTypeCode": "string",
- "startDate": "2019-08-24T14:15:22Z",
- "interestRateRange": {
- "minRate": 0,
- "maxRate": 0
}, - "interestPaid": 0
}{- "data": [
- {
- "leveragePoolId": "3229a80e-6400-4afe-a15e-c4b4652ff574",
- "balance": 0,
- "currency": "string",
- "rateRange": {
- "minRate": 0,
- "maxRate": 0
}, - "totalValue": 0,
- "currentPeriodRate": 0,
- "currentPeriodFeeRate": 0,
- "currentPeriodLenderRate": 0,
- "principal": 0,
- "interest": 0,
- "fees": 0,
- "pendingPayments": 0
}
], - "ltv": 0,
- "status": "HEALTHY",
- "collateralValue": 0,
- "loansValue": 0
}| size | integer <int32> [ 1 .. 100 ] Default: 20 |
| page | integer <int32> >= 1 Default: 1 |
{- "data": [
- {
- "uuid": "095be615-a8ad-4c33-8e9c-c7612fbf6c9f",
- "liquidationDtm": "2019-08-24T14:15:22Z",
- "assets": [
- {
- "currency": "string",
- "quantity": 0,
- "fee": 0,
- "feeValue": 0,
- "price": 0,
- "totalValue": 0
}
]
}
], - "pagination": {
- "page": 0,
- "size": 0,
- "totalPages": 0,
- "totalCount": 0
}
}{- "totalValue": 0,
- "assets": [
- {
- "asset": "string",
- "totalBalance": 0,
- "displayBalance": 0,
- "exchangeBalance": 0,
- "tradingPower": 0,
- "loanBalance": 0,
- "offerBalance": 0,
- "smartContractLendingBalance": 0,
- "cblBalance": 0,
- "cblOwedBalance": 0,
- "uncommittedBalance": 0,
- "stakedBalance": 0,
- "rewardsBalance": 0,
- "unbondingBalance": 0,
- "stakableBalance": 0,
- "unvestedBalance": 0,
- "fiatLedgerBalance": 0,
- "exchangePrice": 0
}
], - "loans": [
- {
- "leveragePoolId": "3229a80e-6400-4afe-a15e-c4b4652ff574",
- "balance": 0,
- "asset": "string",
- "rateRange": {
- "minRate": 0,
- "maxRate": 0
}, - "currentPeriodRate": 0,
- "currentPeriodFeeRate": 0,
- "currentPeriodLenderRate": 0
}
], - "offers": [
- {
- "leveragePoolId": "3229a80e-6400-4afe-a15e-c4b4652ff574",
- "offerId": "42da58f8-9040-4cf5-98ce-bce9965cca0d",
- "balance": 0,
- "interestBalance": 0,
- "totalBalance": 0,
- "asset": "string",
- "rate": 1,
- "status": "PENDING",
- "createdAt": "2019-08-24T14:15:22Z"
}
], - "smartContractLendingBalances": [
- {
- "leveragePoolId": "3229a80e-6400-4afe-a15e-c4b4652ff574",
- "asset": "string",
- "balance": 0
}
], - "cryptoBackedLoans": [
- {
- "loanId": "7f89c4c5-c1d0-4b4b-ae8c-fb112b2c21a4",
- "loanNumber": "string",
- "asset": "string",
- "balance": 0,
- "collateralAsset": "string",
- "collateralBalance": 0,
- "interestRate": 1,
- "ltv": 1,
- "status": "string",
- "paymentAssets": [
- "string"
]
}
]
}Returns the most recent count days of historical portfolio balances for the account.The time range is determined by the most recent daily snapshot, or the current time if no snapshot is in range.
| period | string (Period between data points) Default: "P1D" In ISO 8601 duration format |
| count | integer Default: 7 The number of |
| includeCurrent | boolean (Include the current balance in addition to the historical balances) Default: true |
| endTime | string (The last time to retrieve) Defaults to now. Typically when set, |
{- "totalValue": 0,
- "totalValue24h": 0,
- "history": [
- {
- "timestamp": "2019-08-24T14:15:22Z",
- "totalValue": 0,
- "assets": [
- {
- "asset": "string",
- "totalBalance": 0,
- "displayBalance": 0,
- "exchangeBalance": 0,
- "tradingPower": 0,
- "loanBalance": 0,
- "offerBalance": 0,
- "smartContractLendingBalance": 0,
- "cblBalance": 0,
- "cblOwedBalance": 0,
- "uncommittedBalance": 0,
- "stakedBalance": 0,
- "rewardsBalance": 0,
- "unbondingBalance": 0,
- "stakableBalance": 0,
- "unvestedBalance": 0,
- "fiatLedgerBalance": 0,
- "exchangePrice": 0
}
]
}
], - "balances24h": {
- "timestamp": "2019-08-24T14:15:22Z",
- "totalValue": 0,
- "assets": [
- {
- "asset": "string",
- "totalBalance": 0,
- "displayBalance": 0,
- "exchangeBalance": 0,
- "tradingPower": 0,
- "loanBalance": 0,
- "offerBalance": 0,
- "smartContractLendingBalance": 0,
- "cblBalance": 0,
- "cblOwedBalance": 0,
- "uncommittedBalance": 0,
- "stakedBalance": 0,
- "rewardsBalance": 0,
- "unbondingBalance": 0,
- "stakableBalance": 0,
- "unvestedBalance": 0,
- "fiatLedgerBalance": 0,
- "exchangePrice": 0
}
]
}
}