Introduction
Welcome to the SC API Documentation! You can check our API Documentation to access SC API endpoints.
Authentication
To authorize, use this code:
# With shell, you can just pass the correct header with each request
curl --request POST \
--url https://[apiURL]/authenticate-profile \
--header 'Content-Type: application/json' \
--data '{
"profileId": "profileId",
"timestamp": 1684317804465,
"accessKey": "userAccessKey"
}'
Make sure to replace all the parameters with specific value.
SC API userToken to allow access to the API. SC API expects for the userToken to be included in all API requests to the server in a header that looks like the following:
Authorization: Bearer [userToken]
To generate the accessKey :
- For authentication part we will be using HMAC-SHA256 hash.
- We will give you a shared secret key.
- The accessKey will be generated by shared secret key, profileId, and timestamp.
- Format to create accessKey
let profileId = '123' //The _id of profile
let timestamp = new Date().getTime(); //current time
//Combine to 1 string
let value = `${profileId}${timestamp}`
//Generate accessKey with hmac
const accessKey = crypto.createHmac('sha256', sharedSecretKey).update(value).digest('hex');
- Redirect it to
https://Front End Url/authenticate?profileId=${profileId}×tamp=${timestamp}&accessKey=${accessKey}to do the authentication - The accessKey will be expired in 24 hours, and our site will redirect to your site home page, when users come to our site.
- When the accessKey is expired please call no.5 url again to re-authenticate
Sample Response return :
{
"user": {
"_id": "6417ffbb724b2acc84f97931",
"email": "[email protected]",
"username": "ethantest",
"referralCode": "7WVUQU",
"inited": 0,
"actionAccess": 0,
"createdAt": "2023-03-20T06:39:55.990Z",
"updatedAt": "2023-03-20T06:39:55.990Z",
"__v": 0,
"profile": {
"_id": "6417ffbc724b2acc84f97933",
"userId": "6417ffbb724b2acc84f97931",
"username": "ethanTest",
"ranking": 0,
"email": "[email protected]",
"expiredAt": 0,
"balanceUsdt": 99992408.09594463,
"balanceVsdt": 2,
"balanceVoucher": 0,
"balanceFrozen": 0,
"balanceProfit": 0,
"wallet": {
"highFrequency": {
"balance": 0,
"used": 0
},
"highFrequencyCoin": {
"balance": 0,
"used": 0
}
},
"exchangeInsufficientBalance": 0,
"onHoldUsdt": 0,
"startedRobot": 0,
"initedRobot": 0,
"enableLevelEdit": 0,
"suspendedBuyUntil": "1970-01-01T00:00:00.000Z",
"enableRewards": 0,
"enableInsertCampaign": 0,
"bindedAPi": 1,
"checkedReward": 0,
"rewardByPassRobot": 0,
"enableProfitShare": 0,
"fundingAmount": 50000,
"minFundingAmount": 500,
"availableFundPortion": 100,
"enableCopyTrade": 1,
"shortKey": [],
"enableCutLost": 0,
"parent": [],
"transactions": [],
"robotProfiles": [
{
"exchange": "binance",
"usedFor": "binance",
"robotProfileId": "6425352b739dea160981611b",
"_id": "6425352c0374e630d95e3601",
"apiBindedDay": 1,
"createdAt": "2023-05-15T04:01:29.630Z"
}
],
"addressList": [],
"createdAt": "2023-03-20T06:39:56.006Z",
"updatedAt": "2023-05-20T16:00:05.201Z",
"__v": 0,
"demoUserId": "6417ffbc2fa037a1ca035dd8",
"copyTradeAgreeDate": "2023-05-15T08:41:26.755Z",
"totalTopUpVsdt": 2,
"maxOpenLimit": 1
}
},
"token": "eyJhbGciOiJIUzI1NiIsInR5cCI6ImFjY2VzcyJ9.eyJzdWIiOiI2NDE3ZmZiYjcyNGIyYWNjODRmOTc5MzEiLCJpYXQiOjE2ODQ5OTEwNjQsImV4cCI6MTY4NTA3NzQ2NCwiYXVkIjoiaHR0cHM6Ly95b3VyZG9tYWluLmNvbSIsImlzcyI6ImZlYXRoZXJzIn0.qQbeJbEH-g7bJpk_lJp9cYIhH930meF5IJE4CPYuVqU"
}
Verify Access Token
To verify the token is still valid:
curl --request POST \
--url https://[apiURL]/v1/verifyAccessToken \
--header 'Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6ImFjY2VzcyJ9.eyJzdWIiOiI2NDM5MWExODAzNzRlNjMwZDk1ZjhkZTEiLCJpYXQiOjE2OTAzNjM5NzMsImV4cCI6MTY5MDQ1MDM3MywiYXVkIjoiaHR0cHM6Ly95b3VyZG9tYWluLmNvbSIsImlzcyI6ImZlYXRoZXJzIn0.7LLWqE5JHuFVieR-23Q3fe6cw38LPHHNZNL6lTHBnG8'
This API is to verify the accessToken is still valid or not. If still will return true else will return a error message.
Sample respone return when accessKey still valid :
{
"authenticated": true
}
Sample respone return when accessKey is not valid :
{
"name": "NotAuthenticated",
"message":"invalid signature",
"code":401,
"data":{
"name": "JsonWebTokenError",
"message":"invalid signature"
},
"errors":{}
}
Alert Message
Get Profile Alert
curl --request GET \
--url https://[apiUrl]/app/alert/getProfileAlert \
--header 'Authorization: Bearer [userToken]'
The above command returns JSON structured like this:
{
"data": [
{
"_id": "645b403a1369706ce659419c",
"profileId": "63d893c5bc587f34fcb2d61a",
"title": "Top Up - ethan-2",
"subtitle": " ",
"content": "",
"isAlert": 1,
"alertType": "popUp",
"parameter": {
"placement": "ethan-2",
"amount": 5000,
"username": "ethan",
"leftday": 0,
"exchange": ""
},
"createdAt": "2023-05-10T06:56:58.004Z",
"updatedAt": "2023-05-10T07:00:49.156Z",
"__v": 0
},
{
"_id": "6454f8e37c321472152b492f",
"profileId": "63d893c5bc587f34fcb2d61a",
"title": "ITS Enquiry Replied",
"subtitle": " ",
"content": "Ding Dong ~ Our customer service had replied to your enquiry, please have a look on your customer service details. ",
"isAlert": 1,
"alertType": "alert",
"parameter": {
"placement": "",
"amount": 0,
"username": "",
"leftday": 0,
"exchange": ""
},
"createdAt": "2023-05-05T12:38:59.155Z",
"updatedAt": "2023-05-10T10:10:21.669Z",
"__v": 0
},
],
"total": 10,
"skip": 0,
"sort": {
"createdAt": -1
}
}
This endpoint retrieves all alert message from specific user profile.
HTTP Request
GET https://[apiUrl]/app/alert/getProfileAlert
Query Parameters
| Parameter | Nullable | Sample |
|---|---|---|
| limit | false | "all" |
| skip | false | 0 |
| query | false | {profileId:[userProfileId],isAlert:0} |
| accessKey | false | [userAccessKey] |
ccxt
Get Account Balance
curl --request GET \
--url 'https://[apiURL]/ccxt/getAccountBalance?robotProfileId=[robotProfileId]' \
--header 'Authorization: Bearer [userToken]'
The above command returns JSON structured like this:
{
"data": {
"info": {
"makerCommission": "10",
"takerCommission": "10",
"buyerCommission": "0",
"sellerCommission": "0",
"commissionRates": {
"maker": "0.00100000",
"taker": "0.00100000",
"buyer": "0.00000000",
"seller": "0.00000000"
},
"canTrade": true,
"canWithdraw": true,
"canDeposit": true,
"brokered": false,
"requireSelfTradePrevention": false,
"updateTime": "1684734447712",
"accountType": "SPOT",
"balances": [
{
"asset": "BTC",
"free": "0.00000000",
"locked": "0.00000000"
},
{
"asset": "LTC",
"free": "0.00000000",
"locked": "0.00000000"
},
{
"asset": "ETH",
"free": "0.00000000",
"locked": "0.00000000"
}
],
"permissions": [
"SPOT"
]
},
"BTC": {
"free": 0,
"used": 0,
"total": 0
},
"LTC": {
"free": 0,
"used": 0,
"total": 0
},
"ETH": {
"free": 0,
"used": 0,
"total": 0
},
"USDT": {
"free": 0,
"used": 0,
"total": 0
},
"timestamp": 1684734447712,
"datetime": "2023-05-22T05:47:27.712Z",
"free": {
"BTC": 0,
"LTC": 0,
"ETH": 0
}
}
}
This endpoint retrieves the list of user coin balance.
HTTP Request
GET https://[apiUrl]/app/ccxt/getAccountBalance?robotProfileId=<ID>
URL Parameters
| Parameter | Description |
|---|---|
| ID | The ID of robotProfileId |
Document
Get documents
curl --request GET \
--url https://[apiUrl]/app/documents/getDocuments \
--header 'Authorization: Bearer [userToken]
The above command returns JSON structured like this:
{
"data": [
{
"_id": "6463236094617ed278dc325e",
"title": "Create Personal Account At Swiftcoin",
"sequence": 1,
"languageType": 0,
"link": "https://swiftcoin.io/user-guide",
"updatedAt": "2023-05-16T06:48:24.743Z",
"createdAt": "2023-05-16T06:48:24.743Z",
"createdDate": "2023-05-16T06:48:24.744Z"
},
{
"_id": "6463252b94617ed278dc3374",
"title": "Identity Verification",
"sequence": 2,
"languageType": 0,
"link": "https://swiftcoin.io/user-guide-2/",
"updatedAt": "2023-05-16T06:48:16.728Z",
"createdAt": "2023-05-16T06:48:16.728Z",
"createdDate": "2023-05-16T06:48:16.729Z"
},
{
"_id": "6463254594617ed278dc337e",
"title": "Create A Binance Account",
"sequence": 3,
"languageType": 0,
"link": "https://swiftcoin.io/user-guide-3/",
"updatedAt": "2023-05-16T06:48:08.743Z",
"createdAt": "2023-05-16T06:48:08.743Z",
"createdDate": "2023-05-16T06:48:08.751Z"
}
],
"total": 3,
"skip": 0,
"sort": {
"createdAt": -1
}
}
This endpoint retrieves the list of documents of user guide.
HTTP Request
GET https://[apiUrl]/app/documents/getDocuments?languageType=0&sort=%7B%22sequence%22:1%7D&limit=10&skip=0
| Parameter | Nullable | Sample |
|---|---|---|
| limit | false | "all" |
| skip | false | 0 |
| languageType | true | 0 refer as English |
| sort | true | sort:{sequence:1} |
News
Get news
curl --request GET \
--url https://[apiUrl]/app/news/getNews \
--header 'Authorization: Bearer [userToken]'
The above command returns JSON structured like this:
{
"data": [
{
"_id": "64212063410195a8c7584817",
"title": "BRICS Nations Discuss Expansion Plan as Membership Interest Grows",
"content": "",
"description": "South Africa’s Minister of International Relations and Cooperation Naledi Pandor has revealed that the BRICS nations are working on guidelines to cater to the rising interest of countries wanting to join the economic bloc. The BRICS nations comprise Brazil, Russia, India, China, and South Africa. This year, the BRICS presidency is held by South Africa.\n\nAddressing the South African line ministry on “Strengthening Partnerships for a Fairer and More Equitable Global System,” Pandor was quoted by Telesur as saying Monday:\n\nBRICS is attracting a lot of interest from a number of countries, and our sherpas are working on the concept of how the group can respond to this interest. We hope that our leaders will present final guidelines at the conclusion of the BRICS summit.\n\nThe BRICS countries have been making efforts to expand the group’s global influence. In April, Anil Sooklal, South Africa’s ambassador to the BRICS group, revealed that the economic bloc is “getting applications to join every day.” He stated at the time that 13 countries have already formally asked to join and another six have asked informally. Saudi Arabia and Iran are among the countries that have expressed interest in joining.\n\nPandor further highlighted the importance of fostering global cooperation by establishing influential alliances that collaborate with the United Nations to drive an inclusive and forward-looking international development agenda. She noted that the BRICS group has the potential to fulfill this transformative role.\n\n\nAccording to the South African foreign affairs minister:\n\nThe growing interest in the alliance shows that many countries are looking for a multipolar forum that is modern, inclusive, and focused on the common good.\n\nShe also shared that South Africa’s “partnership with BRICS has resulted in tangible benefits” across multiple sectors, noting that the country’s total trade with BRICS countries increased from $25 billion in 2017 to $36 billion in 2021. In addition, she noted that South Africa has secured more than $5 billion in funding from the group’s New Development Bank (NDB) “for key infrastructure projects in renewable energy, water, and other sectors.”\n\nThe BRICS group is also working on creating a common currency that will help its members reduce reliance on the U.S. dollar. The topic is expected to be discussed at the BRICS leaders’ summit in August.",
"sequence": 1,
"languageType": 0,
"attachFile": [
{
"key": "1684301104387.jpg",
"url": "https://ezsight.s3.ap-southeast-1.amazonaws.com/1684301104387.jpg",
"_id": "64646530156503ac3b3117f4"
}
],
"type": "jpg",
"updatedAt": "2023-05-17T05:25:04.681Z",
"createdAt": "2023-05-17T05:25:04.681Z",
"createdDate": "2023-05-17T05:25:04.682Z"
}
],
"total": 1,
"skip": 0,
"sort": {
"createdAt": -1
}
}
This endpoint retrieves the list of news for user.
HTTP Request
GET https://[apiUrl]/app/news/getNews?languageType=0&sort=%7B%22sequence%22:1%7D&limit=10&skip=0
| Parameter | Nullable | Sample |
|---|---|---|
| limit | false | "all" |
| skip | false | 0 |
| languageType | true | 0 refer as English |
| sort | true | sort:{sequence:1} |
Video
Get Videos
curl --request GET \
--url https://[apiUrl]/app/videos/getVideos \
--header 'Authorization: Bearer [userToken]'
The above command returns JSON structured like this:
{
"data": [
{
"_id": "643d24390374e630d95fbb30",
"title": "Martin Garrix",
"content": "Is Martin Garrix",
"videoLink": "https://www.youtube.com/watch?v=o3YadwGH0ZA&t=837s",
"sequence": 1,
"languageType": 0,
"updatedAt": "2023-04-17T10:57:31.095Z",
"createdAt": "2023-04-17T10:57:31.095Z",
"createdDate": "2023-04-17T10:57:31.096Z"
},
{
"_id": "64212097410195a8c7584831",
"title": "Good tutorial",
"content": "eww",
"videoLink": "https://www.youtube.com/watch?v=-nCOjH0XOos&ab_channel=Academind",
"sequence": 2,
"languageType": 0,
"updatedAt": "2023-04-17T10:44:17.569Z",
"createdAt": "2023-04-17T10:44:17.569Z",
"createdDate": "2023-04-17T10:44:17.569Z"
}
],
"total": 2,
"skip": 0,
"sort": {
"createdAt": -1
}
}
This endpoint retrieves the list of tutorial video for user.
HTTP Request
GET https://[apiURL]/app/videos/getVideos?languageType=0&sort=%7B%22sequence%22:1%7D&limit=10&skip=0
| Parameter | Nullable | Sample |
|---|---|---|
| limit | false | "all" |
| skip | false | 0 |
| languageType | true | 0 refer as English |
| sort | true | sort:{sequence:1} |
Profile Transactions
Get Profile transactions
curl --request GET \
--url https://[apiUrl]/app/profile-transactions/getProfileTransactions \
--header 'Authorization: Bearer [userToken]
The above command returns JSON structured like this:
{
"data": [
{
"_id": "6465382e156503ac3b3131ea",
"profileId": "64391a180374e630d95f8de3",
"robotId": "6464505b8623b7c3cf5db7ac",
"orderId": "6465382c12f21a47ec83eec9",
"amount": 0.0694682464000001,
"trxType": "OUT",
"amountType": 0,
"sourceType": 10,
"createdAt": "2023-05-17T20:25:18.343Z",
"updatedAt": "2023-05-17T20:25:18.343Z",
"__v": 0
}
],
"total": 1,
"skip": 0,
"sort": {
"createdAt": -1
}
}
This endpoint retrieves the list of of transactions done of the profile.
HTTP Request
GET https://[apiUrl]/app/profile-transactions/getProfileTransactions?profileId=6423ffd592a830df6ae24274&amountType=0&populate[]=%7B%22service%22:%22package-transactions%22,%22foreignId%22:%22packageTransactionId%22,%22populate%22:[]%7D&populate[]=%7B%22service%22:%22deposit-transactions%22,%22foreignId%22:%22depositTransactionId%22,%22populate%22:[]%7D&populateRobot=true&limit=10&skip=0
| Parameter | Sample Value |
|---|---|
| limit | "all" |
| skip | 0 |
| profileId | User profile Id |
| amountType | 0 |
| populateRobot | true |
| populate | [{service: "package-transactions",foreignId:"packageTransactionId",populate: [],},{service: "deposit-transactions",foreignId: "depositTransactionId",populate: [],}, ] |
System Configuration
Get System configurations
curl --request GET \
--url https://[apiUrl]/app/system-configuration/getSystemConfigurations \
--header 'Authorization: Bearer [userToken]'
The above command returns JSON structured like this:
{
"data": [
{
"_id": "641425c7ab37c159016eed40",
"key": "systemTelegramChat",
"__v": 0,
"createdAt": "2023-03-17T08:33:11.907Z",
"updatedAt": "2023-03-29T09:03:21.543Z",
"value2": "5523460042",
"value": {
"floatingTransaction": [
{
"chatId": 5523460042,
"username": "Jack1"
},
{
"chatId": 5286296835,
"username": "Ethan"
},
{
"chatId": 1493227179,
"username": "Kent"
}
],
"transactionError": [
{
"chatId": 5523460042,
"username": "Jack1"
},
{
"chatId": 5286296835,
"username": "Ethan"
}
],
"redeemNotification": [
{
"chatId": 5523460042,
"username": "Jack1"
},
{
"chatId": 5286296835,
"username": "Ethan"
},
{
"chatId": 1493227179,
"username": "Kent"
}
]
}
},
{
"_id": "6417f3a54c987df7dc10ddfc",
"key": "swiftInvest",
"value": {
"ignoreLimit": 1
}
}
],
"total": 2,
"skip": 0,
"sort": {
"createdAt": -1
}
}
This endpoint retrieves the system configuration on specific that user contain.
HTTP Request
GET https://[apiUrl]/app/system-configuration/getSystemConfigurations?key=swiftInvest&limit=50&skip=0
| Parameter | Sample Value | Desc |
|---|---|---|
| limit | "all" | Limit size of data |
| skip | 0 | Pagination of data |
| key | "swiftInvest" | Specific which setting to retrieve (Optional) |
Swift Invest
Get Swift Invest Listing
curl --request GET \
--url https://[apiUrl]/app/swiftInvest/getInvestPlanListing \
--header 'Authorization: Bearer [userToken]'
The above command returns JSON structured like this:
{
"data": [
{
"_id": "6465d95c1a9546b59b24c811",
"title": "testing 001",
"rate": 0.75,
"status": 0,
"createdAt": "2023-05-18T07:53:00.667Z",
"updatedAt": "2023-05-18T07:53:44.674Z",
"__v": 0
},
{
"_id": "64229476410195a8c7585d3f",
"title": "SwiftInvest04",
"rate": 0.3,
"period": 180,
"status": 1,
"createdAt": "2023-03-28T07:17:10.547Z",
"updatedAt": "2023-03-28T07:17:24.746Z",
"__v": 0
},
{
"_id": "641d8c26410195a8c7581836",
"title": "Test bj",
"rate": 0.5,
"period": 2888,
"status": 0,
"createdAt": "2023-03-24T11:40:22.860Z",
"updatedAt": "2023-03-24T11:41:06.292Z",
"__v": 0
},
{
"_id": "64142eb3221db03732778ebf",
"title": "SwiftInvest03",
"rate": 0.16,
"period": 90,
"status": 0,
"createdAt": "2023-03-17T09:11:15.596Z",
"updatedAt": "2023-03-28T07:45:01.740Z",
"__v": 0
},
{
"_id": "64142e8d221db03732778eb3",
"title": "SwiftInvest02",
"rate": 0.25,
"period": 180,
"status": 1,
"createdAt": "2023-03-17T09:10:37.657Z",
"updatedAt": "2023-03-19T05:43:25.742Z",
"__v": 0
},
{
"_id": "64142b8b221db03732778e5b",
"title": "SwiftInvest01",
"rate": 0.35,
"period": 365,
"status": 1,
"createdAt": "2023-03-17T08:57:47.590Z",
"updatedAt": "2023-03-19T05:43:49.518Z",
"__v": 0
}
],
"total": 6,
"skip": 0,
"sort": {
"createdAt": -1
}
}
This endpoint retrieves the available Swift Invest listing.
HTTP Request
GET https:/[apiUrl]/app/swiftInvest/getInvestPlanListing?status=1&sort=%7B%22rate%22:1%7D&limit=50&skip=0
| Parameter | Sample Value | Desc |
|---|---|---|
| limit | "all" | Limit size of data |
| skip | 0 | Pagination of data |
| status | 1 | Status is active (Optional) |
| sort | {rate:1} | sort with rate (Optional) |
Profile
Transfer Asset
The below command is to transfer asset of the user:
curl --request POST \
--url https://[transferUrl]/api/sc/transferAsset\
--header 'Content-Type: application/json' \
--data '{
"userEmail": "[email protected]",
"userToken": ["userToken"],
"transferDirection": 1,
"amount": 100,
"profileId": ["profileId"]
}'
HTTP Request
POST https://[transferUrl]/api/sc/transferAsset
Bind API Key
The below command is to bind api key from specific exchange:
curl --request POST \
--url https://[apiUrl]/app/profile/bindApiKey \
--header 'Content-Type: application/json' \
--data '{
"exchange": "binance",
"apiKey": "[userApiKey]",
"secretKey": '[userSecretKey]',
"robotProfileId": [robotProfileId],
"platform": "binance",
"exchangeExtraData": "extraData",
}'
HTTP Request
POST https://[apiUrl]/app/profile/bindApiKey
Edit Capital Amount
The below command is to edit the capital amount on exchange:
curl --request POST \
--url https://[apiUrl]/app/profile/editCapitalAmount \
--header 'Content-Type: application/json' \
--data '{
"profileId": "[userProfileId]",
"strategy": "highFrequency",
"capitalAmount": 1000,
"limitAmount": 1000,
"platform": "binance"
}'
HTTP Request
POST https://[apiUrl]/app/profile/editCapitalAmount
Get Subscribe Profile Robots
The below command is to get a list data that user subscribe to which swfitInvest robots:
curl --request GET \
--url 'https://[apiUrl]/app/profile/getSubscribeProfileRobots?subscriberId=[subscriberId]' \
--header 'Authorization: Bearer [userToken]'
HTTP Request
POST https://[apiUrl]/app/profile/getSubscribeProfileRobots?subscriberId=[subsriberId]
Query Parameter
| Parameter | Desc |
|---|---|
| subscriber | subscriberId |
Generate Demo Access Key
The below command is to generate a Demo profile based on profileId:
curl --request POST \
--url https://[apiUrl]/app/profile/generateDemoAccessKey \
--header 'Authorization: Bearer [userToken]'
HTTP Request
POST https://[apiUrl]/app/profile/generateDemoAccessKey
Generate Demo Internal Access Key
The below command is to generate a Demo Internal profile based on profileId:
curl --request POST \
--url https://[apiUrl]/app/profile/generateDemoInternalAccessKey \
--header 'Authorization: Bearer [userToken]'
HTTP Request
POST https://[apiUrl]/app/profile/generateDemoInternalAccessKey
Get or Create Robot Profile
curl --request POST \
--url https://[apiUrl]/app/profile/getOrCreateRobotProfile \
--header 'Authorization: Bearer [userToken]'
The above command returns JSON structured like this:
{
"data": {
"exchange": "binance",
"usedFor": "binance",
"robotProfileId": "643804c84560ccb3d1736413",
"apiBindedDay": 1,
"createdAt": "2023-05-15T04:47:04.881Z",
"_id": "643804c9e56740d77fbee296"
},
"message": "Accepted"
}
This endpoint retrieves the robot profile Id of the profile.
HTTP Request
GET https://[apiUrl]/app/profile/getOrCreateRobotProfile?usedFor=binance&exchange=binance&profileId=[userProfileId]
| Parameter | Sample Value | Desc |
|---|---|---|
| usedFor | "binance" | Type of exchange |
| exchange | "binance" | Type of exchange |
| profileId | profile Id | User profile ID |
Get User Token
The endpoint get the userToken to allow to do transfer asset.
curl --request POST \
--url https://[transferApi]/api/sc/getUserToken \
--header 'Authorization: Bearer [accessToken]' \
--data '{
"authCode":[authCode],
}'
The above command returns JSON structured like this:
{
"userEmail": "[email protected]",
"userToken": "c27544693d974a7c8ec3fbb389691a12",
"nonce": "665ObR2AmAq66Yz",
"responseCode": "0"
}
This endpoint get the userToken
Get Transfer Balance
The endpoint get available transfer balance.
curl --request POST \
--url https://[transferApi]/api/sc/getTransferBalance \
--header 'Authorization: Bearer [accessToken]' \
--data '{
"userEmail":[userEmail],
"userToken":[userToken],
}'
The above command returns JSON structured like this:
{
"nonce": "4GuXzp0mYm91eSh",
"amount": 74657908,
"frozenAmount": 0,
"responseCode": "0"
}
The endpoint is get the available transfer amount.
Subscribe profile robot
The endpoint is to subscribe the swift invest.
curl --request POST \
--url https://[transferApi]/profile/subscribeProfileRobot \
--header 'Authorization: Bearer [accessToken]' \
--data '{
"name": "SwiftInvest01 - 35%",
"profileId": "[profileId]",
"investPlanId": "[investPlanId]",
"subscriberId": "[subscriberId]",
"qty": 1,
"period": 365,
"roi": 35,
"gasFee": 7
}'
The above command returns JSON structured like this:
{
"message": "Accepted"
}
The endpoint is to subsribe the swift invest plan.
| Parameter | Sample Value | Desc |
|---|---|---|
| name | "SwiftInvest01 - 35%" | Name of Swift plan. |
| profileId | [profileId] | User profile ID |
| investPlanId | [investPlanId] | Invest Plan ID |
| subscriberId | [subscriberId] | Subscriber Plan ID |
| qty | 1 | quantity of subscribe |
| period | 365 | the period of matured |
| roi | 35 | the roi of swift invest |
| gasFee | 7 | The charges of invest (20% of ROI) |
Get Profile Details
curl --request GET \
--url https://[apiUrl]/app/profile/getProfiles \
--header 'Authorization: Bearer [accessToken]'
The above command returns JSON structured like this:
{
"data": [
{
"_id": "64391a180374e630d95f8de3",
"userId": "64391a180374e630d95f8de1",
"username": "hermant",
"ranking": 0,
"email": "[email protected]",
"expiredAt": 0,
"balanceUsdt": -0.0694682464000001,
"balanceVsdt": 0,
"balanceVoucher": 0,
"balanceFrozen": 0,
"balanceProfit": 0,
"wallet": {
"highFrequency": {
"balance": 0,
"used": 0,
"capital": {
"binance": 1000
},
"limit": {
"binance": 1000000
}
},
"highFrequencyCoin": {
"balance": 0,
"used": 0
}
},
"exchangeInsufficientBalance": 0,
"onHoldUsdt": 0,
"startedRobot": 0,
"initedRobot": 0,
"enableLevelEdit": 0,
"suspendedBuyUntil": "1970-01-01T00:00:00.000Z",
"enableRewards": 0,
"enableInsertCampaign": 0,
"bindedAPi": 1,
"checkedReward": 0,
"rewardByPassRobot": 0,
"enableProfitShare": 0,
"fundingAmount": 0,
"minFundingAmount": 0,
"availableFundPortion": 0,
"enableCopyTrade": 1,
"shortKey": [],
"enableCutLost": 0,
"totalTopUp": 0,
"totalTopUpVsdt": 0,
"parent": [],
"transactions": [],
"robotProfiles": [
{
"exchange": "binance",
"usedFor": "binance",
"robotProfileId": "644b16d1c0039d2393b517d9",
"apiBindedDay": 1,
"createdAt": "2023-05-16T09:08:46.007Z",
"_id": "644b16d20374e630d9600e66"
},
{
"exchange": "tokocrypto",
"usedFor": "tokocrypto",
"robotProfileId": "646af58c8c6b61dbf51868d5",
"_id": "646af58e156503ac3b319905"
},
{
"exchange": "bitget",
"usedFor": "bitget",
"robotProfileId": "646af6e38c6b61dbf51868eb",
"_id": "646af6e5156503ac3b3199f9"
}
],
"addressList": [],
"createdAt": "2023-04-14T09:17:12.128Z",
"updatedAt": "2023-05-22T05:00:21.098Z",
"__v": 0,
"demoUserId": "64391a181f0d22c7fa0f81dd",
"apiSize": 0
}
],
"total": 1,
"skip": 0,
"sort": {
"createdAt": -1
}
}
This endpoint retrieves the details of the profile.
HTTP Request
GET https://[apiUrl]/app/profile/getProfiles?limit=10&skip=0&_id=[userProfileId]
| Parameter | Sample Value | Desc |
|---|---|---|
| limit | "all" | Limit size of data |
| skip | 0 | Pagination of data |
| _id | profile Id | User profile ID |
Robot
Get Robot Profiles
curl --request GET \
--url 'https://[apiUrl]/app/robot/getRobotProfiles?_id=[robotProfileId]' \
--header 'Authorization: Bearer [userToken]'
The above command returns JSON structured like this:
{
"data": [
{
"_id": "643804c84560ccb3d1736413",
"username": "herment-binance",
"email": "[email protected]",
"exchange": "binance",
"enableProfitLimit": 0,
"stopProfile": 0,
"profitLimit": 0,
"robotFundLimit": {
"highFrequency": {
"enable": 1,
"enableCustom": 0,
"limit": 1000,
"used": 249.84360700000005,
"balance": 750.156393
},
"highFrequencyCoin": {
"enable": 1,
"limit": 1,
"balance": 1
}
},
"status": 0,
"createdAt": "2023-04-13T13:34:00.127Z",
"updatedAt": "2023-05-22T10:09:20.978Z",
"settings": {
"highFrequency": {
"preStop": 0,
"autoLink": 1,
"manualLink": 0,
"gapPulling": 0
},
"highFrequencyCoin": {
"preStop": 0
}
},
"strategySummary": {
"highFrequency": {
"_id": null,
"totalCover": 72,
"totalRobotAmount": 1500,
"balanceOrder": 20,
"balanceOrderAmount": 1397.56,
"balanceOrderCost": 249.84360700000005,
"profitEarned": 16.664659494000002,
"totalRobots": 2
}
}
}
],
"total": 1,
"skip": 0,
"sort": {
"createdAt": -1
}
}
This endpoint retrieve the details of robot profile details.
HTTP Request
GET https://api.myits.co/app/robot/getRobotProfiles?_id=[robotProfileId]
| Parameter | Sample Value | Desc |
|---|---|---|
| _id | "robotProfileId" | Robot Profile |
| isAdmin | true | Get All fields |
Get Symbol List
curl --request GET \
--url https://[apiUrl]/app/robot/getSymbolList \
--header 'Authorization: Bearer [userToken]'
The above command returns JSON structured like this:
{
"data": [
{
"price": 0.1192,
"time": 1684755524714,
"symbol": "GRTUSDT"
},
{
"price": 0.00000878,
"time": 1684755541526,
"symbol": "SHIBUSDT"
},
{
"price": 308.5,
"time": 1684755541627,
"symbol": "BNBUSDT"
},
]
}
This endpoint retrieve the current market price of each product.
HTTP Request
GET https://[apiUrl]/app/robot/getSymbolList?symbolExact=BTCUSDT&exchange=binance
| Parameter | Sample Value | Desc |
|---|---|---|
| symbolExact | "BTCUSDT" | Match with exact symbol |
| exchange | "binance" | Type of exchange |
Get Robot Transactions
curl --request GET \
--url https://[apiUrl]/app/robot/getRobotTransactionsSummary \
--header 'Authorization: Bearer [userToken]'
The above command returns JSON structured like this:
{
"data": [
{
"_id": "6465382c12f21a47ec83eec9",
"robotId": "6464505b8623b7c3cf5db7ac",
"profileId": "644b16d1c0039d2393b517d9",
"orderId": "6464b9d4cd9ab57203dd2218",
"side": "sell",
"timestamp": "2023-05-17T20:25:14.334Z",
"cost": 12.868884,
"amount": 156.1,
"price": 0.08244,
"liquidation": 0,
"confirmedCallBack": 1,
"populatedRobotId": {
"_id": "6464505b8623b7c3cf5db7ac",
"profileId": "644b16d1c0039d2393b517d9",
"grid": 60,
"exchange": "binance",
"loop": 1,
"isPreStop": 0,
"amount": 750,
"symbol": "IDEXUSDT",
"minPrice": 0.041775,
"maxPrice": 0.1044375,
"profitEarned": 0.3473412320000005,
"canBuyOrder": 1,
"canSellOrder": 1,
"enableAutoAdjustTop": 1,
"enableBuyTrigger": 0,
"enableMultiSell": 0,
"enableDynamicMinPrice": 1,
"minPriceGapRange": 0.5,
"firstOrderChangeLogs": [
{
"clientOrderId": "0W7b2x-6464505dcd9ab57203dd0964-buy",
"createdAt": "2023-05-17T03:56:16.283Z",
"orderDate": "2023-05-17T03:56:13.370Z",
"price": 0.08355,
"amount": 149.61101137043687,
"cost": 12.5
}
],
"status": 0,
"totalCover": 5,
"balanceOrder": 4,
"avgStockPrice": 0.08186604830122426,
"backUpFundsPool": 0,
"enableLinkRobot": 0,
"linkedPercentage": 0,
"createdAt": "2023-05-17T03:56:11.766Z",
"liquidation": 0,
"liquidDate": "1970-01-01T00:00:00.000Z",
"balanceOrderAmount": 610.7537988889624,
"systemPreStop": 0,
"latestOrderPrice": 0.08071,
"closeAtMaxPrice": 0,
"useDefaultSetting": 0,
"logicErrorStatus": 0,
"customLiquidation": 0,
"customLiquidationAt": 0,
"profitType": 0,
"linkRobotType": 0
},
"confirmedCallBackTime": "2023-05-17T20:25:18.339Z",
"profitType": 0,
"profit": 0.3473412320000005,
"sellInfo": {},
"profileTransaction": {
"_id": "6465382e156503ac3b3131ea",
"profileId": "64391a180374e630d95f8de3",
"robotId": "6464505b8623b7c3cf5db7ac",
"orderId": "6465382c12f21a47ec83eec9",
"amount": 0.0694682464000001,
"trxType": "OUT",
"amountType": 0,
"sourceType": 10,
"createdAt": "2023-05-17T20:25:18.343Z",
"updatedAt": "2023-05-17T20:25:18.343Z",
"__v": 0
}
}
],
"total": 1,
"skip": 0,
"sort": {
"createdAt": -1
}
}
This endpoint retrieve a list of robot transactions.
HTTP Request
GET https://[apiUrl]/app/robot/getRobotTransactionsSummary
| Parameter | Sample Value | Desc |
|---|---|---|
| timestampMin | 2023-05-23T00:00:00%2B08:00 | Minimum Date (Optional) |
| timestampMax | 2023-05-23T00:59:59%2B08:00 | Maximum Date (Optional) |
| type | "day" | Display transactions on day (Optional) |
| liquidation | 0 | Show record without liquidation (Optional) |
| showRecord | true (default: false) | True to show robot profit else will be coin profit |
| today | true (default: false) | True to show today record (optional) |
Get Daily Coin
Parameter for Daily coin

