Download OpenAPI specification:
Welcome to the Stoxlify API Technical Documentation.
This documentation/reference includes all the details regarding the API endpoints and webhooks that will allow you to integrate Stoxlify's financial services into your own applications, systems, and platforms.
We strongly suggest that you read through the General Guidelines section to familiarize yourself with the overall structure and behavior of the Stoxlify APIs.
The API endpoints are grouped according to the product and are ordered based on the usual call sequence for easier reference. Each product, endpoint, and parameter will have a description to define the purpose of each element.
Disclaimer: We will continually update and enhance this page and its contents whenever necessary.
To know more about how to get started and the end-to-end onboarding process, you may refer to https://stoxlify.com/get-started
For any questions/inquiries, you may refer to our FAQs (https://stoxlify.com/faq) or reach out to the Stoxlify's Team via the Contact Us Form found in various pages of https://stoxlify.com/ and select “Request for integration support for Sandbox and UAT development” in the the “How can we help you?” dropdown.
There are 2 environments where you could use our APIs for specific purposes.
The API requires bearer token authentication using the Authorization header. To authenticate, include an Authorization header in your requests with the value Bearer YOUR_ACCESS_TOKEN.
To obtain an API credentials, please contact the administrator.
Edit User Account endpoint will allows authenticated user to edit their own informations.
| name | string Name represents user's name. |
string Email represents user's email. | |
| image | string Image represents URL of the user's image. |
| country_code | string CountryCode represents country code user's in phone number. |
| phone | string Phone represents user's phone number. |
{- "name": "string",
- "email": "string",
- "image": "string",
- "country_code": "string",
- "phone": "string"
}This endpoint retrieves a list of all broker credentials stored in the system. It provides relevant information for each set of credentials. This allows users to manage and view their linked broker accounts.
| page | string <int64> Page determines number of page. |
| limit | string <int64> Limit determines maximum number of returned data. |
| broker | string Default: "UnknownBroker" Enum: "UnknownBroker" "Binance" "Tokocrypto" "OKX" "Coinbase" "Cexio" Broker represents credential's provider. |
This endpoint allows users to remove an existing broker credential from the system. Once removed, the system will no longer be able to authenticate or make requests on behalf of the broker associated with the deleted credentials.
| client_id | string ClientName represents api key of client credential. |
This endpoint allows users to securely add new broker credentials to the system. These credentials can be used to authenticate and authorize requests made on behalf of the broker during trading or data retrieval operations.
| label | string ClientName represents name of client credential. |
| client_id | string ClientName represents api key of client credential. |
| client_secret | string ClientName represents api secret of client credential. |
| broker | string (brokerBrokerOpt) Default: "UnknownBroker" Enum: "UnknownBroker" "Binance" "Tokocrypto" "OKX" "Coinbase" "Cexio" |
{- "label": "string",
- "client_id": "string",
- "client_secret": "string",
- "broker": "UnknownBroker"
}Contact Us enable customer to reach out to team for support their needs
| name | string Name represents customer's name. |
string Email represents customer's email. | |
| message | string (Message represet's customer's message) |
{- "name": "string",
- "email": "string",
- "message": "string"
}This endpoint returns real-time stock quotes, historical data, and technical indicators for any publicly traded company.
| ticker | string (Ticker represents the particular product code.
ex: BBCA, BMRI) |
| range | string Range represents the term count. |
| interval | string Interval represents the time period between terms. |
| indicator | string Indicator represents a trend or fact that indicates the state or level of price. |
| source | string (marketSource) Default: "UnknwonSource" Enum: "UnknwonSource" "YFinance" "Binance" |
{- "ticker": "string",
- "range": "string",
- "interval": "string",
- "indicator": "string",
- "source": "UnknwonSource"
}This endpoint returns the current stock monitoring status for a particular market or group of products. You can specify the market(s) you want to get the status for, as well as the frequency at which you want to check their stock status.
object List represent mapped list of a latest monitoring status of a ticker. |
{- "list": {
- "property1": {
- "monitor": [
- {
- "id": "string",
- "price": 0.1,
- "compare": "MoreThan",
- "alert_status": "Pending"
}
]
}, - "property2": {
- "monitor": [
- {
- "id": "string",
- "price": 0.1,
- "compare": "MoreThan",
- "alert_status": "Pending"
}
]
}
}
}This endpoint used for full-text searching available ticker from the market information provider.
| query | string Query represents the symbol or keyword to search for. |
| source | string Default: "UnknwonSource" Enum: "UnknwonSource" "YFinance" "Binance" Source represents the data source of the symbol or keyword to search for. |
This endpoint used to save custom made trading model.
| label | string Name is the user identifier of a model. |
| description | string Description is detailed brief of the model. |
| overlay | boolean Overlay determines indicator is overlaying candlestick price. |
object (scriptScript) |
{- "label": "string",
- "description": "string",
- "overlay": true,
- "script": {
- "script_id": "string",
- "language": "UknownLanguage",
- "content": "string",
- "packages": "string"
}
}This endpoint retrieves a list of all trading models that are currently deployed and active within the system. This helps users monitor their deployed algorithms in real time.
| page | string <int64> Page determines number of page. |
| limit | string <int64> Limit determines maximum number of returned data. |
| ticker | string Ticker represents the particular product code. ex: BTCUSDT, ETHUSDT |
| source | string Default: "UnknwonSource" Enum: "UnknwonSource" "YFinance" "Binance" Source is a data provider used for price data. |
Submit to this endpoint to deploy trading model using custom trading strategy.
| model_id | string ModelId represents identifier of model used for deployment. |
| credential_id | string CredentialId is Client Id used from connected broker. |
| timing | string (modelTradeTiming) Default: "OnTime" Enum: "OnTime" "Late" |
{- "model_id": "string",
- "credential_id": "string",
- "timing": "OnTime"
}This endpoint allows users to update the deployment status of an active trading model. Users can pause, resume, or stop the deployment of a model, giving them control over the trading model's lifecycle. This is useful for managing models based on performance or market conditions.
| task_id | string TaskId represents identifier of a deployed model. |
| status | string (modelTaskStatus) Default: "UnknownStatus" Enum: "UnknownStatus" "Paused" "OpenPosition" "NoPosition" "TaskPending" "TaskDone" "TaskCanceled" |
{- "task_id": "string",
- "status": "UnknownStatus"
}This endpoint allows users to remove or undeploy a trading model that is currently deployed. Once removed, the model will no longer be active or participate in live trading. This is useful for stopping or retiring models that are no longer needed or performing as expected.
| task_id required | string TaskId represents identifier of a deployed model. |
This endpoint used to compile user custom made made trading model.
| model_id | string ModelId is the identifier of a model. |
object (scriptScript) | |
| ticker | string (Ticker represents the particular product code.
ex: BTCUSDT, ETHUSDT) |
| range | string Range represents the term count. |
| interval | string Interval represents the time period between terms. |
| source | string (marketSource) Default: "UnknwonSource" Enum: "UnknwonSource" "YFinance" "Binance" |
{- "model_id": "string",
- "script": {
- "script_id": "string",
- "language": "UknownLanguage",
- "content": "string",
- "packages": "string"
}, - "ticker": "string",
- "range": "string",
- "interval": "string",
- "source": "UnknwonSource"
}Get Products provide informations about products
| categories | Array of strings Categories represents list of name of the product's category. |
| product_ids | Array of strings ProductIds represents list of product's unique identifier. |
| category_ids | Array of strings CategoryIds represents list of product category's unique identifier. |
| name | string Name represents product unique name for full text search. |
| page | string <int64> Page determines number of page. |
| limit | string <int64> Limit determines maximum number of returned data. |
Create Products facilitates to create new products
Array of objects (productProduct) Products returning list of available products. |
{- "products": [
- {
- "product_id": "string",
- "name": "string",
- "description": "string",
- "quantity": "string",
- "price": {
- "cur": "string",
- "num": "string",
- "perf": "string"
}, - "attributes": {
- "deployment_quota": 0,
- "model_quota": 0,
- "recurring_period": "string",
- "features": [
- {
- "include": true,
- "feature": "string"
}
], - "subscription_tier": "string",
- "interval_limit": [
- "string"
]
}, - "category": {
- "category_id": "string",
- "name": "string"
}
}
]
}Get Purchases provides data of created purchases and it's details
| purchase_ids | Array of strings PurchaseIds represents list of unique identifier of a purchase. |
| status | Array of strings Status represents list of status of a purchase. |
| page | string <int64> Page determines number of page. |
| limit | string <int64> Limit determines maximum number of returned data. |
| latest | boolean Latest enforces to fetch latest state. |
Purchase facilitates purchase a product action that triggers payment
| provider | string (purchasePaymentProvider) Default: "UnknownPaymentProvider" Enum: "UnknownPaymentProvider" "Mock" "Mayar" |
Array of objects (purchasePurchaseProduct) Products represents products being purchased. | |
object (purchasePurchaseDiscount) |
{- "provider": "UnknownPaymentProvider",
- "products": [
- {
- "product_id": "string",
- "quantity": "string"
}
], - "discount": {
- "coupon_ids": [
- "string"
]
}
}Purchase facilitates price pre calculation before doing the real purchase
| provider | string (purchasePaymentProvider) Default: "UnknownPaymentProvider" Enum: "UnknownPaymentProvider" "Mock" "Mayar" |
Array of objects (purchasePurchaseProduct) Products represents products being purchased. | |
object (purchasePurchaseDiscount) |
{- "provider": "UnknownPaymentProvider",
- "products": [
- {
- "product_id": "string",
- "quantity": "string"
}
], - "discount": {
- "coupon_ids": [
- "string"
]
}
}This endpoint provides a comprehensive overview of key metrics and performance indicators for the trading platform. The dashboard includes real-time data and statistics on trading models, active trades, portofolio, offering users a centralized view to monitor and manage trading activities effectively.
| range | string Default: "UnknownTimeRange" Enum: "UnknownTimeRange" "Day" "Week" "Month" Range represents time range applied for querying dashboard monitoring. |
This endpoint used to save stategy which contain list of rules.
| label | string Label is the user identifier of a strategy. |
| description | string Description is detailed brief of the strategy. |
| analytic | string (strategyAnalyticOptions) Default: "UnknownAnalytic" Enum: "UnknownAnalytic" "Technical" "Fundamental" "Bandarmology" |
{- "label": "string",
- "description": "string",
- "analytic": "UnknownAnalytic"
}This endpoint used to retrieve list of user made technical rules for simulation.
| page | string <int64> Page determines number of page. |
| limit | string <int64> Limit determines maximum number of returned data. |
| strategy_id | string <int64> StrategyId identify group of saved technical rules. |
This endpoint used to add technical rule for simulation.
Array of objects (technicalTechnicalRules) Rules are a conditions that want to be simulated. |
{- "rules": [
- {
- "rule_id": "string",
- "indicator": "UknownIndicator",
- "buy_condition": "UnknownCondition",
- "sell_condition": "UnknownCondition",
- "configurations": {
- "simple_moving_average": {
- "lengths": [
- "string"
]
}, - "exponential_moving_average": {
- "lengths": [
- "string"
]
}, - "stochastic_rsi": {
- "short_period": "string",
- "long_period": "string"
}
}
}
]
}This endpoint retrieves a list of executed trades from the system, allowing users to view details of past trades for analysis and record-keeping.
| page | string <int64> Page determines number of page. |
| limit | string <int64> Limit determines maximum number of returned data. |
| from | string <date-time> From is the beginning timestamp of returned data. |
| to | string <date-time> To is the ending timestamp of returned data. |