Secura API
The Secura REST API provides public market data and authenticated account operations under /v1. API base URL: https://api.secura.finance.
Protected requests accept a Bearer JWT or a signed API key. See API Keys for signing instructions. The Access column shows which endpoints require authentication.
| Group | Method | Path | Access |
|---|---|---|---|
| assets | GET | /v1/assets | Public |
| assets | GET | /v1/assets/{symbol} | Public |
| assets | GET | /v1/assets/{symbol}/history | Public |
| assets | GET | /v1/assets/{symbol}/bars | Public |
| assets | POST | /v1/assets/history/batch | Public |
| assets | POST | /v1/assets/favorites | Authentication |
| assets | GET | /v1/assets/favorites/for-user | Authentication |
| assets | GET | /v1/assets/percentage/for-user | Authentication |
| auth | GET | /v1/auth/siwe/nonce | Public |
| auth | POST | /v1/auth/siwe/verify | Public |
| explorer | GET | /v1/explorer/transactions | Public |
| explorer | GET | /v1/explorer/blocks | Public |
| explorer | GET | /v1/explorer/blocks/by-number | Public |
| explorer | GET | /v1/explorer/transactions/by-hash | Public |
| fees | GET | /v1/fees | Public |
| operations | GET | /v1/operations/for-user | Authentication |
| orders | GET | /v1/orders/for-user | Authentication |
| orders | POST | /v1/orders/market/buy | Authentication |
| orders | POST | /v1/orders/market/sell | Authentication |
| orders | POST | /v1/orders/limit/buy | Authentication |
| orders | POST | /v1/orders/limit/sell | Authentication |
| orders | POST | /v1/orders/cancel | Authentication |
| orders | GET | /v1/orders/available-stablecoins/for-user | Authentication |
| orders | GET | /v1/orders/available-tokens-by-symbol/for-user | Authentication |
| orders | POST | /v1/orders/available-tokens-by-symbol/for-user/batch | Authentication |
| perpetual | GET | /v1/perpetual/assets | Public |
| perpetual | GET | /v1/perpetual/assets/{symbol} | Public |
| perpetual | POST | /v1/perpetual/favorites | Authentication |
| perpetual | GET | /v1/perpetual/favorites/for-user | Authentication |
| perpetual | GET | /v1/perpetual/pools/statistics | Authentication |
| perpetual | GET | /v1/perpetual/leaderboard | Authentication |
| perpetual | POST | /v1/perpetual/positions/open | Authentication |
| perpetual | POST | /v1/perpetual/positions/close/by-user | Authentication |
| perpetual | POST | /v1/perpetual/positions/tpsl | Authentication |
| perpetual | POST | /v1/perpetual/limit-orders | Authentication |
| perpetual | POST | /v1/perpetual/limit-orders/update/by-user | Authentication |
| perpetual | POST | /v1/perpetual/limit-orders/cancel/by-user | Authentication |
| perpetual | GET | /v1/perpetual/limit-orders/for-user | Authentication |
| perpetual | GET | /v1/perpetual/positions/for-user | Authentication |
| perpetual | GET | /v1/perpetual/trades/for-user | Authentication |
| points | GET | /v1/points/points-info | Public |
| points | GET | /v1/points/scoreboard | Public |
| promo | GET | /v1/promo/my-promo-buy-assets | Authentication |
| promo | GET | /v1/promo/my-promo-staking | Authentication |
| promo | GET | /v1/promo/my-promo-hold-balance | Authentication |
| referral | POST | /v1/referral/create-referral-code | Authentication |
| referral | GET | /v1/referral/referral-code-by-wallet | Public |
| referral | GET | /v1/referral/referrals-by-wallet | Public |
| staking-pool | GET | /v1/staking-pool/apr | Public |
| staking-pool | GET | /v1/staking-pool/dashboard | Public |
| staking-pool | GET | /v1/staking-pool/for-user | Public |
| staking-pool | GET | /v1/staking-pool/by-symbol | Authentication |
| staking-pool | GET | /v1/staking-pool/my-positions | Authentication |
| staking-pool | GET | /v1/staking-pool/staked-totals/my | Authentication |
| staking-pool | POST | /v1/staking-pool/deposit | Authentication |
| staking-pool | POST | /v1/staking-pool/withdraw | Authentication |
| statistics | GET | /v1/statistics/registrations-count | Public |
| statistics | GET | /v1/statistics/for-user | Authentication |
| statistics | GET | /v1/statistics/balance-dashboard/for-user | Authentication |
| thresholds | GET | /v1/thresholds | Public |
| user | GET | /v1/user/information/my | Authentication |
| user | POST | /v1/user/api-key/generate | Authentication |
| user | POST | /v1/user/api-key/revoke-by-user | Authentication |
| user | GET | /v1/user/api-keys/my | Authentication |
| withdraw-requests | GET | /v1/withdraw-requests/my | Authentication |
| withdraw-requests | POST | /v1/withdraw-requests | Authentication |
assets
GET /v1/assets
List assets
- Access: Public
- Parameters:
AssetType? type = null, int offset = 0, int limit = 50 - Response:
Task<IList<AssetResponse>>
GET /v1/assets/{symbol}
Get an asset by symbol
- Access: Public
- Parameters:
string symbol, AssetType? type = null - Response:
Task<AssetResponse?>
GET /v1/assets/{symbol}/history
Get asset price history
- Access: Public
- Parameters:
string symbol, PriceHistoryTimeRange? timeRange, AssetType? type = null - Response:
Task<AssetPriceHistoryResponse>
GET /v1/assets/{symbol}/bars
Get OHLC bars for a chart
- Access: Public
- Parameters:
string symbol, string? resolution, long from, long to, int countBack - Response:
Task<AssetBarsResponse>
POST /v1/assets/history/batch
Get price history for several assets
- Access: Public
- Parameters:
GetAssetsPriceHistoryBatchQuery request - Response:
Task<AssetsPriceHistoryBatchResponse>
POST /v1/assets/favorites
Add or remove a favorite asset
- Access: Authentication
- Parameters:
SetFavoriteAssetCommand request - Response:
Task
GET /v1/assets/favorites/for-user
Get favorite assets for the current user
- Access: Authentication
- Parameters:
none - Response:
Task<IList<AssetResponse>>
GET /v1/assets/percentage/for-user
Get the current user's asset allocation by category
- Access: Authentication
- Parameters:
none - Response:
Task<AssetsPercentageStatisticDto>
auth
GET /v1/auth/siwe/nonce
Get a nonce for SIWE authentication
- Access: Public
- Parameters:
string walletAddress - Response:
Task<SiweNonceResponse>
POST /v1/auth/siwe/verify
Verify a signed SIWE message and issue a JWT
- Access: Public
- Parameters:
VerifySiweSignatureRequest signatureRequest - Response:
Task<AuthResponse>
explorer
GET /v1/explorer/transactions
List explorer transactions
- Access: Public
- Parameters:
GetExplorerTransactionsQuery request - Response:
Task<ExplorerTransactionsResponse>
GET /v1/explorer/blocks
List explorer blocks
- Access: Public
- Parameters:
GetExplorerBlocksQuery request - Response:
Task<ExplorerBlocksResponse>
GET /v1/explorer/blocks/by-number
Get a block by number
- Access: Public
- Parameters:
long blockNumber - Response:
Task<ExplorerBlockDetailsDto>
GET /v1/explorer/transactions/by-hash
Get a transaction by hash
- Access: Public
- Parameters:
string hash - Response:
Task<ExplorerTransactionDto>
fees
GET /v1/fees
Calculate the fee for an operation
- Access: Public
- Parameters:
CalculateFeeQuery query - Response:
Task<decimal>
operations
GET /v1/operations/for-user
List the current user's operations
- Access: Authentication
- Parameters:
GetForUserOperationsQuery query - Response:
Task<UserAllOperationsResponse>
orders
GET /v1/orders/for-user
List the current user's orders
- Access: Authentication
- Parameters:
GetForUserOrdersQuery query - Response:
Task<OrdersResponse>
POST /v1/orders/market/buy
Place a market buy order
- Access: Authentication
- Parameters:
CreateMarketBuyOrderCommand command - Response:
Task<Guid>
POST /v1/orders/market/sell
Place a market sell order
- Access: Authentication
- Parameters:
CreateMarketSellOrderCommand command - Response:
Task<Guid>
POST /v1/orders/limit/buy
Place a limit buy order
- Access: Authentication
- Parameters:
CreateLimitBuyOrderCommand command - Response:
Task<Guid>
POST /v1/orders/limit/sell
Place a limit sell order
- Access: Authentication
- Parameters:
CreateLimitSellOrderCommand command - Response:
Task<Guid>
POST /v1/orders/cancel
Cancel a limit order
- Access: Authentication
- Parameters:
CancelLimitOrderCommand command - Response:
Task<DateTime>
GET /v1/orders/available-stablecoins/for-user
Get available stablecoins
- Access: Authentication
- Parameters:
none - Response:
Task<AvailableStablecoinsResponse>
GET /v1/orders/available-tokens-by-symbol/for-user
Get available tokens by symbol
- Access: Authentication
- Parameters:
GetForUserAvailableTokensBySymbolQuery query - Response:
Task<AvailableTokensBySymbolResponse>
POST /v1/orders/available-tokens-by-symbol/for-user/batch
Get available tokens for several symbols
- Access: Authentication
- Parameters:
GetForUserAvailableTokensBySymbolsBatchQuery request - Response:
Task<AvailableTokensBySymbolsBatchResponse>
perpetual
GET /v1/perpetual/assets
List perpetual markets
- Access: Public
- Parameters:
GetPerpetualAssetsQuery request - Response:
Task<PerpetualAssetsResponse>
GET /v1/perpetual/assets/{symbol}
Get a perpetual market by symbol
- Access: Public
- Parameters:
string symbol - Response:
Task<PerpetualAssetDto?>
POST /v1/perpetual/favorites
Add or remove a favorite perpetual market
- Access: Authentication
- Parameters:
SetFavoritePerpetualAssetCommand request - Response:
Task
GET /v1/perpetual/favorites/for-user
Get favorite perpetual markets
- Access: Authentication
- Parameters:
none - Response:
Task<PerpetualAssetsResponse>
GET /v1/perpetual/pools/statistics
Get perpetual pool statistics
- Access: Authentication
- Parameters:
GetPerpetualPoolStatisticsQuery request - Response:
Task<PerpetualPoolStatisticsResponse>
GET /v1/perpetual/leaderboard
Get the perpetual trader leaderboard
- Access: Authentication
- Parameters:
GetPerpetualLeaderboardQuery request - Response:
Task<PerpetualLeaderboardResponse>
POST /v1/perpetual/positions/open
Open a leveraged perpetual position
- Access: Authentication
- Parameters:
OpenPerpetualPositionCommand request - Response:
Task<PerpetualOperationResponse>
POST /v1/perpetual/positions/close/by-user
Close all or part of a perpetual position
- Access: Authentication
- Parameters:
ClosePerpetualPositionByUserCommand request - Response:
Task<PerpetualOperationResponse>
POST /v1/perpetual/positions/tpsl
Set, change or remove take profit and stop loss
- Access: Authentication
- Parameters:
SetPerpetualPositionTpSlCommand request - Response:
Task<PerpetualTpSlPricesResponse>
POST /v1/perpetual/limit-orders
Place a perpetual limit order
- Access: Authentication
- Parameters:
CreatePerpetualLimitOrderCommand request - Response:
Task<Guid>
POST /v1/perpetual/limit-orders/update/by-user
Update an active perpetual limit order
- Access: Authentication
- Parameters:
UpdatePerpetualLimitOrderByUserCommand request - Response:
Task<PerpetualLimitOrderDto>
POST /v1/perpetual/limit-orders/cancel/by-user
Cancel a perpetual limit order
- Access: Authentication
- Parameters:
CancelPerpetualLimitOrderByUserCommand request - Response:
Task
GET /v1/perpetual/limit-orders/for-user
List the current user's perpetual limit orders
- Access: Authentication
- Parameters:
GetForUserPerpetualLimitOrdersQuery request - Response:
Task<PerpetualLimitOrdersResponse>
GET /v1/perpetual/positions/for-user
List the current user's perpetual positions
- Access: Authentication
- Parameters:
GetForUserPerpetualPositionsQuery request - Response:
Task<PerpetualPositionsResponse>
GET /v1/perpetual/trades/for-user
List the current user's perpetual trades
- Access: Authentication
- Parameters:
GetForUserPerpetualTradesQuery request - Response:
Task<PerpetualTradesResponse>
points
GET /v1/points/points-info
Get wallet points and history
- Access: Public
- Parameters:
string walletAddress, int offset = 0, int limit = 50 - Response:
Task<PointsInfoResponse?>
GET /v1/points/scoreboard
Get the points leaderboard
- Access: Public
- Parameters:
int limit = 50 - Response:
Task<ScoreboardInfoResponse>
promo
GET /v1/promo/my-promo-buy-assets
Get the current user's asset purchase promotions
- Access: Authentication
- Parameters:
none - Response:
Task<IList<MyPromoBuyAssetResponse>>
GET /v1/promo/my-promo-staking
Get the current user's staking promotions
- Access: Authentication
- Parameters:
none - Response:
Task<IList<MyPromoStakingResponse>>
GET /v1/promo/my-promo-hold-balance
Get the current user's minimum balance promotions
- Access: Authentication
- Parameters:
PromoFilter filter = PromoFilter.Active - Response:
Task<IList<MyPromoHoldBalanceResponse>>
referral
POST /v1/referral/create-referral-code
Create a referral code
- Access: Authentication
- Parameters:
string referralCode - Response:
Task<string>
GET /v1/referral/referral-code-by-wallet
Get a referral code by wallet address
- Access: Public
- Parameters:
string walletAddress - Response:
Task<string?>
GET /v1/referral/referrals-by-wallet
Get referrals by wallet address
- Access: Public
- Parameters:
string walletAddress - Response:
Task<ReferralsByWalletInfoResponse>
staking-pool
GET /v1/staking-pool/apr
Get a staking pool's annual percentage rate
- Access: Public
- Parameters:
Guid poolId - Response:
Task<AprResponse>
GET /v1/staking-pool/dashboard
Get staking pool price history
- Access: Public
- Parameters:
GetStakingDashboardQuery query - Response:
Task<IList<StakingPricePointResponse>>
GET /v1/staking-pool/for-user
List active staking pools
- Access: Public
- Parameters:
int offset = 0, int limit = 50 - Response:
Task<IList<StakingPoolResponse>>
GET /v1/staking-pool/by-symbol
Get a staking pool by asset symbol
- Access: Authentication
- Parameters:
string symbol - Response:
Task<StakingPoolResponse>
GET /v1/staking-pool/my-positions
Get the current user's staking positions
- Access: Authentication
- Parameters:
Guid? poolId = null - Response:
Task<IList<UserStakingPositionResponse>>
GET /v1/staking-pool/staked-totals/my
Get the current user's staked totals
- Access: Authentication
- Parameters:
none - Response:
Task<IList<StakedAssetTotalResponse>>
POST /v1/staking-pool/deposit
Deposit into a staking pool
- Access: Authentication
- Parameters:
DepositToStakingPoolCommand command - Response:
Task
POST /v1/staking-pool/withdraw
Withdraw from a staking pool
- Access: Authentication
- Parameters:
WithdrawFromStakingPoolCommand command - Response:
Task
statistics
GET /v1/statistics/registrations-count
Get the registered user count
- Access: Public
- Parameters:
none - Response:
Task<long>
GET /v1/statistics/for-user
Get the current user's statistics
- Access: Authentication
- Parameters:
none - Response:
Task<UserStatisticsDto>
GET /v1/statistics/balance-dashboard/for-user
Get the current user's balance dashboard
- Access: Authentication
- Parameters:
GetForUserBalanceDashboardQuery query - Response:
Task<IReadOnlyList<BalanceDashboardPointDto>>
thresholds
GET /v1/thresholds
Get a threshold for an operation
- Access: Public
- Parameters:
ThresholdType thresholdType - Response:
Task<GetThresholdResponse>
user
GET /v1/user/information/my
Get current user information
- Access: Authentication
- Parameters:
none - Response:
Task<GetMyInformationResponse>
POST /v1/user/api-key/generate
Generate a user API key
- Access: Authentication
- Parameters:
GenerateApiKeyCommand command - Response:
Task<GenerateApiKeyResponse>
POST /v1/user/api-key/revoke-by-user
Revoke the current user's API key
- Access: Authentication
- Parameters:
RevokeApiKeyByUserCommand byUserCommand - Response:
Task
GET /v1/user/api-keys/my
List the current user's API keys
- Access: Authentication
- Parameters:
none - Response:
Task<IList<ApiKeyDto>>
withdraw-requests
GET /v1/withdraw-requests/my
List the current user's withdrawal requests
- Access: Authentication
- Parameters:
none - Response:
Task<MyWithdrawRequestsResponse>
POST /v1/withdraw-requests
Create a withdrawal request
- Access: Authentication
- Parameters:
CreateWithdrawRequestCommand command - Response:
Task