Get Weekly Coin
Parameter for Weekly coin

Get Monthly Coin
Parameter for Monthly coin

Get Robot Setting Change Logs
curl --request GET \
--url https://[apiUrl]/app/robot/getRobotSettingChangeLogs \
--header 'Authorization: Bearer [userToken]' \
--header 'Content-Type: application/json' \
--data '{
"robotId": "[robotId]"
}'
The above command returns JSON structured like this:
This endpoint retrieve the list of setting change logs of each of the robot.
HTTP Request
GET https://[apiUrl]/app/robot/getRobotSettingChangeLogs
| Parameter | Sample Value | Desc |
|---|---|---|
| robotId | [robotId] | Pass robot Id to get settingLog |
Get Profile Settings Change Logs
curl --request GET \
--url 'https://[apiUrl]/app/robot/getProfileSettingsChangeLogs?exchange=binance&strategy=highFrequency&profileId=[profileId]' \
--header 'Authorization: Bearer [userToken]'
The above command returns JSON structured like this:
{
"data": [
{
"_id": "6461ed2a8623b7c3cf5d9bdc",
"profileId": "63888c0c7cd0c15b19b46995",
"exchange": "binance",
"strategy": "highFrequency",
"settings": {
"highFrequency": {
"preStop": 0,
"autoLink": 0,
"manualLink": 0,
"gapPulling": 0
},
"highFrequencyCoin": {
"preStop": 0
}
},
"status": 0,
"enableProfitLimit": 0,
"profitLimit": 0,
"robotFundLimit": {
"highFrequency": {
"enable": 0,
"limit": 0,
"used": 0,
"balance": 0
}
},
"createdAt": "2023-05-15T08:28:26.529Z",
"updatedAt": "2023-05-15T08:28:26.529Z",
"__v": 0
},
{
"_id": "6461ed258623b7c3cf5d9bc4",
"profileId": "63888c0c7cd0c15b19b46995",
"exchange": "binance",
"strategy": "highFrequency",
"settings": {
"highFrequency": {
"preStop": 2,
"autoLink": 0,
"manualLink": 0,
"gapPulling": 0
},
"highFrequencyCoin": {
"preStop": 0
}
},
"status": 0,
"enableProfitLimit": 0,
"profitLimit": 0,
"robotFundLimit": {
"highFrequency": {
"enable": 0,
"limit": 0,
"used": 0,
"balance": 0
}
},
"createdAt": "2023-05-15T08:28:21.172Z",
"updatedAt": "2023-05-15T08:28:21.172Z",
"__v": 0
},
],
"total": 6,
"limit": "10",
"skip": 0,
"sort": {
"createdAt": -1
}
}
This endpoint retrieve the list of all position change logs of robot.
HTTP Request
GET https://[apiUrl]/app/robot/getProfileSettingsChangeLogs?exchange
| Parameter | Sample Value | Desc |
|---|---|---|
| profileId | [robotProfileId] | robotProfileId |
| exchange | "binance" | Type of exchange |
| strategy | "highFrequency" | Setllement USDT or Coin |
Get Profile Robot Profit Summary
curl --request GET \
--url https://[apiUrl]/app/robot/getProfileRobotProfitSummary \
--header 'Authorization: Bearer [userToken]'
The above command returns JSON structured like this:
{
"totalProfit": 0.3473412320000005,
"startDate": "2023-05-17T03:56:11.766Z"
}
This endpoint retrieve the total profit based on the user.
HTTP Request
GET https://[apiUrl]/app/robot/getProfileRobotProfitSummary
| Parameter | Sample Value | Desc |
|---|---|---|
| liquidation | 0 | Whether include liquidation (Optional) |
| profileIdIn | ["asd","axx"] | List of robotProfileId |
| timestampMin | 2023-05-23T00:00:00%2B08:00 | Minimum Date |
| timestampMax | 2023-05-23T00:00:00%2B08:00 | Maximum Date |
| robotType | "highFrequency" | Settlement in Coin or USDT |
Get Profile Daily Profit
curl --request GET \
--url https://[apiUrl]/app/robot/getProfileDailyProfit \
--header 'Authorization: Bearer [userToken]'
The above command returns JSON structured like this:
{
"data": [
{
"date": "2023-05-18",
"totalProfit": 0.3473412320000005
}
],
"total": 1,
"skip": 0,
"sort": {
"_id": -1
}
}
This endpoint retrieve the total profit based on the user.
HTTP Request
GET https://[apiUrl]/app/robot/getProfileDailyProfit
| Parameter | Sample Value | Desc |
|---|---|---|
| liquidation | 0 | Whether include liquidation (Optional) |
| profileIdIn | ["asd","axx"] | List of robotProfileId (Optional) |
| timestampMin | 2023-05-23T00:00:00%2B08:00 | Minimum Date (Optional) |
| timestampMax | 2023-05-23T00:00:00%2B08:00 | Maximum Date (Optional) |
| robotType | "highFrequency" | Settlement in Coin ora USDT(Optional) |
Get Multi Links Robot
curl --request GET \
--url 'https://[apiUrl]/app/robot/getMultiLinksRobot?profileId=[robotProfileId]' \
--header 'Authorization: Bearer [userToken]'
The above command returns JSON structured like this:
{
"data": [
{
"_id": "646c7a758c6b61dbf51871eb",
"profileId": "63888c0c7cd0c15b19b46995",
"linkedRobots": [
"63f34d4016d0b1c7c3a14d72"
],
"linkedBy": [
"63f34d4016d0b1c7c3a14d72"
],
"linkedPercentage": 0.15,
"createdAt": "2023-05-23T08:33:57.920Z",
"updatedAt": "2023-05-23T08:33:57.920Z",
"__v": 0
},
{
"_id": "6462f76e8623b7c3cf5da0ad",
"profileId": "63888c0c7cd0c15b19b46995",
"linkedRobots": [
"645e15248623b7c3cf5d7992"
],
"linkedBy": [
"6461ede28623b7c3cf5d9d0e",
"645e21c68623b7c3cf5d8040"
],
"linkedPercentage": 0.25,
"createdAt": "2023-05-16T03:24:30.849Z",
"updatedAt": "2023-05-16T03:24:30.849Z",
"__v": 0
},
{
"_id": "6461ed0d8623b7c3cf5d9b80",
"profileId": "63888c0c7cd0c15b19b46995",
"linkedRobots": [
"641c1bd6739dea1609813f46",
"6417da1b80335c0e0e83a941",
"641424ae22c41c7902b5218e",
"6414248f22c41c7902b5216b",
"6414242322c41c7902b5213c"
],
"linkedBy": [
"645e21c68623b7c3cf5d8040",
"645e15248623b7c3cf5d7992",
"645e14ff8623b7c3cf5d7975",
"645e14cd8623b7c3cf5d7959",
"645e0ea28623b7c3cf5d781c"
],
"linkedPercentage": 0.2,
"createdAt": "2023-05-15T08:27:57.498Z",
"updatedAt": "2023-05-15T08:27:57.498Z",
"__v": 0
},
{
"_id": "645e28598623b7c3cf5d847a",
"profileId": "63888c0c7cd0c15b19b46995",
"linkedRobots": [
"645e257d8623b7c3cf5d8234"
],
"linkedBy": [
"645e257d8623b7c3cf5d8234",
"645e21c68623b7c3cf5d8040"
],
"linkedPercentage": 0.5,
"createdAt": "2023-05-12T11:51:53.075Z",
"updatedAt": "2023-05-12T11:51:53.075Z",
"__v": 0
}
],
"total": 4,
"skip": 0,
"sort": {
"createdAt": -1
}
}
This endpoint retrieve the list of multi link robot.
HTTP Request
GET https://[apiUrl]/app/robot/getMultiLinksRobot?profileId=[robotProfileId]
| Parameter | Sample Value | Desc |
|---|---|---|
| profileId | [robotProfileId] | Robot Profile Id |
Get High Frequency Robots
curl --request GET \
--url 'https://[apiUrl]/app/robot/getHighFrequencyRobots?profileId=[robotProfileId]' \
--header 'Authorization: Bearer [userToken]'
The above command returns JSON structured like this:
{
"data": [
{
"_id": "6461b9a49f254b7f7161ca2d",
"profileId": "643804c84560ccb3d1736413",
"grid": 60,
"exchange": "binance",
"loop": 1,
"isPreStop": 0,
"amount": 750,
"symbol": "RNDRUSDT",
"minPrice": 1.342,
"maxPrice": 2.8675,
"profitEarned": 15.20576146967849,
"canBuyOrder": 1,
"canSellOrder": 1,
"enableAutoAdjustTop": 1,
"enableBuyTrigger": 0,
"enableMultiSell": 0,
"enableDynamicMinPrice": 1,
"minPriceGapRange": 0.5,
"currentFirstOrderPrice": 29445.03,
"firstOrderChangeLogs": [
{
"clientOrderId": "0ddpz5-6461b9a4a2eefab0a8166741-buy",
"createdAt": "2023-05-15T04:48:39.949Z",
"orderDate": "2023-05-15T04:48:37.179Z",
"price": 1.815,
"amount": 6.88,
"cost": 12.4872
},
{
"clientOrderId": "0ddpz5-6461f0d7a2eefab0a81671f8-buy",
"createdAt": "2023-05-15T08:44:11.594Z",
"orderDate": "2023-05-15T08:44:08.021Z",
"price": 1.885,
"amount": 6.63,
"cost": 12.49755
},
{
"clientOrderId": "0ddpz5-6463c24fa2eefab0a816af5d-buy",
"createdAt": "2023-05-16T17:50:08.923Z",
"orderDate": "2023-05-16T17:50:07.420Z",
"price": 1.947,
"amount": 6.42,
"cost": 12.499740000000001
},
{
"clientOrderId": "0ddpz5-64650633a2eefab0a816db68-buy",
"createdAt": "2023-05-17T16:52:07.285Z",
"orderDate": "2023-05-17T16:52:04.466Z",
"price": 2.042,
"amount": 6.12,
"cost": 12.497039999999998
},
{
"clientOrderId": "0ddpz5-646510bda2eefab0a816dca5-buy",
"createdAt": "2023-05-17T17:37:05.246Z",
"orderDate": "2023-05-17T17:37:01.439Z",
"price": 2.109,
"amount": 5.92,
"cost": 12.48528
},
{
"clientOrderId": "0ddpz5-646514d4a2eefab0a816dd8d-buy",
"createdAt": "2023-05-17T17:54:31.865Z",
"orderDate": "2023-05-17T17:54:30.190Z",
"price": 2.168,
"amount": 5.76,
"cost": 12.487680000000001
},
{
"clientOrderId": "0ddpz5-64652798a2eefab0a816e6cb-buy",
"createdAt": "2023-05-17T19:14:51.271Z",
"orderDate": "2023-05-17T19:14:33.137Z",
"price": 2.253,
"amount": 5.54,
"cost": 12.481620000000001
},
{
"clientOrderId": "0ddpz5-6465a5e0a2eefab0a81703de-buy",
"createdAt": "2023-05-18T04:13:22.141Z",
"orderDate": "2023-05-18T04:13:20.633Z",
"price": 2.292,
"amount": 5.45,
"cost": 12.491399999999999
},
{
"clientOrderId": "0ddpz5-6465e0aea2eefab0a8170de4-buy",
"createdAt": "2023-05-18T08:24:18.053Z",
"orderDate": "2023-05-18T08:24:15.073Z",
"price": 2.389,
"amount": 5.23,
"cost": 12.49447
},
{
"clientOrderId": "0ddpz5-64669d44a2eefab0a817383b-buy",
"createdAt": "2023-05-18T21:49:01.442Z",
"orderDate": "2023-05-18T21:48:52.960Z",
"price": 2.481,
"amount": 5.03,
"cost": 12.47943
},
{
"clientOrderId": "0ddpz5-646a24c9f464dc8e4460b0a3-buy",
"createdAt": "2023-05-21T14:04:04.973Z",
"orderDate": "2023-05-21T14:03:53.493Z",
"price": 2.703,
"amount": 4.62,
"cost": 12.48786
},
{
"clientOrderId": "0ddpz5-646a25bef464dc8e4460b10b-buy",
"createdAt": "2023-05-23T03:25:38.462Z",
"orderDate": "2023-05-21T14:07:58.434Z",
"price": 2.684,
"amount": 4.65,
"cost": 12.480600000000003
}
],
"status": 0,
"totalCover": 52,
"balanceOrder": 5,
"avgStockPrice": 2.6339383966244725,
"backUpFundsPool": 0,
"enableLinkRobot": 0,
"linkedPercentage": 0,
"createdAt": "2023-05-15T04:48:36.879Z",
"liquidation": 0,
"liquidDate": "1970-01-01T00:00:00.000Z",
"balanceOrderAmount": 23.700000000000003,
"systemPreStop": 0,
"latestOrderPrice": 2.59,
"closeAtMaxPrice": 0,
"useDefaultSetting": 0,
"logicErrorStatus": 0,
"customLiquidation": 0,
"customLiquidationAt": 0,
"populatedProfileId": {
"_id": "643804c84560ccb3d1736413",
"username": "herment-binance",
"email": "[email protected]",
"exchange": "binance",
"stopProfile": 0,
"status": 0,
"enableProfitLimit": 0,
"profitLimit": 0,
"robotFundLimit": {
"highFrequency": {
"enable": 1,
"limit": 1000,
"used": 137.405529,
"balance": 862.594471
},
"highFrequencyCoin": {
"enable": 1,
"limit": 1,
"balance": 1
}
},
"settings": {
"highFrequency": {
"preStop": 0,
"autoLink": 1,
"manualLink": 0,
"gapPulling": 0
},
"highFrequencyCoin": {
"preStop": 0
}
},
"createdAt": "2023-04-13T13:34:00.127Z",
"updatedAt": "2023-05-23T08:29:33.453Z",
"__v": 0,
"exchangeExtraData": {
"passphrase": "d8d7db8aa87961021e1aeab5b7616a15"
},
"strategySummary": {
"highFrequency": {
"_id": null,
"totalCover": 75,
"totalRobotAmount": 1500,
"balanceOrder": 11,
"balanceOrderAmount": 905.7000000000002,
"balanceOrderCost": 137.405529,
"profitEarned": 21.197225011678487,
"totalRobots": 2
}
},
"encryptedApiKey": 1
},
"profitType": 0,
"linkRobotType": 0
},
{
"_id": "6461b98a9f254b7f7161ca0a",
"profileId": "643804c84560ccb3d1736413",
"grid": 60,
"exchange": "binance",
"loop": 1,
"isPreStop": 0,
"amount": 750,
"symbol": "IDEXUSDT",
"minPrice": 0.04337,
"maxPrice": 0.1084125,
"profitEarned": 5.991463541999997,
"canBuyOrder": 1,
"canSellOrder": 1,
"enableAutoAdjustTop": 1,
"enableBuyTrigger": 0,
"enableMultiSell": 0,
"enableDynamicMinPrice": 1,
"minPriceGapRange": 0.5,
"firstOrderChangeLogs": [
{
"clientOrderId": "AuQbSh-6461b98ca2eefab0a816673e-buy",
"createdAt": "2023-05-15T04:48:15.548Z",
"orderDate": "2023-05-15T04:48:12.878Z",
"price": 0.08674,
"amount": 144.1,
"cost": 12.499234
}
],
"status": 0,
"totalCover": 23,
"balanceOrder": 6,
"avgStockPrice": 0.08501268594104307,
"backUpFundsPool": 0.22356790960000023,
"enableLinkRobot": 0,
"linkedPercentage": 0,
"createdAt": "2023-05-15T04:48:10.475Z",
"liquidation": 0,
"liquidDate": "1970-01-01T00:00:00.000Z",
"balanceOrderAmount": 882.0000000000001,
"systemPreStop": 0,
"latestOrderPrice": 0.08289,
"closeAtMaxPrice": 0,
"useDefaultSetting": 0,
"logicErrorStatus": 0,
"customLiquidation": 0,
"customLiquidationAt": 0,
"populatedProfileId": {
"_id": "643804c84560ccb3d1736413",
"username": "herment-binance",
"email": "[email protected]",
"exchange": "binance",
"stopProfile": 0,
"status": 0,
"enableProfitLimit": 0,
"profitLimit": 0,
"robotFundLimit": {
"highFrequency": {
"enable": 1,
"limit": 1000,
"used": 137.405529,
"balance": 862.594471
},
"highFrequencyCoin": {
"enable": 1,
"limit": 1,
"balance": 1
}
},
"settings": {
"highFrequency": {
"preStop": 0,
"autoLink": 1,
"manualLink": 0,
"gapPulling": 0
},
"highFrequencyCoin": {
"preStop": 0
}
},
"createdAt": "2023-04-13T13:34:00.127Z",
"updatedAt": "2023-05-23T08:29:33.453Z",
"__v": 0,
"exchangeExtraData": {
"passphrase": "d8d7db8aa87961021e1aeab5b7616a15"
},
"strategySummary": {
"highFrequency": {
"_id": null,
"totalCover": 75,
"totalRobotAmount": 1500,
"balanceOrder": 11,
"balanceOrderAmount": 905.7000000000002,
"balanceOrderCost": 137.405529,
"profitEarned": 21.197225011678487,
"totalRobots": 2
}
},
"encryptedApiKey": 1
},
"profitType": 0,
"linkRobotType": 0
}
],
"total": 2,
"limit": "500",
"skip": 0,
"sort": {
"createdAt": -1
},
"totalData": {
"totalRobotProfit": 4.175688330133037,
"totalPosition": 2950,
"totalWalletLimit": 1000000,
"totalCover": 12,
"balanceOrder": 3
}
}
This endpoint retrieve the list of robot that user subscribe.
HTTP Request
GET https://[apiUrl]/app/robot/getHighFrequencyRobots
| Parameter | Sample Value | Desc |
|---|---|---|
| profileId | [robotProfileId] | Enter Robot profile id to get data |
| liquidation | 0 | Include liqudation (Optional) |
| exchange | "binance" | Type of exchange |
| liquidationne | 0 | Retrieve not active robot (Optional) |
| limit | "all" (default:10) | Retrieve data all or with pagination |
| isAdmin | true | Show all fields |
| skip | 0 | page to skip |
| enableLinkRobot | 0 | 0 to link robot (Optional) |
| _idNe | [robotId] | Find robot that not equal to this id (Optional) |
| needLinkByOthersNe | 1 | Indicate this robot need link by other robot (Optional) |
| linkRobotTypeOr | 3 | Involve multilink robot (Optional) |
Get High Frequency Order
curl --request GET \
--url 'https://[apiUrl]/app/robot/getHighFrequencyOrders?robotId=[robotProfileId]' \
--header 'Authorization: Bearer [userToken]'
The above command returns JSON structured like this:
{
"data": [
{
"_id": "646c75dc68efbb7fe8027974",
"robotId": "6461b9a49f254b7f7161ca2d",
"profileId": "643804c84560ccb3d1736413",
"orderId": "646c75dbf464dc8e44611e02",
"side": "buy",
"timestamp": "2023-05-23T08:14:19.341Z",
"cost": 12.4838,
"amount": 4.82,
"price": 2.59,
"liquidation": 0,
"confirmedCallBack": 1,
"confirmedCallBackTime": "2023-05-23T08:14:24.248Z",
"profitType": 0,
"isActive": 1
},
{
"_id": "646c36b468efbb7fe8fd5643",
"robotId": "6461b9a49f254b7f7161ca2d",
"profileId": "643804c84560ccb3d1736413",
"orderId": "646a2c52f464dc8e4460b3cf",
"side": "sell",
"timestamp": "2023-05-23T03:44:50.386Z",
"cost": 12.856799999999998,
"amount": 4.869999999999999,
"price": 2.64,
"liquidation": 0,
"confirmedCallBack": 1,
"confirmedCallBackTime": "2023-05-23T03:44:56.371Z",
"profitType": 0,
"profit": 0.33466640000000136,
"sellInfo": {}
},
{
"_id": "646c36b468efbb7fe8fd55dd",
"robotId": "6461b9a49f254b7f7161ca2d",
"profileId": "643804c84560ccb3d1736413",
"orderId": "646a2d99f464dc8e4460b640",
"side": "sell",
"timestamp": "2023-05-23T03:44:50.386Z",
"cost": 12.936000000000002,
"amount": 4.9,
"price": 2.64,
"liquidation": 0,
"confirmedCallBack": 1,
"confirmedCallBackTime": "2023-05-23T03:44:56.371Z",
"profitType": 0,
"profit": 0.4151280000000015,
"sellInfo": {}
},
{
"_id": "646c322b68efbb7fe8fc272f",
"robotId": "6461b9a49f254b7f7161ca2d",
"profileId": "643804c84560ccb3d1736413",
"orderId": "646a24c9f464dc8e4460b0a3",
"side": "sell",
"timestamp": "2023-05-23T03:25:25.199Z",
"cost": 12.007380000000001,
"amount": 4.62,
"price": 2.599,
"liquidation": 0,
"confirmedCallBack": 1,
"confirmedCallBackTime": "2023-05-23T03:25:43.583Z",
"profitType": 0,
"profit": -0.5044947599999984,
"sellInfo": {}
},
{
"_id": "646c317868efbb7fe8fbaf47",
"robotId": "6461b9a49f254b7f7161ca2d",
"profileId": "643804c84560ccb3d1736413",
"orderId": "646a2e2ff464dc8e4460b6b8",
"side": "sell",
"timestamp": "2023-05-23T03:22:31.386Z",
"cost": 12.791632069249795,
"amount": 4.938854080791427,
"price": 2.59,
"liquidation": 0,
"confirmedCallBack": 1,
"confirmedCallBackTime": "2023-05-23T03:22:36.194Z",
"profitType": 0,
"profit": 0.2756868347897772,
"sellInfo": {}
},
{
"_id": "646c317868efbb7fe8fbaee1",
"robotId": "6461b9a49f254b7f7161ca2d",
"profileId": "643804c84560ccb3d1736413",
"orderId": "646a3234f464dc8e4460b798",
"side": "sell",
"timestamp": "2023-05-23T03:22:31.386Z",
"cost": 12.8723,
"amount": 4.97,
"price": 2.59,
"liquidation": 0,
"confirmedCallBack": 1,
"confirmedCallBackTime": "2023-05-23T03:22:36.194Z",
"profitType": 0,
"profit": 0.36688539999999864,
"sellInfo": {}
},
{
"_id": "646c317868efbb7fe8fbae6b",
"robotId": "6461b9a49f254b7f7161ca2d",
"profileId": "643804c84560ccb3d1736413",
"orderId": "646a36edf464dc8e4460b829",
"side": "sell",
"timestamp": "2023-05-23T03:22:31.386Z",
"cost": 12.9759,
"amount": 5.01,
"price": 2.59,
"liquidation": 0,
"confirmedCallBack": 1,
"confirmedCallBackTime": "2023-05-23T03:22:36.194Z",
"profitType": 0,
"profit": 0.4600181999999998,
"sellInfo": {}
},
{
"_id": "646c317868efbb7fe8fbadd3",
"robotId": "6461b9a49f254b7f7161ca2d",
"profileId": "643804c84560ccb3d1736413",
"orderId": "646b8030f464dc8e4460f3af",
"side": "sell",
"timestamp": "2023-05-23T03:22:31.386Z",
"cost": 13.341467930750206,
"amount": 5.151145919208574,
"price": 2.59,
"liquidation": 0,
"confirmedCallBack": 1,
"confirmedCallBackTime": "2023-05-23T03:22:36.194Z",
"profitType": 0,
"profit": 0.8181049948887041,
"sellInfo": {}
},
],
"total": 99,
"limit": "10",
"skip": 0,
"sort": {
"createdAt": -1
}
}
This endpoint retrieve the list of robot order details that user subscribe.
HTTP Request
GET https://[apiUrl]/app/robot/getHighFrequencyOrders
| Parameter | Sample Value | Desc |
|---|---|---|
| robotId | [robotId] | Robot Id |
Switch Multi Link Robots
The below command is to switch to multi link robot:
curl --request POST \
--url https://[apiUrl]/app/robot/switchMultiLinkRobots \
--header 'Authorization: Bearer [userToken]' \
--header 'Content-Type: application/json' \
--data '{
"profileId":"",
"strategy":"",
"enable":0,
"clearLinkedRobots":0,
"linkedBy":["",""],
"linkedRobots":[""],
"linkedPercentage":0.5
}'
HTTP Request
POST https://[apiUrl]/app/robot/switchMultiLinkRobots
Switch Auto Link Robots
The below command is to switch to auto link robot:
curl --request POST \
--url https://[apiUrl]/app/robot/switchAutoLinkRobots \
--header 'Authorization: Bearer [userToken]' \
--header 'Content-Type: application/json' \
--data '{
"strategy":"",
"exchange":"",
"enable": 0,
"clearLinkedRobots": 0
}'
HTTP Request
POST https://[apiUrl]/app/robot/switchAutoLinkRobots
Restart Insufficient Robot
The below command is to restart robot that have insufficient stocks:
curl --request POST \
--url https://[apiUrl]/app/robot/restartInsufficientStocks \
--header 'Authorization: Bearer [userToken]' \
--header 'Content-Type: application/json' \
--data '{
"robotId": [robotId]
}'
HTTP Request
POST https://[apiUrl]/app/robot/restartInsufficientStocks
Liquidise Robot
The below command is to liquidise specific robot.
curl --request POST \
--url https://[apiUrl]/app/robot/liquidiseRobot \
--header 'Authorization: Bearer [userToken]' \
--header 'Content-Type: application/json' \
--data '{
"robotId": [robotId]
}'
HTTP Request
POST https://[apiUrl]/app/robot/liquidiseRobot
Enable Profile Fund Limit
The below command is to update robot fund limit.
curl --request POST \
--url https://[apiUrl]/app/robot/enableProfileFundLimit \
--header 'Authorization: Bearer [userToken]' \
--header 'Content-Type: application/json' \
--data '{
"profileId": [robotProfile Id],
"limit": 1000,
"strategy": "highFrequency"
}'
HTTP Request
POST https://[apiUrl]/app/robot/enableProfileFundLimit
Edit High Frequency Robot
The below command is to edit existing robot setting.
curl --request POST \
--url https://[apiUrl]/app/robot/editRobotSetting \
--header 'Authorization: Bearer [userToken]' \
--header 'Content-Type: application/json' \
--data '{
"robotId":"",
"symbol":"",
"coinPrice":1750.00,
"amount":1000,
"enableDynamicMinPrice":1,
"minPrice":875,
"maxPrice":2200.00,
"enableAutoAdjustTop":1,
"enableBuyTrigger":0,
"enableLinkRobot":0,
"minPriceGapRange":0.5,
"useDefaultSetting":0,
"closeAtMaxPrice":0,
"isPreStop":0,
"linkedRobotId":[robotId],
"linkedPercentage":0.5,
"linkRobotType":0,
"closeAtMaxPrice":0,
"useDefaultSetting":0,
}'
| Parameter | Sample Value | Desc |
|---|---|---|
| isPreStop | 0 | Robot is pre-stop |
| linkedRobotId | [robotId] | robotId to link |
| linkRobotType | 0 | linkRobot type: 0 indicate normal link |
| closeAtMaxPrice | 0 | close to max price |
| useDefaultSetting | 0 | Default Setting is 0 |
HTTP Request
POST https://[apiUrl]/app/robot/editRobotSetting
Disable Linked Robot
The below command is to disable linked robot.
curl --request POST \
--url https://[apiUrl]/app/robot/disableLinkedRobots \
--header 'Authorization: Bearer [userToken]' \
--header 'Content-Type: application/json' \
--data '{
"profileId": "[profileId]",
"platform": "binance",
"strategy": "highFrequency"
}'
HTTP Request
POST https://[apiUrl]/app/robot/disableLinkedRobots
Create High Frequency Robot
The below command is create High Frequency Robot settlement in USDT.
curl --request POST \
--url https://[apiUrl]/app/robot/createHighFrequencyRobot \
--header 'Authorization: Bearer [userToken]' \
--header 'Content-Type: application/json' \
--data '{
"symbol":"",
"coinPrice":1750.00,
"amount":1000,
"enableDynamicMinPrice":1,
"minPrice":875.00,
"maxPrice":2187.50,
"enableAutoAdjustTop":1,
"minPriceGapRange":0.5,
"profileId":"",
"enableBuyTrigger":0,
"enableLinkRobot":0,
"linkedPercentage":0,
"useDefaultSetting":0,
"closeAtMaxPrice":0
}'
HTTP Request
POST https://[apiUrl]/app/robot/createHighFrequencyRobot
Create High Frequency Coin Robot
The below command is create High Frequency Robot settlement in coin.
curl --request POST \
--url https://[apiUrl]/app/robot/createHighFrequencyCoinRobot \
--header 'Authorization: Bearer [userToken]' \
--header 'Content-Type: application/json' \
--data '{
"symbol": "BTCUSDT",
"coinPrice": 45975.77,
"amount": 1000,
"enableDynamicMinPrice": 1,
"minPrice": 22987.885,
"maxPrice": 57469.712499999994,
"minPriceGapRange": 0.5,
"profileId":[robotProfileId],
"useDefaultSetting": 0,
"closeAtMaxPrice": 0
}'
HTTP Request
POST https://[apiUrl]/app/robot/createHighFrequencyCoinRobot
Liquidise average price
The below command is to liquidise robot with average price.
curl --request POST \
--url https://[apiUrl]/app/robot/avgLiquidiseRobot \
--header 'Authorization: Bearer [userToken]' \
--header 'Content-Type: application/json' \
--data '{
"robotId": "[robotId]"
}'
HTTP Request
POST https://[apiUrl]/app/robot/avgLiquidiseRobot
Cancel liquidise average price
The below command is to cancel liquidise robot with average price.
curl --request POST \
--url https://[apiUrl]/app/robot/cancelAvgLiquidiseRobot \
--header 'Authorization: Bearer [userToken]' \
--header 'Content-Type: application/json' \
--data '{
"robotId": "[robotId]"
}'
HTTP Request
POST https://[apiUrl]/app/robot/cancelAvgLiquidiseRobot
All Position Control
The below command is to control all position robots.
curl --request POST \
--url https://[apiUrl]/app/robot/allRobotActions \
--header 'Authorization: Bearer [userToken]' \
--header 'Content-Type: application/json' \
--data '{
"robotProfileId":[""],
"strategy":"highFrequency",
"actionType":"",
"logs":true
}'
| Parameter | Sample Value | Desc |
|---|---|---|
| robotProfileId | [robotProfileId] | Robot Profile Id |
| strategy | "highFrequency" | Either on Robot or Coin. |
| actionType | "tempSell" | Action to call for robots. |
Below are "actionType" parameter value.
| Sample Value | Desc |
|---|---|
| "tempSell" | To temporary Sell |
| "stopBuy" | To Stop buy |
| "restart" | To Restart robot |
| "autoLink" | To switch on autolink |
| "multiLink" | To switch on multilink |
HTTP Request
POST https://[apiUrl]/app/robot/allRobotActions
Get Trx Pools
The below command is to get the list of data of Gap Optimisation with robotId.
curl --request GET \
--url 'https://[apiUrl]/app/robot/getTrxPools?robotId=[robotId]' \
--header 'Authorization: Bearer [userToken]' \
--header 'Content-Type: application/json''
The above command returns JSON structured like this:
{
"data": [
{
"_id": "64747461141c22845d96eac3",
"robotId": "6464505b8623b7c3cf5db7ac",
"robotSourceType": 0,
"contributorId": "6464505b8623b7c3cf5db7ac",
"contributorSourceType": 0,
"trxType": "OUT",
"amount": 0.15937394421816253,
"createdAt": "2023-05-29T09:46:09.366Z",
"updatedAt": "2023-05-29T09:46:09.366Z",
"__v": 0
},
{
"_id": "64747460141c22845d96eab2",
"orderId": "64747460141c22845d96eaaf",
"robotId": "6464505b8623b7c3cf5db7ac",
"robotSourceType": 0,
"contributorId": "6464505b8623b7c3cf5db7ac",
"contributorSourceType": 0,
"trxType": "IN",
"amount": 0.05910509935065572,
"createdAt": "2023-05-29T09:46:08.177Z",
"updatedAt": "2023-05-29T09:46:08.177Z",
"__v": 0
},
{
"_id": "64747460141c22845d96eaa9",
"orderId": "64747460141c22845d96eaa6",
"robotId": "6464505b8623b7c3cf5db7ac",
"robotSourceType": 0,
"contributorId": "6464505b8623b7c3cf5db7ac",
"contributorSourceType": 0,
"trxType": "IN",
"amount": 0.10026884486750681,
"createdAt": "2023-05-29T09:46:08.129Z",
"updatedAt": "2023-05-29T09:46:08.129Z",
"__v": 0
},
{
"_id": "6465382e12f21a47ec83eede",
"robotId": "6464505b8623b7c3cf5db7ac",
"robotSourceType": 0,
"contributorId": "6464505b8623b7c3cf5db7ac",
"contributorSourceType": 0,
"trxType": "OUT",
"amount": 0.0694682464000001,
"createdAt": "2023-05-17T20:25:18.053Z",
"updatedAt": "2023-05-17T20:25:18.053Z",
"__v": 0
},
{
"_id": "6465382c12f21a47ec83eecc",
"orderId": "6465382c12f21a47ec83eec9",
"robotId": "6464505b8623b7c3cf5db7ac",
"robotSourceType": 0,
"contributorId": "6464505b8623b7c3cf5db7ac",
"contributorSourceType": 0,
"trxType": "IN",
"amount": 0.0694682464000001,
"createdAt": "2023-05-17T20:25:16.126Z",
"updatedAt": "2023-05-17T20:25:16.126Z",
"__v": 0
}
],
"total": 5,
"skip": 0,
"sort": {
"createdAt": -1
}
}
HTTP Request
GET https://[apiUrl]/app/robot/getTrxPools?robotId=[robotId]
Get Available Symbol List
The below command is to get the available list of coin.
curl --request GET \
--url 'https://[apiUrl]/app/robot/getAvailableSymbolList?exchange=binance' \
--header 'Authorization: Bearer [userToken]' \
--header 'Content-Type: application/json''
The above command returns JSON structured like this:
{
"data": [
{
"price": 0.02327,
"time": 1689249105827,
"symbol": "TUSDT",
"origMarketSymbol": "TUSDT",
"minRobotAmount": 750
},
{
"price": 0.228,
"time": 1689249062078,
"symbol": "GMTUSDT",
"origMarketSymbol": "GMTUSDT",
"minRobotAmount": 750
},
{
"price": 3.138,
"time": 1689248881780,
"symbol": "PYRUSDT",
"origMarketSymbol": "PYRUSDT",
"minRobotAmount": 750
},
{
"price": 5.365,
"time": 1689249084047,
"symbol": "UNIUSDT",
"origMarketSymbol": "UNIUSDT",
"minRobotAmount": 750
},
]
}
HTTP Request
GET https://[apiUrl]/app/robot/getAvailableSymbolList?exchange=[exchange]
Get Coin Profit Details Data
The below command is to profit details of coin that user purchase.
curl --request GET \
--url https://[apiUrl]/app/robot/getCoinProfitData \
--header 'Authorization: Bearer [userToken]'
| Parameter | Sample Value | Desc |
|---|---|---|
| profileIdIn | ["asd","axx"] | List of robotProfileId (Optional) |
| robotType | "highFrequency" | Settlement in Coin ora USDT(Optional) |
| type | "day" | Display transactions on day (Optional) |
| liquidation | 0 | Include liqudation (Optional) |
| dateStr | 2023-12 | Date String |
The above command returns JSON structured like this:
{
"data": [
{
"symbol": "IDEXUSDT",
"totalProfit": 1.144210953090813,
"totalOriginProfit": 1.144210953090813,
"totalExcludeProfit": 0
}
],
"total": 1,
"skip": 0,
"sort": {
"totalProfit": -1
}
}
HTTP Request
GET https://[apiUrl]/app/robot/getCoinProfitData
Get Profit Total Robot Profit
The below command is to get the total profit of the accumulated profit.
curl --request GET \
--url https://[apiUrl]/app/robot/getProfileTotalRobotProfit \
--header 'Authorization: Bearer [userToken]'
The above command returns JSON structured like this:
{
"totalProfit": 1.144210953090813,
"startDate": "2023-05-17T03:56:11.766Z",
"data": {
"_id": null,
"totalProfit": 1.144210953090813,
"totalOriginProfit": 1.144210953090813,
"totalExcludeProfit": 0,
"totalCoinEarned": 0,
"createdAt": "2023-05-18T16:00:00.776Z"
}
}
HTTP Request
GET https://[apiUrl]/app/robot/getProfileTotalRobotProfit
Copy Trade
Get Copy Trade Pool
curl --request GET \
--url 'https://[apiUrl]/app/copytrade/getCopyTradePool' \
--header 'Authorization: Bearer [userToken]'
The above command returns JSON structured like this:
[
{
"_id": 100,
"minFundingAmount": 100,
"availableFundPortion": 998,
"fundingAmount": 100000,
"profileId": "64145079221db0373277964c"
},
{
"_id": 250,
"minFundingAmount": 250,
"availableFundPortion": 400,
"fundingAmount": 100000,
"profileId": "64141be52138e268aac99a51"
},
{
"_id": 300,
"minFundingAmount": 300,
"availableFundPortion": 62,
"fundingAmount": 20000,
"profileId": "638451a70612c44081ee8f27"
},
{
"_id": 500,
"minFundingAmount": 500,
"availableFundPortion": 182,
"fundingAmount": 100000,
"profileId": "63884abbd1f71d889997b332"
}
]
This endpoint retrieves all available pool funds.
HTTP Request
GET https://[apiUrl]/app/copytrade/getCopyTradePool
Get Info Total Pool
curl --request GET \
--url 'https://[apiUrl]/app/copytrade/getInfoTotal' \
--header 'Authorization: Bearer [userToken]'
The above command returns JSON structured like this:
{
"totalAmount": 118600,
"totalEarnedProfit": 799.606605,
"totalProfit": 41305.958904369865
}
This endpoint retrieves the total info profit of swiftInvest.
HTTP Request
GET https://[apiUrl]/app/copytrade/getInfoTotal
Get Owner Orders Record
curl --request GET \
--url 'https://[apiUrl]/app/copytrade/getOwnerOrdersRecord?subscriptionsId=[subscriptionId]' \
--header 'Authorization: Bearer [userToken]'
The above command returns JSON structured like this:
{
"data": [
{
"_id": "6468fa0e12f21a47ec845ec9",
"robotId": "641c1bd6739dea1609813f46",
"profileId": "63888c0c7cd0c15b19b46995",
"orderId": "6468fa0dcd9ab57203de1107",
"side": "buy",
"timestamp": "2023-05-20T16:49:17.043Z",
"cost": 33.33,
"amount": 212.69942565411614,
"price": 0.1567,
"liquidation": 0,
"confirmedCallBack": 1,
"confirmedCallBackTime": "2023-05-20T16:49:19.935Z",
"profitType": 0,
"isActive": 1
},
{
"_id": "6468f8ad12f21a47ec845e8e",
"robotId": "63f34d4016d0b1c7c3a14d72",
"profileId": "63888c0c7cd0c15b19b46995",
"orderId": "6468f8adcd9ab57203de10d7",
"side": "buy",
"timestamp": "2023-05-20T16:43:25.553Z",
"cost": 12.5,
"amount": 4.442075337597726,
"price": 2.814,
"liquidation": 0,
"confirmedCallBack": 1,
"confirmedCallBackTime": "2023-05-20T16:43:30.015Z",
"profitType": 0,
"isActive": 1
},
{
"_id": "6468ee0b12f21a47ec845d85",
"robotId": "641c1bd6739dea1609813f46",
"profileId": "63888c0c7cd0c15b19b46995",
"orderId": "6468e62bcd9ab57203de0f50",
"side": "sell",
"timestamp": "2023-05-20T15:58:01.666Z",
"cost": 34.14721,
"amount": 211.7,
"price": 0.1613,
"liquidation": 0,
"confirmedCallBack": 1,
"confirmedCallBackTime": "2023-05-20T15:58:07.484Z",
"profitType": 0,
"profit": 0.7573355799999972,
"sellInfo": {}
},
{
"_id": "6468e62c12f21a47ec845cdb",
"robotId": "641c1bd6739dea1609813f46",
"profileId": "63888c0c7cd0c15b19b46995",
"orderId": "6468e62bcd9ab57203de0f50",
"side": "buy",
"timestamp": "2023-05-20T15:24:27.907Z",
"cost": 33.33,
"amount": 211.75349428208384,
"price": 0.1574,
"liquidation": 0,
"confirmedCallBack": 1,
"confirmedCallBackTime": "2023-05-20T15:24:33.865Z",
"profitType": 0,
"isActive": 0
},
{
"_id": "6468e1ec12f21a47ec845c72",
"robotId": "641c1bd6739dea1609813f46",
"profileId": "63888c0c7cd0c15b19b46995",
"orderId": "645fa473cd9ab57203dc3e41",
"side": "sell",
"timestamp": "2023-05-20T15:06:18.934Z",
"cost": 34.25693613138686,
"amount": 211.33211678832117,
"price": 0.1621,
"liquidation": 0,
"confirmedCallBack": 1,
"confirmedCallBackTime": "2023-05-20T15:06:25.145Z",
"profitType": 0,
"profit": 0.8613474416058368,
"sellInfo": {}
},
{
"_id": "6468e1ec12f21a47ec845c6b",
"robotId": "641c1bd6739dea1609813f46",
"profileId": "63888c0c7cd0c15b19b46995",
"orderId": "646488decd9ab57203dd14dc",
"side": "sell",
"timestamp": "2023-05-20T15:06:18.934Z",
"cost": 35.85131386861314,
"amount": 221.16788321167883,
"price": 0.1621,
"liquidation": 0,
"confirmedCallBack": 1,
"confirmedCallBackTime": "2023-05-20T15:06:25.145Z",
"profitType": 0,
"profit": 2.4496112408759108,
"sellInfo": {}
},
{
"_id": "6468dc1812f21a47ec845b89",
"robotId": "641c1bd6739dea1609813f46",
"profileId": "63888c0c7cd0c15b19b46995",
"orderId": "6465bb8fcd9ab57203dd6f1a",
"side": "sell",
"timestamp": "2023-05-20T14:41:26.602Z",
"cost": 34.14769074708705,
"amount": 224.65586017820428,
"price": 0.152,
"liquidation": 0,
"confirmedCallBack": 1,
"confirmedCallBackTime": "2023-05-20T14:41:31.209Z",
"profitType": 0,
"profit": 0.7629313011651837,
"sellInfo": {}
},
{
"_id": "6468dc1812f21a47ec845b82",
"robotId": "641c1bd6739dea1609813f46",
"profileId": "63888c0c7cd0c15b19b46995",
"orderId": "646665aacd9ab57203dda352",
"side": "sell",
"timestamp": "2023-05-20T14:41:26.602Z",
"cost": 34.723509252912955,
"amount": 228.44413982179574,
"price": 0.152,
"liquidation": 0,
"confirmedCallBack": 1,
"confirmedCallBackTime": "2023-05-20T14:41:31.209Z",
"profitType": 0,
"profit": 1.3240622344071267,
"sellInfo": {}
},
{
"_id": "6468cc0d12f21a47ec845a24",
"robotId": "646468c98623b7c3cf5dbcc0",
"profileId": "64645f668623b7c3cf5dbc26",
"orderId": "64688f75cd9ab57203de03d6",
"side": "sell",
"timestamp": "2023-05-20T13:32:59.370Z",
"cost": 17.11247219858156,
"amount": 295.04262411347514,
"price": 0.058,
"liquidation": 0,
"confirmedCallBack": 1,
"confirmedCallBackTime": "2023-05-20T13:33:03.548Z",
"profitType": 0,
"profit": 0.40833899177305,
"sellInfo": {}
},
{
"_id": "6468cc0d12f21a47ec845a1b",
"robotId": "646468c98623b7c3cf5dbcc0",
"profileId": "64645f668623b7c3cf5dbc26",
"orderId": "64689609cd9ab57203de048a",
"side": "sell",
"timestamp": "2023-05-20T13:32:59.370Z",
"cost": 17.142907801418442,
"amount": 295.56737588652487,
"price": 0.058,
"liquidation": 0,
"confirmedCallBack": 1,
"confirmedCallBackTime": "2023-05-20T13:33:03.548Z",
"profitType": 0,
"profit": 0.43862198581560413,
"sellInfo": {}
}
],
"total": 2252,
"skip": 0,
"sort": {
"createdAt": -1
}
}
This endpoint retrieves the list of owner total orders record.
HTTP Request
GET https://[apiUrl]/app/copytrade/getOwnerOrdersRecord
Query Parameters
| Parameter | Sample | Desc |
|---|---|---|
| subscriptionsId | [subscriptionId] | Subscription Id |
Get Owner Robot Pool
curl --request GET \
--url 'https://[apiUrl]/app/copytrade/getOwnerRobotPool?subscriptionsId=[subscriptionId]' \
--header 'Authorization: Bearer [userToken]'
The above command returns JSON structured like this:
{
"data": [
{
"_id": "646e34815806e7c60ee8bc89",
"profileId": "63884abbd1f71d889997b332",
"openDateStr": "24-05-2023",
"openDate": "2023-05-24T16:00:01.049Z",
"profit": 0,
"distributedProfit": 0,
"status": 1,
"createdAt": "2023-05-24T16:00:01.050Z",
"updatedAt": "2023-05-24T16:00:01.050Z",
"__v": 0
},
{
"_id": "646ce3005806e7c60ee8afcb",
"profileId": "63884abbd1f71d889997b332",
"openDateStr": "23-05-2023",
"openDate": "2023-05-23T16:00:00.154Z",
"profit": 0,
"distributedProfit": 0,
"status": 1,
"createdAt": "2023-05-23T16:00:00.155Z",
"updatedAt": "2023-05-23T16:00:00.155Z",
"__v": 0
},
{
"_id": "646b9180156503ac3b31a41b",
"profileId": "63884abbd1f71d889997b332",
"openDateStr": "22-05-2023",
"openDate": "2023-05-22T16:00:00.705Z",
"profit": 0,
"distributedProfit": 0,
"status": 1,
"createdAt": "2023-05-22T16:00:00.706Z",
"updatedAt": "2023-05-22T16:00:00.706Z",
"__v": 0
},
],
"total": 71,
"skip": 0,
"sort": {
"createdAt": -1
}
}
This endpoint retrieves the list of pool owner profit with parameter subscriptionId.
HTTP Request
GET https://[apiUrl]/app/copytrade/getOwnerRobotPool
Query Parameters
| Parameter | Sample | Desc |
|---|---|---|
| subscriptionsId | [subscriptionId] | Subscription Id |
| openDateStr | 14-05-2023 | Get Specific date (Optional) |
Get Pool Owner Daily Profit
curl --request GET \
--url 'https://[apiUrl]/app/copytrade/getPoolOwnerDailyProfit?minFundingAmount=300' \
--header 'Authorization: Bearer [userToken]'
The above command returns JSON structured like this:
{
"data": [
{
"date": "2023-01-14",
"totalProfit": 47.94725609339998,
"totalOriginProfit": 47.94725609339998,
"totalExcludeProfit": 0,
"totalCoinEarned": 0
},
{
"date": "2023-04-09",
"totalProfit": 20.785090520000008,
"totalOriginProfit": 20.785090520000008,
"totalExcludeProfit": 0,
"totalCoinEarned": 0
},
{
"date": "2023-04-06",
"totalProfit": 0.3938028,
"totalOriginProfit": 0.3938028,
"totalExcludeProfit": 0,
"totalCoinEarned": 0
},
{
"date": "2023-02-08",
"totalProfit": 11.52563593999999,
"totalOriginProfit": 11.52563593999999,
"totalExcludeProfit": 0,
"totalCoinEarned": 0
},
{
"date": "2023-03-25",
"totalProfit": 0.7507966000000004,
"totalOriginProfit": 0.7507966000000004,
"totalExcludeProfit": 0,
"totalCoinEarned": 0
},
],
"total": 160,
"skip": 0,
"sort": {
"createdAt": -1
}
}
This endpoint retrieves the list daily profit with parameter minFundingAmount.
HTTP Request
GET https://[apiUrl]/app/copytrade/getPoolOwnerDailyProfit?minFundingAmount=300
Query Parameters
| Parameter | Sample | Sample |
|---|---|---|
| minFundingAmount | 300 | Min funding amount to check data |
| subscriptionId | [subscriptionId] | filter by subsId(Optional) |
| robotType | highFrequency | filter by robotType(Optional) |
| liquidation | 0 | filter by liquidation(Optional) |
Get Pool Owner Total Profit
curl --request GET \
--url 'https://[apiUrl]/app/copytrade/getPoolOwnerTotalProfit?minFundingAmount=300' \
--header 'Authorization: Bearer [userToken]'
The above command returns JSON structured like this:
{
"totalProfit": 1295.4152025328322,
"startDate": "2022-11-29T09:46:06.925Z",
"data": {
"_id": null,
"totalProfit": 1295.4152025328322,
"totalOriginProfit": 1295.4152025328322,
"totalExcludeProfit": 0,
"totalCoinEarned": 0,
"createdAt": "2023-05-15T06:48:19.289Z"
}
}
This endpoint retrieves the list total owner profit with parameter minFundingAmount.
HTTP Request
GET https://[apiUrl]/app/copytrade/getPoolOwnerTotalProfit?minFundingAmount=300
Query Parameters
| Parameter | Sample | Sample |
|---|---|---|
| minFundingAmount | 300 | Min funding amount to check data |
| robotType | highFrequency | filter by robotType(Optional) |
| liquidation | 0 | filter by liquidation(Optional) |
Get Subscription Date Profit
curl --request GET \
--url 'https://[apiUrl]/app/copytrade/getSubscriptionDateProfit2?subscriptionId=[subscriptionId]' \
--header 'Authorization: Bearer [userToken]'
The above command returns JSON structured like this:
{
"data": [
{
"_id": "21-05-2023",
"totalProfit": 0.073357,
"date": "2023-05-20T16:00:06.261Z",
"subscriptionId": "6461d631156503ac3b3073fc",
"poolId": [
"6468ee80156503ac3b319614"
]
},
{
"_id": "20-05-2023",
"totalProfit": 0.037023,
"date": "2023-05-19T16:00:06.074Z",
"subscriptionId": "6461d631156503ac3b3073fc",
"poolId": [
"64679d00156503ac3b3191fb"
]
},
{
"_id": "19-05-2023",
"totalProfit": 0.081595,
"date": "2023-05-18T16:00:08.421Z",
"subscriptionId": "6461d631156503ac3b3073fc",
"poolId": [
"64664b82156503ac3b315c9d"
]
}
],
"total": 5,
"skip": 0,
"sort": {
"date": -1
}
}
This endpoint retrieves the list of subscription date profit.
HTTP Request
GET https://[apiUrl]/app/copytrade/getSubscriptionDateProfit2?subscriptionId=[subscriptionId]
Query Parameters
| Parameter | Sample | Desc |
|---|---|---|
| subscriptionId | [subscriptionId] | Get with subscriptionId |
Get Subscription Profile Daily Profit
curl --request GET \
--url 'https://[apiUrl]/app/copytrade/getSubscriptionsProfileDailyProfit?subscriptionId=[subscriptionId]' \
--header 'Authorization: Bearer [userToken]'
The above command returns JSON structured like this:
{
"data": [
{
"date": "2023-05-11",
"totalProfit": 10.164475840000016,
"totalOriginProfit": 10.164475840000016,
"totalExcludeProfit": 0,
"totalCoinEarned": 0
},
{
"date": "2023-05-18",
"totalProfit": 16.318947638673425,
"totalOriginProfit": 16.318947638673425,
"totalExcludeProfit": 0,
"totalCoinEarned": 0
},
{
"date": "2023-03-28",
"totalProfit": 1.0388539999999995,
"totalOriginProfit": 1.0388539999999995,
"totalExcludeProfit": 0,
"totalCoinEarned": 0
},
{
"date": "2023-04-03",
"totalProfit": 5.161247919999991,
"totalOriginProfit": 5.161247919999991,
"totalExcludeProfit": 0,
"totalCoinEarned": 0
},
{
"date": "2023-04-19",
"totalProfit": 23.253258459999984,
"totalOriginProfit": 23.253258459999984,
"totalExcludeProfit": 0,
"totalCoinEarned": 0
},
{
"date": "2023-03-14",
"totalProfit": 1.7750819999999967,
"totalOriginProfit": 1.7750819999999967,
"totalExcludeProfit": 0,
"totalCoinEarned": 0
},
{
"date": "2023-05-07",
"totalProfit": 34.693667974898005,
"totalOriginProfit": 34.693667974898005,
"totalExcludeProfit": 0,
"totalCoinEarned": 0
},
],
"total": 85,
"skip": 0,
"sort": {
"createdAt": -1
}
}
This endpoint retrieves the list of subscription Profile Daily Profit.
HTTP Request
GET https://[apiUrl]/app/copytrade/getSubscriptionsProfileDailyProfit?subscriptionId=[subscriptionId]
Query Parameters
| Parameter | Sample | Desc |
|---|---|---|
| subscriptionId | [subscriptionId] | Get with subscriptionId |
Get Subscription Profile Details
curl --request GET \
--url 'https://[apiUrl]/app/copytrade/getSubscriptionsProfileDetails?subscriptionId=[subscriptionId]' \
--header 'Authorization: Bearer [userToken]'
The above command returns JSON structured like this:
{
"data": {
"wallet": {
"highFrequency": {
"balance": 0,
"used": 0,
"capital": {
"binance": 1000000
},
"limit": {
"binance": null
}
},
"highFrequencyCoin": {
"balance": 0,
"used": 0
}
},
"username": "102242"
}
}
This endpoint retrieves the details of subscription profile.
HTTP Request
GET https://[apiUrl]/app/copytrade/getSubscriptionsProfileDetails?subscriptionId=[subscriptionId]
Query Parameters
| Parameter | Sample | Desc |
|---|---|---|
| subscriptionId | [subscriptionId] | Get with subscriptionId |
Get Subscription Profile Total Profit
curl --request GET \
--url 'https://[apiUrl]/app/copytrade/getSubscriptionsProfileTotalProfit?subscriptionId=[subscriptionId]' \
--header 'Authorization: Bearer [userToken]'
The above command returns JSON structured like this:
{
"totalProfit": 913.666663604898,
"startDate": "2022-12-06T10:29:39.179Z",
"data": {
"_id": null,
"totalProfit": 913.666663604898,
"totalOriginProfit": 913.666663604898,
"totalExcludeProfit": 0,
"totalCoinEarned": 0,
"createdAt": "2023-05-15T06:48:19.289Z"
}
}
This endpoint retrieves the total profit subscription profile.
HTTP Request
GET https://[apiUrl]/app/copytrade/getSubscriptionsProfileTotalProfit?subscriptionId=[subscriptionId]
Query Parameters
| Parameter | Sample | Desc |
|---|---|---|
| subscriptionId | [subscriptionId] | Get with subscriptionId |
Get Trx Robot Pools
curl --request GET \
--url 'https://[apiUrl]/app/copytrade/getTrxRobotPools?poolId=[poolId]' \
--header 'Authorization: Bearer [userToken]'
The above command returns JSON structured like this:
{
"data": [
{
"_id": "6468ee86156503ac3b3196cf",
"poolId": "6468ee80156503ac3b319614",
"subscriptionId": "6461d631156503ac3b3073fc",
"profileId": "64145060221db0373277961f",
"trxType": "IN",
"amount": 0.073357,
"sourceType": 1,
"createdAt": "2023-05-20T16:00:06.261Z",
"updatedAt": "2023-05-20T16:00:06.261Z",
"__v": 0
},
{
"_id": "6468ee85156503ac3b3196ac",
"poolId": "6468ee80156503ac3b319614",
"subscriptionId": "641809ca724b2acc84f97d84",
"profileId": "6417ffbc724b2acc84f97933",
"trxType": "IN",
"amount": 0.146714,
"sourceType": 1,
"createdAt": "2023-05-20T16:00:05.182Z",
"updatedAt": "2023-05-20T16:00:05.182Z",
"__v": 0
},
],
"total": 7,
"skip": 0,
"sort": {
"createdAt": -1
},
"robotTotalProfit": 15.991881246174271
}
This endpoint retrieve the details data of swift invest distribution on a specific date.
HTTP Request
GET https://[apiUrl]/app/copytrade/getTrxRobotPools?poolId=[poolId]
Query Parameters
| Parameter | Sample | Desc |
|---|---|---|
| poolId | [poolId] | Get with poolId |
Get Profit Details
curl --request GET \
--url 'https://[apiUrl]/app/copytrade/getProfitDetails' \
--header 'Authorization: Bearer [userToken]'
The above command returns JSON structured like this:
{
"totalData": {
"_id": "63884abbd1f71d889997b332",
"totalProfit": 950.771961643792,
"totalDistribute": 866.830538
}
}
This endpoint retrieve the details totalProfit and totalDistribute.
HTTP Request
GET https://[apiUrl]/app/copytrade/getProfitDetails
Get Robot Pools
curl --request GET \
--url 'https://[apiUrl]/app/copytrade/getRobotPools' \
--header 'Authorization: Bearer [userToken]'
The above command returns JSON structured like this:
{
"data": [
{
"_id": "646e34815806e7c60ee8bc89",
"profileId": "63884abbd1f71d889997b332",
"openDateStr": "24-05-2023",
"openDate": "2023-05-24T16:00:01.049Z",
"profit": 0,
"distributedProfit": 0,
"status": 1,
"createdAt": "2023-05-24T16:00:01.050Z",
"updatedAt": "2023-05-24T16:00:01.050Z",
"__v": 0
},
{
"_id": "646ce3005806e7c60ee8afcb",
"profileId": "63884abbd1f71d889997b332",
"openDateStr": "23-05-2023",
"openDate": "2023-05-23T16:00:00.154Z",
"profit": 0,
"distributedProfit": 0,
"status": 1,
"createdAt": "2023-05-23T16:00:00.155Z",
"updatedAt": "2023-05-23T16:00:00.155Z",
"__v": 0
},
{
"_id": "646b9180156503ac3b31a41b",
"profileId": "63884abbd1f71d889997b332",
"openDateStr": "22-05-2023",
"openDate": "2023-05-22T16:00:00.705Z",
"profit": 0,
"distributedProfit": 0,
"status": 1,
"createdAt": "2023-05-22T16:00:00.706Z",
"updatedAt": "2023-05-22T16:00:00.706Z",
"__v": 0
},
{
"_id": "646a4000156503ac3b31975d",
"profileId": "63884abbd1f71d889997b332",
"openDateStr": "21-05-2023",
"openDate": "2023-05-21T16:00:00.211Z",
"profit": 0,
"distributedProfit": 0,
"status": 1,
"createdAt": "2023-05-21T16:00:00.211Z",
"updatedAt": "2023-05-21T16:00:00.211Z",
"__v": 0
},
{
"_id": "6468ee80156503ac3b319614",
"profileId": "63884abbd1f71d889997b332",
"openDateStr": "20-05-2023",
"openDate": "2023-05-20T16:00:00.808Z",
"profit": 14.671455246174274,
"distributedProfit": 1.3204259999999999,
"status": 0,
"createdAt": "2023-05-20T16:00:00.809Z",
"updatedAt": "2023-05-20T16:00:06.272Z",
"__v": 0,
"closeDate": "2023-05-20T16:00:00.831Z",
"closeDateStr": "21-05-2023"
},
],
"total": 71,
"skip": 0,
"sort": {
"createdAt": -1
}
}
This endpoint retrieve the details total robot pool of the pool owner.
HTTP Request
GET https://[apiUrl]/app/copytrade/getRobotPools
Get Subscriber Amount
curl --request GET \
--url 'https://[apiUrl]/app/copytrade/getSubscriberAmount' \
--header 'Authorization: Bearer [userToken]'
The above command returns JSON structured like this:
{
"total": 6,
"typeTotal": [
{
"_id": "SwiftInvest01 - 35%",
"name": "SwiftInvest01 - 35%",
"profileId": "63884abbd1f71d889997b332",
"count": 4
},
{
"_id": "SwiftInvest03 - 16%",
"name": "SwiftInvest03 - 16%",
"profileId": "63884abbd1f71d889997b332",
"count": 2
}
]
}
This endpoint retrieve the total subscriber one each of the plan.
HTTP Request
GET https://[apiUrl]/app/copytrade/getSubscriberAmount
Get Pool Owner Profile
curl --request POST \
--url 'https://[apiUrl]/app/copytrade/getPoolOwnerProfile' \
--header 'Authorization: Bearer [userToken]'
The above command returns JSON structured like this:
{
"_id": "63884abbd1f71d889997b332",
"username": "102242",
"wallet": {
"highFrequency": {
"balance": 0,
"used": 0,
"capital": {
"binance": 1000000
},
"limit": {
"binance": null
}
},
"highFrequencyCoin": {
"balance": 0,
"used": 0
}
},
"availableFundPortion": 182,
"fundingAmount": 100000,
"minFundingAmount": 500
}
This endpoint retrieve the pool owner details.
HTTP Request
POST https://[apiUrl]/app/copytrade/getPoolOwnerProfile
Cancel Subscription
curl --request POST \
--url https://[apiUrl]/app/copytrade/cancelSubscription \
--header 'Authorization: Bearer [userToken]' \
--header 'Content-Type: application/json' \
--data '{
"subscriptionId": "[subscriptionId]"
}'
This API is let user to cancel the subscription of swiftInvest.
HTTP Request
POST https://[apiUrl]/app/copytrade/cancelSubscription
Get Floating Transactions
The below command is to get the list of data floating fund.
curl --request GET \
--url 'https://[apiUrl]/app/copytrade/getFloatingTransactions' \
--header 'Authorization: Bearer [userToken]'
The above command returns JSON structured like this:
{
"data": [
{
"_id": "64b10f8fb3d6b7f5108ac2c5",
"profileId": "64145060221db0373277961f",
"subscribeProfileId": "64250e564158f1c0700ef2f9",
"status": 0,
"amount": 100,
"refundRoi": 0,
"amountType": 0,
"floatType": 2,
"releaseDate": "2023-07-15T09:04:15.954Z",
"createDate": "2023-07-14T09:04:15.954Z",
"createdAt": "2023-07-14T09:04:15.955Z",
"updatedAt": "2023-07-14T09:04:15.955Z",
"__v": 0,
"populatedSubscribeProfileId": {
"_id": "64250e564158f1c0700ef2f9",
"name": "SwiftInvest02 - 25%",
"investPlanId": "64142e8d221db03732778eb3",
"profileId": "64145079221db0373277964c",
"profileUsername": "[email protected]",
"subscriberId": "64145060221db0373277961f",
"subscriberUsername": "[email protected]",
"takenQty": 1,
"minLot": 100,
"amount": 100,
"roi": 12.328767,
"period": 0,
"maturityDate": "2023-09-26T04:21:42.788Z",
"gasFee": 2.465753,
"unrealiseProfit": 0,
"realisedProfit": 0,
"returnAmount": 100,
"refundRoi": 0,
"status": 2,
"createdAt": "2023-03-30T04:21:42.790Z",
"updatedAt": "2023-07-14T09:04:15.973Z",
"__v": 0,
"redeemDate": "2023-07-14T09:04:15.973Z",
"populatedInvestPlanId": {
"_id": "64142e8d221db03732778eb3",
"title": "SwiftInvest02",
"rate": 0.25,
"period": 180,
"status": 1,
"createdAt": "2023-03-17T09:10:37.657Z",
"updatedAt": "2023-03-19T05:43:25.742Z",
"__v": 0
}
}
}
],
"total": 1,
"limit": "10",
"skip": 0,
"sort": {
"createdAt": -1
}
}
HTTP Request
GET https://[apiUrl]/app/copytrade/getFloatingTransactions
Query Parameters
| Parameter | Nullable | Sample |
|---|---|---|
| status | false | 0 |
| populate | false | { service:"subscribe-profile-robots", foreignId:"subscribeProfileId", populate:[{service:"invest-plan",foreignId:"investPlanId"}]} |
Coin Reference
Generate Coin Reference Key
The below command is to generate a Coin Refernce profile based on profileId:
curl --request POST \
--url https://[apiUrl]/app/main/generateCoinReferenceKey \
HTTP Request
POST https://[apiUrl]/app/main/generateCoinReferenceKey
The above command returns JSON structured like this:
{
"profileId": "636370060f52b3ad3394d0a2",
"timestamp": 1702373246146,
"accessKey": "1b7f175a50f99889cc4cf8f0028bdb937cc0ed11d1bae6c3cdef0bb108fab8e4"
}
Authenticate Coin Reference Profile
To authorize coin reference, use this code:
# With shell, you can just pass the correct header with each request
curl --request POST \
--url https://[coinReferenceUrl]/authenticate-profile \
--header 'Content-Type: application/json' \
--data '{
"profileId": "profileId",
"timestamp": 1684317804465,
"accessKey": "userAccessKey"
}'
The above command returns JSON structured like this:
{
"user": {
"_id": "636370060f52b3ad3394d0a0",
"username": "kevin",
"roles": [
"user"
],
"referralCode": "A1G4P2",
"password": "$2a$10$M4ivQZES2UnGaaHspbzdsOToTRfUmcGCptCOdwCG.oH3HCmvPiGwK",
"secondPassword": "123",
"createdAt": "2022-11-03T07:38:46.254Z",
"updatedAt": "2022-11-03T07:38:46.254Z",
"__v": 0,
"profile": {
"_id": "636370060f52b3ad3394d0a2",
"username": "kevin",
"ranking": 0,
"expiredAt": 0,
"balanceUsdt": 0,
"balanceVsdt": 0,
"balanceVoucher": 0,
"balanceFrozen": 0,
"balanceProfit": 0,
"wallet": {
"highFrequency": {
"balance": 0,
"used": 0,
"capital": {
"binance": 273000,
"bybit": 124000,
"tokocrypto": 260000,
"bitget": 206000,
"bingx": 253000
}
}
},
"exchangeInsufficientBalance": 0,
"onHoldUsdt": 0,
"startedRobot": 0,
"initedRobot": 0,
"enableLevelEdit": 0,
"suspendedBuyUntil": "1970-01-01T00:00:00.000Z",
"enableRewards": 0,
"enableInsertCampaign": 0,
"parent": [],
"transactions": [],
"robotProfiles": [
{
"exchange": "binance",
"usedFor": "binance",
"robotProfileId": "63637006fa556812be5559af",
"_id": "636370060f52b3ad3394d0a5"
},
{
"exchange": "bybit",
"usedFor": "bybit",
"robotProfileId": "648034077e1211005d517ec6",
"_id": "64bdfd414f7b97fe6b467020"
},
{
"exchange": "tokocrypto",
"usedFor": "tokocrypto",
"robotProfileId": "648046d07e1211005d517ec8",
"_id": "64bdfd414f7b97fe6b467021"
},
{
"exchange": "bitget",
"usedFor": "bitget",
"robotProfileId": "648046c97e1211005d517ec7",
"_id": "64bdfd414f7b97fe6b467022"
},
{
"exchange": "bingx",
"usedFor": "bingx",
"robotProfileId": "64bdfd40d4b597343d4d9da4",
"_id": "64bdfd414f7b97fe6b46701e"
}
],
"addressList": [],
"createdAt": "2022-11-03T07:38:46.270Z",
"updatedAt": "2023-08-15T10:31:30.362Z",
"__v": 0
}
},
"token": "eyJhbGciOiJIUzI1NiIsInR5cCI6ImFjY2VzcyJ9.eyJzdWIiOnsiX2lkIjoiNjM2MzcwMDYwZjUyYjNhZDMzOTRkMGEwIiwidXNlcm5hbWUiOiJrZXZpbiIsInJvbGVzIjpbInVzZXIiXSwicmVmZXJyYWxDb2RlIjoiQTFHNFAyIiwicGFzc3dvcmQiOiIkMmEkMTAkTTRpdlFaRVMyVW5HYWFIc3BiemRzT1RvVFJmVW1jR0NwdENPZHdDRy5vSDNIQ212UGlHd0siLCJzZWNvbmRQYXNzd29yZCI6IjEyMyIsImNyZWF0ZWRBdCI6IjIwMjItMTEtMDNUMDc6Mzg6NDYuMjU0WiIsInVwZGF0ZWRBdCI6IjIwMjItMTEtMDNUMDc6Mzg6NDYuMjU0WiIsIl9fdiI6MCwicHJvZmlsZSI6eyJfaWQiOiI2MzYzNzAwNjBmNTJiM2FkMzM5NGQwYTIiLCJ1c2VybmFtZSI6ImtldmluIiwicmFua2luZyI6MCwiZXhwaXJlZEF0IjowLCJiYWxhbmNlVXNkdCI6MCwiYmFsYW5jZVZzZHQiOjAsImJhbGFuY2VWb3VjaGVyIjowLCJiYWxhbmNlRnJvemVuIjowLCJiYWxhbmNlUHJvZml0IjowLCJ3YWxsZXQiOnsiaGlnaEZyZXF1ZW5jeSI6eyJiYWxhbmNlIjowLCJ1c2VkIjowLCJjYXBpdGFsIjp7ImJpbmFuY2UiOjI3MzAwMCwiYnliaXQiOjEyNDAwMCwidG9rb2NyeXB0byI6MjYwMDAwLCJiaXRnZXQiOjIwNjAwMCwiYmluZ3giOjI1MzAwMH19fSwiZXhjaGFuZ2VJbnN1ZmZpY2llbnRCYWxhbmNlIjowLCJvbkhvbGRVc2R0IjowLCJzdGFydGVkUm9ib3QiOjAsImluaXRlZFJvYm90IjowLCJlbmFibGVMZXZlbEVkaXQiOjAsInN1c3BlbmRlZEJ1eVVudGlsIjoiMTk3MC0wMS0wMVQwMDowMDowMC4wMDBaIiwiZW5hYmxlUmV3YXJkcyI6MCwiZW5hYmxlSW5zZXJ0Q2FtcGFpZ24iOjAsInBhcmVudCI6W10sInRyYW5zYWN0aW9ucyI6W10sInJvYm90UHJvZmlsZXMiOlt7ImV4Y2hhbmdlIjoiYmluYW5jZSIsInVzZWRGb3IiOiJiaW5hbmNlIiwicm9ib3RQcm9maWxlSWQiOiI2MzYzNzAwNmZhNTU2ODEyYmU1NTU5YWYiLCJfaWQiOiI2MzYzNzAwNjBmNTJiM2FkMzM5NGQwYTUifSx7ImV4Y2hhbmdlIjoiYnliaXQiLCJ1c2VkRm9yIjoiYnliaXQiLCJyb2JvdFByb2ZpbGVJZCI6IjY0ODAzNDA3N2UxMjExMDA1ZDUxN2VjNiIsIl9pZCI6IjY0YmRmZDQxNGY3Yjk3ZmU2YjQ2NzAyMCJ9LHsiZXhjaGFuZ2UiOiJ0b2tvY3J5cHRvIiwidXNlZEZvciI6InRva29jcnlwdG8iLCJyb2JvdFByb2ZpbGVJZCI6IjY0ODA0NmQwN2UxMjExMDA1ZDUxN2VjOCIsIl9pZCI6IjY0YmRmZDQxNGY3Yjk3ZmU2YjQ2NzAyMSJ9LHsiZXhjaGFuZ2UiOiJiaXRnZXQiLCJ1c2VkRm9yIjoiYml0Z2V0Iiwicm9ib3RQcm9maWxlSWQiOiI2NDgwNDZjOTdlMTIxMTAwNWQ1MTdlYzciLCJfaWQiOiI2NGJkZmQ0MTRmN2I5N2ZlNmI0NjcwMjIifSx7ImV4Y2hhbmdlIjoiYmluZ3giLCJ1c2VkRm9yIjoiYmluZ3giLCJyb2JvdFByb2ZpbGVJZCI6IjY0YmRmZDQwZDRiNTk3MzQzZDRkOWRhNCIsIl9pZCI6IjY0YmRmZDQxNGY3Yjk3ZmU2YjQ2NzAxZSJ9XSwiYWRkcmVzc0xpc3QiOltdLCJjcmVhdGVkQXQiOiIyMDIyLTExLTAzVDA3OjM4OjQ2LjI3MFoiLCJ1cGRhdGVkQXQiOiIyMDIzLTA4LTE1VDEwOjMxOjMwLjM2MloiLCJfX3YiOjB9fSwiaWF0IjoxNzAyNDU0MDMwLCJleHAiOjE3MDI1NDA0MzAsImF1ZCI6Imh0dHBzOi8veW91cmRvbWFpbi5jb20iLCJpc3MiOiJmZWF0aGVycyJ9.J8wL0O_vVIgHkuW1-b5UuJuTzeNkbjNZvpdSODZD2c4"
}
Get Daily Top Coins
curl --request GET \
--url https://[coinReferenceUrl]/app/robot/getDailyTopCoins?profileId=[profileId] \
--header 'Authorization: Bearer [userToken]' \
This endpoint is to retrieve the top gainers on each platform .
The above command returns JSON structured like this:
[
"MAGICUSDT",
"SFPUSDT",
"LUNCUSDT",
"IOTAUSDT",
"VIDTUSDT",
"AMPUSDT",
"GALUSDT",
"APTUSDT",
"FILUSDT",
"TROYUSDT",
"ROSEUSDT",
"AGIXUSDT",
"FXSUSDT",
"JOEUSDT",
"GRTUSDT",
"CITYUSDT",
"BETAUSDT",
"ONEUSDT",
"LEVERUSDT",
"BNBUSDT",
"XLMUSDT",
"VIBUSDT",
"PORTOUSDT",
"VICUSDT",
"STORJUSDT"
]
HTTP Request
GET https://[coinReferenceUrl]/app/robot/getDailyTopCoins?limit=10&skip=0&profileId=[userProfileId]
| Parameter | Sample Value | Desc |
|---|---|---|
| profileId | "profileId" | Robot Profile Id |
Get Profiles
curl --request GET \
--url https://[coinReferenceUrl]/app/profile/getProfiles \
--header 'Authorization: Bearer [userToken]' \
This endpoint is to retrieve the profile details to retrive any data in the coin reference module.
The above command returns JSON structured like this:
{
"data": [
{
"_id": "a6545645678461",
"userId": "4152156684892025561456",
"username": "kevin",
"ranking": 0,
"expiredAt": 0,
"balanceUsdt": 0,
"balanceVsdt": 0,
"balanceVoucher": 0,
"balanceFrozen": 0,
"balanceProfit": 0,
"wallet": {
"highFrequency": {
"balance": 0,
"used": 0,
"capital": {
"binance": 273000,
"bybit": 124000,
"tokocrypto": 260000,
"bitget": 206000,
"bingx": 253000
}
}
},
"exchangeInsufficientBalance": 0,
"onHoldUsdt": 0,
"startedRobot": 0,
"initedRobot": 0,
"enableLevelEdit": 0,
"suspendedBuyUntil": "1970-01-01T00:00:00.000Z",
"enableRewards": 0,
"enableInsertCampaign": 0,
"parent": [],
"transactions": [],
"robotProfiles": [
{
"exchange": "binance",
"usedFor": "binance",
"robotProfileId": "63637006fa556812be5559af",
"_id": "636370060f52b3ad3394d0a5"
},
{
"exchange": "bybit",
"usedFor": "bybit",
"robotProfileId": "648034077e1211005d517ec6",
"_id": "64bdfd414f7b97fe6b467020"
},
{
"exchange": "tokocrypto",
"usedFor": "tokocrypto",
"robotProfileId": "648046d07e1211005d517ec8",
"_id": "64bdfd414f7b97fe6b467021"
},
{
"exchange": "bitget",
"usedFor": "bitget",
"robotProfileId": "648046c97e1211005d517ec7",
"_id": "64bdfd414f7b97fe6b467022"
},
{
"exchange": "bingx",
"usedFor": "bingx",
"robotProfileId": "64bdfd40d4b597343d4d9da4",
"_id": "64bdfd414f7b97fe6b46701e"
}
],
"addressList": [],
"createdAt": "2022-11-03T07:38:46.270Z",
"updatedAt": "2023-08-15T10:31:30.362Z",
"__v": 0,
"apiSize": 0,
"userIdObjId": "636370060f52b3ad3394d0a0",
"populatedUserId": {
"_id": "636370060f52b3ad3394d0a0",
"username": "kevin",
"roles": [
"user"
],
"referralCode": "A1G4P2",
"password": "$2a$10$M4ivQZES2UnGaaHspbzdsOToTRfUmcGCptCOdwCG.oH3HCmvPiGwK",
"secondPassword": "123",
"createdAt": "2022-11-03T07:38:46.254Z",
"updatedAt": "2022-11-03T07:38:46.254Z",
"__v": 0
},
"sponsorIdObjId": ""
}
],
"total": 1,
"limit": "1",
"skip": 0,
"sort": {
"createdAt": -1
}
}
HTTP Request
GET https://[coinReferenceUrl]/app/profile/getProfiles?limit=10&skip=0&_id=[userProfileId]
| Parameter | Sample Value | Desc |
|---|---|---|
| limit | "all" | Limit size of data |
| skip | 0 | Pagination of data |
| _id | profile Id | User profile ID |
Get Profile Daily Profit 2
curl --request GET \
--url https://[coinReferenceUrl]/app/robot/getProfileDailyProfit2?profileIdIn=[profileIdArray]&robotType=highFrequency\
--header 'Authorization: Bearer [userToken]' \
This endpoint is to get the bar chart details of each day.
The above command returns JSON structured like this:
{
"data": [
{
"date": "2023-12-13",
"totalProfit": 1.9698766773531047,
"totalOriginProfit": 1.9698766773531047,
"totalExcludeProfit": 0,
"totalCoinEarned": 0
},
{
"date": "2023-12-12",
"totalProfit": 10.539745091689253,
"totalOriginProfit": 10.539745091689253,
"totalExcludeProfit": 0,
"totalCoinEarned": 0
},
{
"date": "2023-12-11",
"totalProfit": 8.087331114696298,
"totalOriginProfit": 8.087331114696298,
"totalExcludeProfit": 0,
"totalCoinEarned": 0
},
],
"total": 397,
"limit": "50",
"skip": 0,
"sort": {
"timestamp": -1
}
}
HTTP Request
GET https://[coinReferenceUrl]/app/robot/getProfileDailyProfit2
| Parameter | Sample Value | Desc |
|---|---|---|
| liquidation | 0 | Whether include liquidation (Optional) |
| profileIdIn | ["asd","axx"] | List of robotProfileId (Optional) |
| timestampMin | 2023-05-23T00:00:00%2B08:00 | Minimum Date (Optional) |
| timestampMax | 2023-05-23T00:00:00%2B08:00 | Maximum Date (Optional) |
| robotType | "highFrequency" | Settlement in Coin ora USDT(Optional) |
Get Profile Total Robot Profit
curl --request GET \
--url https://[coinReferenceUrl]/app/robot/getProfileTotalRobotProfit?robotType=[robotType] \
--header 'Authorization: Bearer [userToken]' \
This endpoint is to retrieve the total profit of the profile of coin reference
The above command returns JSON structured like this:
{
"totalProfit": 157329.3576314678,
"startDate": "2022-11-03T19:01:38.628Z",
"data": {
"_id": null,
"totalProfit": 157329.3576314678,
"totalOriginProfit": 5308.545210813169,
"totalExcludeProfit": 0,
"totalCoinEarned": 0,
"createdAt": "2023-03-16T03:56:09.626Z"
}
}
| Parameter | Sample Value | Desc |
|---|---|---|
| profileIdIn | ["asd","axx"] | List of robotProfileId (Optional) |
| robotType | "highFrequency" | Settlement in Coin ora USDT(Optional) |
Get Robot Profiles
curl --request GET \
--url https://[coinReferenceUrl]/app/robot/getRobotProfiles?idIn=[robotProfileId] \
--header 'Authorization: Bearer [userToken]' \
This endpoint is to retrieve the robot profiles of coin reference
HTTP Request
GET https://[coinReferenceUrl]/app/robot/getRobotProfiles?_id=[robotProfileId]
| Parameter | Sample Value | Desc |
|---|---|---|
| idIn | "robotProfileId" | Array of RobotProfileId |
The above command returns JSON structured like this:
{
"data": [
{
"_id": "63637006fa556812be5559af",
"username": "kevin-binance",
"exchange": "binance",
"profitEarned": 153220.59436236415,
"enableProfitLimit": 0,
"stopProfile": 0,
"profitLimit": 0,
"totalCover": 448978,
"balanceOrder": 21028,
"balanceOrderCost": 350482.64050658554,
"robotFundLimit": {
"highFrequency": {
"enable": 1,
"limit": 271000,
"used": 27220.593630666674,
"balance": 243779.40636933333
}
},
"totalRobotAmount": 612000,
"status": 0,
"createdAt": "2022-11-03T07:38:46.345Z",
"updatedAt": "2023-12-13T05:13:49.117Z",
"settings": {
"highFrequency": {
"preStop": 0,
"autoLink": 0
}
},
"strategySummary": {
"highFrequency": {
"_id": null,
"totalCover": 171509,
"totalRobotAmount": 203000,
"balanceOrder": 1634,
"balanceOrderAmount": 2071824.8712270276,
"balanceOrderCost": 27220.593630666674,
"profitEarned": 70400.71721921927,
"totalRobots": 203
}
}
}
],
"total": 1,
"skip": 0,
"sort": {
"createdAt": -1
}
}
Get HighFrequency Robots
curl --request GET \
--url https://[coinReferenceUrl]/app/robot/getHighFrequencyRobots?profileIdIn=[profileId]&liquidation=0&profitTypeNe=1 \
--header 'Authorization: Bearer [userToken]' \
This endpoint is to get the active robot of the coin reference profile.
HTTP Request
GET https://[coinReferenceUrl]/app/robot/getHighFrequencyRobots
| Parameter | Sample Value | Desc |
|---|---|---|
| profileId | [robotProfileId] | Enter Robot profile id to get data |
| liquidation | 0 | Include liqudation (Optional) |
| exchange | "binance" | Type of exchange |
| liquidationne | 0 | Retrieve not active robot (Optional) |
| limit | "all" (default:10) | Retrieve data all or with pagination |
| isAdmin | true | Show all fields |
| skip | 0 | page to skip |
| enableLinkRobot | 0 | 0 to link robot (Optional) |
| _idNe | [robotId] | Find robot that not equal to this id (Optional) |
| needLinkByOthersNe | 1 | Indicate this robot need link by other robot (Optional) |
| linkRobotTypeOr | 3 | Involve multilink robot (Optional) |
| profitType | 0 or 1 | Indicate whther highFrequency or highFrequencyCoin |
The above command returns JSON structured like this:
[
{
"_id": "656c7866e4158822501022bf",
"profileId": "63637006fa556812be5559af",
"grid": 60,
"exchange": "binance",
"symbolStatus": {
"isStop": 0,
"isGapPulling": 1,
"isNormal": 1,
"isPreStop": 0
},
"loop": 1,
"isPreStop": 0,
"amount": 1000,
"symbol": "SEIUSDT",
"minPrice": 0.1482,
"maxPrice": 0.342625,
"profitEarned": 3.068254196052145,
"canBuyOrder": 1,
"canSellOrder": 1,
"enableAutoAdjustTop": 1,
"enableBuyTrigger": 0,
"enableMultiSell": 0,
"enableDynamicMinPrice": 1,
"minPriceGapRange": 0.5,
"firstOrderChangeLogs": [
{
"clientOrderId": "2v2xdy-656c786c8164327cdc7b2e2d-buy",
"createdAt": "2023-12-03T12:45:35.034Z",
"orderDate": "2023-12-03T12:45:32.996Z",
"price": 0.2741,
"amount": 60.8172199927034,
"cost": 16.67
},
{
"clientOrderId": "2v2xdy-656d45118164327cdc7b348a-buy",
"createdAt": "2023-12-04T03:18:42.747Z",
"orderDate": "2023-12-04T03:18:41.583Z",
"price": 0.2872,
"amount": 58.043175487465184,
"cost": 16.67
},
{
"clientOrderId": "2v2xdy-656d46ee8164327cdc7b34a2-buy",
"createdAt": "2023-12-04T03:26:40.544Z",
"orderDate": "2023-12-04T03:26:38.989Z",
"price": 0.2964,
"amount": 56.24156545209178,
"cost": 16.67
}
],
"status": 3,
"totalCover": 13,
"balanceOrder": 5,
"avgStockPrice": 0.2920103187005547,
"backUpFundsPool": 0,
"enableLinkRobot": 0,
"linkedPercentage": 0,
"createdAt": "2023-12-03T12:45:26.358Z",
"liquidation": 0,
"liquidDate": "1970-01-01T00:00:00.000Z",
"balanceOrderAmount": 285.4351187687727,
"systemPreStop": 0,
"latestOrderPrice": 0.288,
"closeAtMaxPrice": 0,
"useDefaultSetting": 0,
"logicErrorStatus": 1,
"logicErrorMessage": "{\"message\":\"socket hang up\",\"name\":\"Error\",\"stack\":\"Error: socket hang up\\n at connResetException (node:internal/errors:787:14)\\n at Socket.socketOnEnd (node:_http_client:519:23)\\n at Socket.emit (node:events:527:35)\\n at endReadableNT (node:internal/streams/readable:1589:12)\\n at process.processTicksAndRejections (node:internal/process/task_queues:82:21)\",\"config\":{\"transitional\":{\"silentJSONParsing\":true,\"forcedJSONParsing\":true,\"clarifyTimeoutError\":false},\"transformRequest\":[null],\"transformResponse\":[null],\"timeout\":0,\"xsrfCookieName\":\"XSRF-TOKEN\",\"xsrfHeaderName\":\"X-XSRF-TOKEN\",\"maxContentLength\":-1,\"maxBodyLength\":-1,\"headers\":{\"Accept\":\"application/json, text/plain, */*\",\"User-Agent\":\"axios/0.26.1\"},\"params\":{\"robotId\":\"656c7866e4158822501022bf\"},\"method\":\"get\",\"url\":\"http://167.179.91.45:5003/api/high-frequency/updateRobotInfoToRedis\"},\"code\":\"ECONNRESET\",\"status\":null}",
"customLiquidation": 0,
"customLiquidationAt": 0,
"triggeredOrderCount": 0,
"soldOrderCount": 8,
"populatedProfileId": {
"_id": "63637006fa556812be5559af",
"username": "kevin-binance",
"exchange": "binance",
"stopProfile": 0,
"status": 0,
"enableProfitLimit": 0,
"profitLimit": 0,
"robotFundLimit": {
"highFrequency": {
"enable": 1,
"limit": 271000,
"used": 27220.593630666674,
"balance": 243779.40636933333
}
},
"createdAt": "2022-11-03T07:38:46.345Z",
"updatedAt": "2023-12-13T05:13:49.117Z",
"__v": 0,
"balanceOrder": 21028,
"balanceOrderAmount": 776542075.0813724,
"balanceOrderCost": 350482.64050658554,
"profitEarned": 153220.59436236415,
"totalCover": 448978,
"totalRobotAmount": 612000,
"settings": {
"highFrequency": {
"preStop": 0,
"autoLink": 0
}
},
"strategySummary": {
"highFrequency": {
"_id": null,
"totalCover": 171509,
"totalRobotAmount": 203000,
"balanceOrder": 1634,
"balanceOrderAmount": 2071824.8712270276,
"balanceOrderCost": 27220.593630666674,
"profitEarned": 70400.71721921927,
"totalRobots": 203
}
}
},
"profitType": 0,
"linkRobotType": 0
},
{
"_id": "656719359cf294807d7574d8",
"profileId": "63637006fa556812be5559af",
"grid": 60,
"exchange": "binance",
"symbolStatus": {
"isStop": 0,
"isGapPulling": 1,
"isNormal": 1,
"isPreStop": 0
},
"loop": 1,
"isPreStop": 0,
"amount": 1000,
"symbol": "RAREUSDT",
"minPrice": 0.0774,
"maxPrice": 0.1935,
"profitEarned": 44.88798265824683,
"canBuyOrder": 1,
"canSellOrder": 1,
"enableAutoAdjustTop": 1,
"enableBuyTrigger": 0,
"enableMultiSell": 0,
"enableDynamicMinPrice": 1,
"minPriceGapRange": 0.5,
"firstOrderChangeLogs": [
{
"clientOrderId": "h7XsUL-6567193f512d00ad68a0f93e-buy",
"createdAt": "2023-11-29T10:58:08.697Z",
"orderDate": "2023-11-29T10:58:07.346Z",
"price": 0.1238,
"amount": 134.65266558966076,
"cost": 16.67
},
{
"clientOrderId": "h7XsUL-6568f0da512d00ad68a10337-buy",
"createdAt": "2023-11-30T20:30:20.724Z",
"orderDate": "2023-11-30T20:30:18.523Z",
"price": 0.1269,
"amount": 131.3632781717888,
"cost": 16.67
},
{
"clientOrderId": "h7XsUL-6568fdb4512d00ad68a10390-buy",
"createdAt": "2023-11-30T21:25:10.217Z",
"orderDate": "2023-11-30T21:25:08.355Z",
"price": 0.1326,
"amount": 125.71644042232279,
"cost": 16.67
},
{
"clientOrderId": "h7XsUL-656c49b08164327cdc7b2d1f-buy",
"createdAt": "2023-12-03T09:26:10.038Z",
"orderDate": "2023-12-03T09:26:08.453Z",
"price": 0.1363,
"amount": 122.3037417461482,
"cost": 16.67
},
{
"clientOrderId": "h7XsUL-656d043b8164327cdc7b3242-buy",
"createdAt": "2023-12-03T22:42:06.357Z",
"orderDate": "2023-12-03T22:42:03.381Z",
"price": 0.1436,
"amount": 116.08635097493037,
"cost": 16.67
},
{
"clientOrderId": "h7XsUL-656dabf88164327cdc7b4dad-buy",
"createdAt": "2023-12-04T10:37:47.268Z",
"orderDate": "2023-12-04T10:37:45.020Z",
"price": 0.1526,
"amount": 109.23984272608126,
"cost": 16.67
},
{
"clientOrderId": "h7XsUL-656fb8af824c0b4fcf8874d6-buy",
"createdAt": "2023-12-05T23:56:33.644Z",
"orderDate": "2023-12-05T23:56:31.125Z",
"price": 0.1548,
"amount": 107.687338501292,
"cost": 16.67
}
],
"status": 0,
"totalCover": 94,
"balanceOrder": 14,
"avgStockPrice": 0.1412623416859993,
"backUpFundsPool": 1.3898252833298659,
"enableLinkRobot": 0,
"linkedPercentage": 0,
"createdAt": "2023-11-29T10:57:57.595Z",
"liquidation": 0,
"liquidDate": "1970-01-01T00:00:00.000Z",
"balanceOrderAmount": 1652.1034354560095,
"systemPreStop": 0,
"latestOrderPrice": 0.1152,
"closeAtMaxPrice": 0,
"useDefaultSetting": 0,
"logicErrorStatus": 0,
"customLiquidation": 0,
"customLiquidationAt": 0,
"triggeredOrderCount": 0,
"soldOrderCount": 80,
"populatedProfileId": {
"_id": "63637006fa556812be5559af",
"username": "kevin-binance",
"exchange": "binance",
"stopProfile": 0,
"status": 0,
"enableProfitLimit": 0,
"profitLimit": 0,
"robotFundLimit": {
"highFrequency": {
"enable": 1,
"limit": 271000,
"used": 27220.593630666674,
"balance": 243779.40636933333
}
},
"createdAt": "2022-11-03T07:38:46.345Z",
"updatedAt": "2023-12-13T05:13:49.117Z",
"__v": 0,
"balanceOrder": 21028,
"balanceOrderAmount": 776542075.0813724,
"balanceOrderCost": 350482.64050658554,
"profitEarned": 153220.59436236415,
"totalCover": 448978,
"totalRobotAmount": 612000,
"settings": {
"highFrequency": {
"preStop": 0,
"autoLink": 0
}
},
"strategySummary": {
"highFrequency": {
"_id": null,
"totalCover": 171509,
"totalRobotAmount": 203000,
"balanceOrder": 1634,
"balanceOrderAmount": 2071824.8712270276,
"balanceOrderCost": 27220.593630666674,
"profitEarned": 70400.71721921927,
"totalRobots": 203
}
}
},
"profitType": 0,
"linkRobotType": 0
},
]
Get High Frequency Orders
curl --request GET \
--url https://[coinReferenceUrl]/app/robot/getHighFrequencyOrders?robotId=[robotId] \
--header 'Authorization: Bearer [userToken]' \
This endpoint is to get the high frequency orders of the coin reference profile.
HTTP Request
GET https://[coinReferenceUrl]/app/robot/getHighFrequencyOrders
| Parameter | Sample Value | Desc |
|---|---|---|
| robotId | [robotId] | Robot Id |
| liqudation | 0 | Include liqudation (Optional) |
| profitType | 0 or 1 | 0 will be highFrequency while 1 will be highFrequencyCoin |
| exchange | binance | Type of exchange |
The above command returns JSON structured like this:
{
"data": [
{
"_id": "656d5abc3c36215319b99dcc",
"robotId": "656c7866e4158822501022bf",
"profileId": "63637006fa556812be5559af",
"orderId": "656d5abb8164327cdc7b3570",
"side": "buy",
"timestamp": "2023-12-04T04:51:07.443Z",
"cost": 16.67,
"amount": 57.88194444444446,
"price": 0.288,
"buyInfo": {
"isActive": 1,
"amountTrigger": 0.29807999999999996,
"amountSell": 0.29750399999999994,
"sendBuyPrice": 0.288,
"extraAmount": 0,
"extraAmount2": 0,
"level": 5
},
"liquidation": 0,
"confirmedCallBack": 1,
"confirmedCallBackTime": "2023-12-04T04:51:09.927Z",
"profitType": 0,
"isActive": 1,
"compensateAmount": 0
},
{
"_id": "656d55bc3c36215319b998f6",
"robotId": "656c7866e4158822501022bf",
"profileId": "63637006fa556812be5559af",
"orderId": "656d55bb8164327cdc7b3530",
"side": "buy",
"timestamp": "2023-12-04T04:29:47.906Z",
"cost": 16.67,
"amount": 57.482758620689665,
"price": 0.29,
"buyInfo": {
"isActive": 1,
"amountTrigger": 0.30015,
"amountSell": 0.29956999999999995,
"sendBuyPrice": 0.29,
"extraAmount": 0,
"extraAmount2": 0,
"level": 4
},
"liquidation": 0,
"confirmedCallBack": 1,
"confirmedCallBackTime": "2023-12-04T04:29:50.328Z",
"profitType": 0,
"isActive": 1,
"compensateAmount": 0
},
{
"_id": "656d55003c36215319b998c5",
"robotId": "656c7866e4158822501022bf",
"profileId": "63637006fa556812be5559af",
"orderId": "656d54ff8164327cdc7b352d",
"side": "buy",
"timestamp": "2023-12-04T04:26:39.591Z",
"cost": 16.67,
"amount": 57.12816997943798,
"price": 0.2918,
"buyInfo": {
"isActive": 1,
"amountTrigger": 0.302013,
"amountSell": 0.30142939999999996,
"sendBuyPrice": 0.2918,
"extraAmount": 0,
"extraAmount2": 0,
"level": 3
},
"liquidation": 0,
"confirmedCallBack": 1,
"confirmedCallBackTime": "2023-12-04T04:26:42.807Z",
"profitType": 0,
"isActive": 1,
"compensateAmount": 0
},
],
"total": 21,
"limit": "10",
"skip": 0,
"sort": {
"createdAt": -1
}
}
Get Robot Setting Change Logs
curl --request GET \
--url https://[coinReferenceUrl]/app/robot/getRobotSettingChangeLogs?robotId=[robotId] \
--header 'Authorization: Bearer [userToken]' \
This endpoint is to get the change logs of that particular robot.
HTTP Request
GET https://[coinReferenceUrl]/app/robot/getRobotSettingChangeLogs
| Parameter | Sample Value | Desc |
|---|---|---|
| robotId | [robotId] | Pass robot Id to get settingLog |
The above command returns JSON structured like this:
{
"data": [
{
"_id": "656c78893c36215319b869f4",
"robotId": "656c7866e4158822501022bf",
"grid": 60,
"loop": 1,
"isPreStop": 0,
"liquidation": 0,
"amount": 1000,
"symbol": "SEIUSDT",
"minPrice": 0.13705,
"maxPrice": 0.342625,
"systemShut": 0,
"canBuyOrder": 1,
"canSellOrder": 1,
"profitType": 0,
"enableAutoAdjustTop": 1,
"enableBuyTrigger": 0,
"enableMultiSell": 0,
"enableDynamicMinPrice": 1,
"enableMaxPriceAdjust": 1,
"minPriceGapRange": 0.5,
"enableLinkRobot": 0,
"linkedPercentage": 0,
"initialPosition": 0,
"isMaxPriceReadjust": 0,
"__v": 0,
"createdAt": "2023-12-03T12:46:01.768Z",
"updatedAt": "2023-12-03T12:46:01.768Z"
},
{
"_id": "656c7867e4158822501022c1",
"robotId": "656c7866e4158822501022bf",
"grid": 60,
"loop": 1,
"isPreStop": 0,
"liquidation": 0,
"amount": 1000,
"symbol": "SEIUSDT",
"minPrice": 0.1371,
"maxPrice": 0.34275,
"systemShut": 0,
"canBuyOrder": 1,
"canSellOrder": 1,
"profitType": 0,
"enableAutoAdjustTop": 1,
"enableBuyTrigger": 0,
"enableMultiSell": 0,
"enableDynamicMinPrice": 1,
"enableMaxPriceAdjust": 0,
"minPriceGapRange": 0.5,
"enableLinkRobot": 0,
"linkedPercentage": 0,
"initialPosition": 0,
"isMaxPriceReadjust": 0,
"createdAt": "2023-12-03T12:45:26.358Z",
"updatedAt": "2023-12-03T12:45:26.358Z",
"__v": 0
}
],
"total": 2,
"limit": "10",
"skip": 0,
"sort": {
"createdAt": -1
}
}
Get Trx Pools
The below command is to get the list of data of Insurance with robotId.
curl --request GET \
--url 'https://[coinReferenceUrl]/app/robot/getTrxPools?robotId=[robotId]' \
--header 'Authorization: Bearer [userToken]' \
--header 'Content-Type: application/json''
| Parameter | Sample Value | Desc |
|---|---|---|
| robotId | [robotId] | Robot Id |
The above command returns JSON structured like this:
{
"data": [
{
"_id": "64747461141c22845d96eac3",
"robotId": "6464505b8623b7c3cf5db7ac",
"robotSourceType": 0,
"contributorId": "6464505b8623b7c3cf5db7ac",
"contributorSourceType": 0,
"trxType": "OUT",
"amount": 0.15937394421816253,
"createdAt": "2023-05-29T09:46:09.366Z",
"updatedAt": "2023-05-29T09:46:09.366Z",
"__v": 0
},
{
"_id": "64747460141c22845d96eab2",
"orderId": "64747460141c22845d96eaaf",
"robotId": "6464505b8623b7c3cf5db7ac",
"robotSourceType": 0,
"contributorId": "6464505b8623b7c3cf5db7ac",
"contributorSourceType": 0,
"trxType": "IN",
"amount": 0.05910509935065572,
"createdAt": "2023-05-29T09:46:08.177Z",
"updatedAt": "2023-05-29T09:46:08.177Z",
"__v": 0
},
{
"_id": "64747460141c22845d96eaa9",
"orderId": "64747460141c22845d96eaa6",
"robotId": "6464505b8623b7c3cf5db7ac",
"robotSourceType": 0,
"contributorId": "6464505b8623b7c3cf5db7ac",
"contributorSourceType": 0,
"trxType": "IN",
"amount": 0.10026884486750681,
"createdAt": "2023-05-29T09:46:08.129Z",
"updatedAt": "2023-05-29T09:46:08.129Z",
"__v": 0
},
{
"_id": "6465382e12f21a47ec83eede",
"robotId": "6464505b8623b7c3cf5db7ac",
"robotSourceType": 0,
"contributorId": "6464505b8623b7c3cf5db7ac",
"contributorSourceType": 0,
"trxType": "OUT",
"amount": 0.0694682464000001,
"createdAt": "2023-05-17T20:25:18.053Z",
"updatedAt": "2023-05-17T20:25:18.053Z",
"__v": 0
},
{
"_id": "6465382c12f21a47ec83eecc",
"orderId": "6465382c12f21a47ec83eec9",
"robotId": "6464505b8623b7c3cf5db7ac",
"robotSourceType": 0,
"contributorId": "6464505b8623b7c3cf5db7ac",
"contributorSourceType": 0,
"trxType": "IN",
"amount": 0.0694682464000001,
"createdAt": "2023-05-17T20:25:16.126Z",
"updatedAt": "2023-05-17T20:25:16.126Z",
"__v": 0
}
],
"total": 5,
"skip": 0,
"sort": {
"createdAt": -1
}
}
HTTP Request
GET https://[coinReferenceUrl]/app/robot/getTrxPools?robotId=[robotId]
Get Robot Transactions Summary
curl --request GET \
--url https://[coinReferenceUrl]/app/robot/getRobotTransactionsSummary \
--header 'Authorization: Bearer [userToken]'
The above command returns JSON structured like this:
{
"data": [
{
"_id": "6465382c12f21a47ec83eec9",
"robotId": "6464505b8623b7c3cf5db7ac",
"profileId": "644b16d1c0039d2393b517d9",
"orderId": "6464b9d4cd9ab57203dd2218",
"side": "sell",
"timestamp": "2023-05-17T20:25:14.334Z",
"cost": 12.868884,
"amount": 156.1,
"price": 0.08244,
"liquidation": 0,
"confirmedCallBack": 1,
"populatedRobotId": {
"_id": "6464505b8623b7c3cf5db7ac",
"profileId": "644b16d1c0039d2393b517d9",
"grid": 60,
"exchange": "binance",
"loop": 1,
"isPreStop": 0,
"amount": 750,
"symbol": "IDEXUSDT",
"minPrice": 0.041775,
"maxPrice": 0.1044375,
"profitEarned": 0.3473412320000005,
"canBuyOrder": 1,
"canSellOrder": 1,
"enableAutoAdjustTop": 1,
"enableBuyTrigger": 0,
"enableMultiSell": 0,
"enableDynamicMinPrice": 1,
"minPriceGapRange": 0.5,
"firstOrderChangeLogs": [
{
"clientOrderId": "0W7b2x-6464505dcd9ab57203dd0964-buy",
"createdAt": "2023-05-17T03:56:16.283Z",
"orderDate": "2023-05-17T03:56:13.370Z",
"price": 0.08355,
"amount": 149.61101137043687,
"cost": 12.5
}
],
"status": 0,
"totalCover": 5,
"balanceOrder": 4,
"avgStockPrice": 0.08186604830122426,
"backUpFundsPool": 0,
"enableLinkRobot": 0,
"linkedPercentage": 0,
"createdAt": "2023-05-17T03:56:11.766Z",
"liquidation": 0,
"liquidDate": "1970-01-01T00:00:00.000Z",
"balanceOrderAmount": 610.7537988889624,
"systemPreStop": 0,
"latestOrderPrice": 0.08071,
"closeAtMaxPrice": 0,
"useDefaultSetting": 0,
"logicErrorStatus": 0,
"customLiquidation": 0,
"customLiquidationAt": 0,
"profitType": 0,
"linkRobotType": 0
},
"confirmedCallBackTime": "2023-05-17T20:25:18.339Z",
"profitType": 0,
"profit": 0.3473412320000005,
"sellInfo": {},
"profileTransaction": {
"_id": "6465382e156503ac3b3131ea",
"profileId": "64391a180374e630d95f8de3",
"robotId": "6464505b8623b7c3cf5db7ac",
"orderId": "6465382c12f21a47ec83eec9",
"amount": 0.0694682464000001,
"trxType": "OUT",
"amountType": 0,
"sourceType": 10,
"createdAt": "2023-05-17T20:25:18.343Z",
"updatedAt": "2023-05-17T20:25:18.343Z",
"__v": 0
}
}
],
"total": 1,
"skip": 0,
"sort": {
"createdAt": -1
}
}
This endpoint retrieve a list of robot transactions.
HTTP Request
GET https://[coinReferenceUrl]/app/robot/getRobotTransactionsSummary
| Parameter | Sample Value | Desc |
|---|---|---|
| timestampMin | 2023-05-23T00:00:00%2B08:00 | Minimum Date (Optional) |
| timestampMax | 2023-05-23T00:59:59%2B08:00 | Maximum Date (Optional) |
| type | "day" | Display transactions on day (Optional) |
| liquidation | 0 | Show record without liquidation (Optional) |
| showRecord | true (default: false) | True to show robot profit else will be coin profit |
| today | true (default: false) | True to show today record (optional) |
Get Coin Profit Data
The below command is to profit details of coin that user purchase.
curl --request GET \
--url https://[coinReferenceUrl]/app/robot/getCoinProfitData \
--header 'Authorization: Bearer [userToken]'
| Parameter | Sample Value | Desc |
|---|---|---|
| profileIdIn | ["asd","axx"] | List of robotProfileId (Optional) |
| robotType | "highFrequency" | Settlement in Coin ora USDT(Optional) |
| type | "day" | Display transactions on day (Optional) |
| liquidation | 0 | Include liqudation (Optional) |
| dateStr | 2023-12 | Date String |
The above command returns JSON structured like this:
{
"data": [
{
"symbol": "IDEXUSDT",
"totalProfit": 1.144210953090813,
"totalOriginProfit": 1.144210953090813,
"totalExcludeProfit": 0
}
],
"total": 1,
"skip": 0,
"sort": {
"totalProfit": -1
}
}
HTTP Request
GET https://[coinReferenceUrl]/app/robot/getCoinProfitData
V2 API
Get Profile Total Robot Net Profit
The below command is to get the total net profit of the accumulated profit.
curl --request GET \
--url https://[apiUrl]/app/robot/getProfileTotalRobotNetProfit \
--header 'Authorization: Bearer [userToken]'
The above command returns JSON structured like this:
{
"_id": null,
"totalProfit": 89.86657151873541,
"totalOriginProfit": 103.7966825511582,
"totalCompensateAmount": 0,
"totalExcludeProfit": 13.930111032422793,
"totalCoinEarned": 0,
"createdAt": "2023-07-06T16:14:02.589Z"
}
HTTP Request
GET https://[apiUrl]/app/robot/getProfileTotalRobotNetProfit
| Parameter | Sample | Desc |
|---|---|---|
| robotType | 'highFrequency' | Indicate is SwiftBot or coin settlement |
| ignoreProfitNe | 1 | Indicate whether to ignoreProfit not equal |
Get Robot Transactions Ehances
curl --request GET \
--url https://[apiUrl]/app/robot/getRobotTransactionsEnhances \
--header 'Authorization: Bearer [userToken]'
The above command returns JSON structured like this:
{
"data": [
{
"date": "2023-10-24",
"totalProfit": 0.14158325000000016,
"totalOriginProfit": 0.2831665000000003,
"totalExcludeProfit": 0.14158325000000016,
"totalCompensateAmount": 0,
"totalCoinEarned": 0
},
{
"date": "2023-10-23",
"totalProfit": 0.1360031999999996,
"totalOriginProfit": 0.2720063999999992,
"totalExcludeProfit": 0.1360031999999996,
"totalCompensateAmount": 0,
"totalCoinEarned": 0
},
{
"date": "2023-10-22",
"totalProfit": 0.3308913535282514,
"totalOriginProfit": 0.6617827070565028,
"totalExcludeProfit": 0.3308913535282514,
"totalCompensateAmount": 0,
"totalCoinEarned": 0
},
{
"date": "2023-10-21",
"totalProfit": 0.7653481004604422,
"totalOriginProfit": 1.5306962009208844,
"totalExcludeProfit": 0.7653481004604422,
"totalCompensateAmount": 0,
"totalCoinEarned": 0
},
{
"date": "2023-10-16",
"totalProfit": 0.4333342590163931,
"totalOriginProfit": 0.8666685180327862,
"totalExcludeProfit": 0.4333342590163931,
"totalCompensateAmount": 0,
"totalCoinEarned": 0
},
{
"date": "2023-09-08",
"totalProfit": 0.2817635000000003,
"totalOriginProfit": 0.5635270000000006,
"totalExcludeProfit": 0.2817635000000003,
"totalCompensateAmount": 0,
"totalCoinEarned": 0
},
{
"date": "2023-09-07",
"totalProfit": 0.46714411500000075,
"totalOriginProfit": 0.9342882300000015,
"totalExcludeProfit": 0.46714411500000075,
"totalCompensateAmount": 0,
"totalCoinEarned": 0
},
{
"date": "2023-09-05",
"totalProfit": 0.6885688167250574,
"totalOriginProfit": 1.3771376334501149,
"totalExcludeProfit": 0.6885688167250574,
"totalCompensateAmount": 0,
"totalCoinEarned": 0
},
{
"date": "2023-09-04",
"totalProfit": 0.14218358999999975,
"totalOriginProfit": 0.2843671799999995,
"totalExcludeProfit": 0.14218358999999975,
"totalCompensateAmount": 0,
"totalCoinEarned": 0
},
{
"date": "2023-09-02",
"totalProfit": 0.14319825000000014,
"totalOriginProfit": 0.2863965000000003,
"totalExcludeProfit": 0.14319825000000014,
"totalCompensateAmount": 0,
"totalCoinEarned": 0
}
],
"total": 54,
"limit": "10",
"skip": 0,
"sort": {
"timestamp": -1
}
}
This endpoint retrieve a list of robot transactions.
HTTP Request
GET https://[apiUrl]/app/robot/getRobotTransactionsEnhances
| Parameter | Sample Value | Desc |
|---|---|---|
| timestampMin | 2023-05-23T00:00:00%2B08:00 | Minimum Date (Optional) |
| timestampMax | 2023-05-23T00:59:59%2B08:00 | Maximum Date (Optional) |
| type | "day" | Display transactions on day (Optional) |
| liquidation | 0 | Show record without liquidation (Optional) |
| showRecord | true (default: false) | True to show robot profit else will be coin profit |
| today | true (default: false) | True to show today record (optional) |
| ignoreProfitNe | 1 | (Compulsory) Filter ignoreProfit not equal to 1. |
Get Profile Daily Profit Enhances
curl --request GET \
--url https://[apiUrl]/app/robot/getProfileDailyProfitEnhances \
--header 'Authorization: Bearer [userToken]'
The above command returns JSON structured like this:
{
"data": [
{
"date": "2023-10-24",
"totalProfit": 0.14158325000000016,
"totalOriginProfit": 0.2831665000000003,
"totalExcludeProfit": 0.14158325000000016,
"totalCompensateAmount": 0,
"totalCoinEarned": 0
}
],
"total": 1,
"limit": "all",
"skip": 0,
"sort": {
"createdAt": -1
}
}
This endpoint retrieve the total profit based on the user.
HTTP Request
GET https://[apiUrl]/app/robot/getProfileDailyProfitEnhances
| Parameter | Sample Value | Desc |
|---|---|---|
| liquidation | 0 | Whether include liquidation (Optional) |
| profileIdIn | ["asd","axx"] | List of robotProfileId (Optional) |
| timestampMin | 2023-05-23T00:00:00%2B08:00 | Minimum Date (Optional) |
| timestampMax | 2023-05-23T00:00:00%2B08:00 | Maximum Date (Optional) |
| ignoreProfitNe | 1 | (Compulsory) Filter ignoreProfit not equal to 1. |
| profitTypeNe | 1 | (Compulsory) Filter profitType not equal to 1. |