@drakkar.software/octobot-protocol 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/models/Account.ts +89 -0
- package/models/AccountActionResult.ts +63 -0
- package/models/AccountActionResultErrorMessage.ts +21 -0
- package/models/AccountDetails.ts +38 -0
- package/models/AccountReference.ts +38 -0
- package/models/AccountState.ts +49 -0
- package/models/AccountStatus.ts +21 -0
- package/models/AccountStatusMessage.ts +27 -0
- package/models/AccountType.ts +21 -0
- package/models/AccountsState.ts +46 -0
- package/models/Action.ts +90 -0
- package/models/ActionConfigurationType.ts +25 -0
- package/models/ActiveOrderSwapStrategy.ts +55 -0
- package/models/ActiveOrderSwapStrategyType.ts +20 -0
- package/models/Asset.ts +66 -0
- package/models/AutomationActionResult.ts +70 -0
- package/models/AutomationActionResultErrorMessage.ts +24 -0
- package/models/AutomationConfiguration.ts +75 -0
- package/models/AutomationMetadata.ts +59 -0
- package/models/AutomationState.ts +117 -0
- package/models/BlockchainAccount.ts +79 -0
- package/models/CancelPolicy.ts +48 -0
- package/models/CancelPolicyType.ts +20 -0
- package/models/CopiedAccount.ts +76 -0
- package/models/CopiedAsset.ts +59 -0
- package/models/CopyConfiguration.ts +51 -0
- package/models/CreateAccountConfiguration.ts +52 -0
- package/models/CreateAutomationConfiguration.ts +52 -0
- package/models/DCAConfiguration.ts +127 -0
- package/models/DeleteAccountConfiguration.ts +51 -0
- package/models/EMAMomentumEvaluatorConfiguration.ts +65 -0
- package/models/EditAccountConfiguration.ts +59 -0
- package/models/EditAutomationConfiguration.ts +59 -0
- package/models/EvaluatorConfiguration.ts +39 -0
- package/models/EvaluatorConfigurationConfiguration.ts +35 -0
- package/models/EvaluatorType.ts +20 -0
- package/models/ExchangeAccount.ts +119 -0
- package/models/GenericAccount.ts +52 -0
- package/models/GenericProcessConfiguration.ts +51 -0
- package/models/GenericWorkflowConfiguration.ts +52 -0
- package/models/GridConfiguration.ts +112 -0
- package/models/IndexCoin.ts +45 -0
- package/models/IndexConfiguration.ts +59 -0
- package/models/MarketMakingConfiguration.ts +52 -0
- package/models/MarketMakingFundsDistribution.ts +21 -0
- package/models/MarketMakingHedgingEngine.ts +86 -0
- package/models/MarketMakingOrderBookDepth.ts +45 -0
- package/models/MarketMakingOrdersDistribution.ts +19 -0
- package/models/MarketMakingReferencePair.ts +75 -0
- package/models/MarketMakingScheduledVolume.ts +59 -0
- package/models/MarketMakingStopConditions.ts +69 -0
- package/models/MarketMakingSymbolConfiguration.ts +171 -0
- package/models/Order.ts +172 -0
- package/models/OrderGroup.ts +56 -0
- package/models/OrderGroupType.ts +21 -0
- package/models/OrderStatus.ts +28 -0
- package/models/OrderSummary.ts +45 -0
- package/models/OrderType.ts +24 -0
- package/models/Position.ts +91 -0
- package/models/PositionStatus.ts +22 -0
- package/models/PositionSummary.ts +45 -0
- package/models/RSIMomentumEvaluatorConfiguration.ts +65 -0
- package/models/RefreshAccountsConfiguration.ts +51 -0
- package/models/Side.ts +20 -0
- package/models/StopAutomationConfiguration.ts +51 -0
- package/models/StrategiesState.ts +46 -0
- package/models/Strategy.ts +81 -0
- package/models/StrategyConfiguration.ts +50 -0
- package/models/StrategyReference.ts +52 -0
- package/models/TaskStatus.ts +24 -0
- package/models/TimeFrame.ts +30 -0
- package/models/Trade.ts +99 -0
- package/models/TradeSummary.ts +45 -0
- package/models/TradingType.ts +22 -0
- package/models/TrailingProfile.ts +48 -0
- package/models/TrailingProfileType.ts +19 -0
- package/models/UserAction.ts +78 -0
- package/models/UserActionConfiguration.ts +50 -0
- package/models/UserActionResult.ts +35 -0
- package/models/UserActionResultType.ts +20 -0
- package/models/UserActionStatus.ts +22 -0
- package/models/UserActionType.ts +25 -0
- package/models/UserActionsState.ts +46 -0
- package/models/UserDataState.ts +54 -0
- package/models/index.ts +84 -0
- package/package.json +9 -0
package/models/Trade.ts
ADDED
|
@@ -0,0 +1,99 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* OctoBot protocol types
|
|
3
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
4
|
+
*
|
|
5
|
+
* OpenAPI spec version: 1.0.0
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
|
|
13
|
+
import { OrderStatus } from '../models/OrderStatus';
|
|
14
|
+
import { OrderType } from '../models/OrderType';
|
|
15
|
+
import { Side } from '../models/Side';
|
|
16
|
+
|
|
17
|
+
/**
|
|
18
|
+
* Trade
|
|
19
|
+
*/
|
|
20
|
+
export class Trade {
|
|
21
|
+
'id': string;
|
|
22
|
+
'trade_id': string;
|
|
23
|
+
'type': OrderType;
|
|
24
|
+
'symbol': string;
|
|
25
|
+
'side': Side;
|
|
26
|
+
'quantity': number;
|
|
27
|
+
'price': number;
|
|
28
|
+
'status': OrderStatus;
|
|
29
|
+
'executed_at': Date;
|
|
30
|
+
|
|
31
|
+
static readonly discriminator: string | undefined = undefined;
|
|
32
|
+
|
|
33
|
+
static readonly mapping: {[index: string]: string} | undefined = undefined;
|
|
34
|
+
|
|
35
|
+
static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [
|
|
36
|
+
{
|
|
37
|
+
"name": "id",
|
|
38
|
+
"baseName": "id",
|
|
39
|
+
"type": "string",
|
|
40
|
+
"format": ""
|
|
41
|
+
},
|
|
42
|
+
{
|
|
43
|
+
"name": "trade_id",
|
|
44
|
+
"baseName": "trade_id",
|
|
45
|
+
"type": "string",
|
|
46
|
+
"format": ""
|
|
47
|
+
},
|
|
48
|
+
{
|
|
49
|
+
"name": "type",
|
|
50
|
+
"baseName": "type",
|
|
51
|
+
"type": "OrderType",
|
|
52
|
+
"format": ""
|
|
53
|
+
},
|
|
54
|
+
{
|
|
55
|
+
"name": "symbol",
|
|
56
|
+
"baseName": "symbol",
|
|
57
|
+
"type": "string",
|
|
58
|
+
"format": ""
|
|
59
|
+
},
|
|
60
|
+
{
|
|
61
|
+
"name": "side",
|
|
62
|
+
"baseName": "side",
|
|
63
|
+
"type": "Side",
|
|
64
|
+
"format": ""
|
|
65
|
+
},
|
|
66
|
+
{
|
|
67
|
+
"name": "quantity",
|
|
68
|
+
"baseName": "quantity",
|
|
69
|
+
"type": "number",
|
|
70
|
+
"format": ""
|
|
71
|
+
},
|
|
72
|
+
{
|
|
73
|
+
"name": "price",
|
|
74
|
+
"baseName": "price",
|
|
75
|
+
"type": "number",
|
|
76
|
+
"format": ""
|
|
77
|
+
},
|
|
78
|
+
{
|
|
79
|
+
"name": "status",
|
|
80
|
+
"baseName": "status",
|
|
81
|
+
"type": "OrderStatus",
|
|
82
|
+
"format": ""
|
|
83
|
+
},
|
|
84
|
+
{
|
|
85
|
+
"name": "executed_at",
|
|
86
|
+
"baseName": "executed_at",
|
|
87
|
+
"type": "Date",
|
|
88
|
+
"format": "date-time"
|
|
89
|
+
} ];
|
|
90
|
+
|
|
91
|
+
static getAttributeTypeMap() {
|
|
92
|
+
return Trade.attributeTypeMap;
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
public constructor() {
|
|
96
|
+
}
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* OctoBot protocol types
|
|
3
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
4
|
+
*
|
|
5
|
+
* OpenAPI spec version: 1.0.0
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
/**
|
|
15
|
+
* TradeSummary
|
|
16
|
+
*/
|
|
17
|
+
export class TradeSummary {
|
|
18
|
+
'id': string;
|
|
19
|
+
'symbol': string;
|
|
20
|
+
|
|
21
|
+
static readonly discriminator: string | undefined = undefined;
|
|
22
|
+
|
|
23
|
+
static readonly mapping: {[index: string]: string} | undefined = undefined;
|
|
24
|
+
|
|
25
|
+
static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [
|
|
26
|
+
{
|
|
27
|
+
"name": "id",
|
|
28
|
+
"baseName": "id",
|
|
29
|
+
"type": "string",
|
|
30
|
+
"format": ""
|
|
31
|
+
},
|
|
32
|
+
{
|
|
33
|
+
"name": "symbol",
|
|
34
|
+
"baseName": "symbol",
|
|
35
|
+
"type": "string",
|
|
36
|
+
"format": ""
|
|
37
|
+
} ];
|
|
38
|
+
|
|
39
|
+
static getAttributeTypeMap() {
|
|
40
|
+
return TradeSummary.attributeTypeMap;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
public constructor() {
|
|
44
|
+
}
|
|
45
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* OctoBot protocol types
|
|
3
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
4
|
+
*
|
|
5
|
+
* OpenAPI spec version: 1.0.0
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
/**
|
|
15
|
+
* TradingType
|
|
16
|
+
*/
|
|
17
|
+
export enum TradingType {
|
|
18
|
+
Spot = 'spot',
|
|
19
|
+
Futures = 'futures',
|
|
20
|
+
Options = 'options',
|
|
21
|
+
Margin = 'margin'
|
|
22
|
+
}
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* OctoBot protocol types
|
|
3
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
4
|
+
*
|
|
5
|
+
* OpenAPI spec version: 1.0.0
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
|
|
13
|
+
import { TrailingProfileType } from '../models/TrailingProfileType';
|
|
14
|
+
|
|
15
|
+
/**
|
|
16
|
+
* TrailingProfile
|
|
17
|
+
*/
|
|
18
|
+
export class TrailingProfile {
|
|
19
|
+
'type': TrailingProfileType;
|
|
20
|
+
'details'?: any;
|
|
21
|
+
|
|
22
|
+
static readonly discriminator: string | undefined = undefined;
|
|
23
|
+
|
|
24
|
+
static readonly mapping: {[index: string]: string} | undefined = undefined;
|
|
25
|
+
|
|
26
|
+
static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [
|
|
27
|
+
{
|
|
28
|
+
"name": "type",
|
|
29
|
+
"baseName": "type",
|
|
30
|
+
"type": "TrailingProfileType",
|
|
31
|
+
"format": ""
|
|
32
|
+
},
|
|
33
|
+
{
|
|
34
|
+
"name": "details",
|
|
35
|
+
"baseName": "details",
|
|
36
|
+
"type": "any",
|
|
37
|
+
"format": ""
|
|
38
|
+
} ];
|
|
39
|
+
|
|
40
|
+
static getAttributeTypeMap() {
|
|
41
|
+
return TrailingProfile.attributeTypeMap;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
public constructor() {
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* OctoBot protocol types
|
|
3
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
4
|
+
*
|
|
5
|
+
* OpenAPI spec version: 1.0.0
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
/**
|
|
15
|
+
* Trailing profile discriminator (mirrors octobot_trading TrailingProfileTypes values).
|
|
16
|
+
*/
|
|
17
|
+
export enum TrailingProfileType {
|
|
18
|
+
FilledTakeProfit = 'filled_take_profit'
|
|
19
|
+
}
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* OctoBot protocol types
|
|
3
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
4
|
+
*
|
|
5
|
+
* OpenAPI spec version: 1.0.0
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
|
|
13
|
+
import { UserActionConfiguration } from '../models/UserActionConfiguration';
|
|
14
|
+
import { UserActionResult } from '../models/UserActionResult';
|
|
15
|
+
import { UserActionStatus } from '../models/UserActionStatus';
|
|
16
|
+
|
|
17
|
+
/**
|
|
18
|
+
* UserAction
|
|
19
|
+
*/
|
|
20
|
+
export class UserAction {
|
|
21
|
+
'id': string;
|
|
22
|
+
'status'?: UserActionStatus;
|
|
23
|
+
'created_at'?: Date;
|
|
24
|
+
'updated_at'?: Date;
|
|
25
|
+
'configuration'?: UserActionConfiguration;
|
|
26
|
+
'result'?: UserActionResult;
|
|
27
|
+
|
|
28
|
+
static readonly discriminator: string | undefined = undefined;
|
|
29
|
+
|
|
30
|
+
static readonly mapping: {[index: string]: string} | undefined = undefined;
|
|
31
|
+
|
|
32
|
+
static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [
|
|
33
|
+
{
|
|
34
|
+
"name": "id",
|
|
35
|
+
"baseName": "id",
|
|
36
|
+
"type": "string",
|
|
37
|
+
"format": ""
|
|
38
|
+
},
|
|
39
|
+
{
|
|
40
|
+
"name": "status",
|
|
41
|
+
"baseName": "status",
|
|
42
|
+
"type": "UserActionStatus",
|
|
43
|
+
"format": ""
|
|
44
|
+
},
|
|
45
|
+
{
|
|
46
|
+
"name": "created_at",
|
|
47
|
+
"baseName": "created_at",
|
|
48
|
+
"type": "Date",
|
|
49
|
+
"format": "date-time"
|
|
50
|
+
},
|
|
51
|
+
{
|
|
52
|
+
"name": "updated_at",
|
|
53
|
+
"baseName": "updated_at",
|
|
54
|
+
"type": "Date",
|
|
55
|
+
"format": "date-time"
|
|
56
|
+
},
|
|
57
|
+
{
|
|
58
|
+
"name": "configuration",
|
|
59
|
+
"baseName": "configuration",
|
|
60
|
+
"type": "UserActionConfiguration",
|
|
61
|
+
"format": ""
|
|
62
|
+
},
|
|
63
|
+
{
|
|
64
|
+
"name": "result",
|
|
65
|
+
"baseName": "result",
|
|
66
|
+
"type": "UserActionResult",
|
|
67
|
+
"format": ""
|
|
68
|
+
} ];
|
|
69
|
+
|
|
70
|
+
static getAttributeTypeMap() {
|
|
71
|
+
return UserAction.attributeTypeMap;
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
public constructor() {
|
|
75
|
+
}
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* OctoBot protocol types
|
|
3
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
4
|
+
*
|
|
5
|
+
* OpenAPI spec version: 1.0.0
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
|
|
13
|
+
import { CreateAccountConfiguration } from '../models/CreateAccountConfiguration';
|
|
14
|
+
import { CreateAutomationConfiguration } from '../models/CreateAutomationConfiguration';
|
|
15
|
+
import { DeleteAccountConfiguration } from '../models/DeleteAccountConfiguration';
|
|
16
|
+
import { EditAccountConfiguration } from '../models/EditAccountConfiguration';
|
|
17
|
+
import { EditAutomationConfiguration } from '../models/EditAutomationConfiguration';
|
|
18
|
+
import { RefreshAccountsConfiguration } from '../models/RefreshAccountsConfiguration';
|
|
19
|
+
import { StopAutomationConfiguration } from '../models/StopAutomationConfiguration';
|
|
20
|
+
|
|
21
|
+
/**
|
|
22
|
+
* @type UserActionConfiguration
|
|
23
|
+
* Type
|
|
24
|
+
* @export
|
|
25
|
+
*/
|
|
26
|
+
export type UserActionConfiguration = CreateAccountConfiguration | CreateAutomationConfiguration | DeleteAccountConfiguration | EditAccountConfiguration | EditAutomationConfiguration | RefreshAccountsConfiguration | StopAutomationConfiguration;
|
|
27
|
+
|
|
28
|
+
/**
|
|
29
|
+
* @type UserActionConfigurationClass
|
|
30
|
+
* @export
|
|
31
|
+
*/
|
|
32
|
+
export class UserActionConfigurationClass {
|
|
33
|
+
static readonly discriminator: string | undefined = "action_type";
|
|
34
|
+
|
|
35
|
+
static readonly mapping: {[index: string]: string} | undefined = {
|
|
36
|
+
"account_create": "CreateAccountConfiguration",
|
|
37
|
+
"account_delete": "DeleteAccountConfiguration",
|
|
38
|
+
"account_edit": "EditAccountConfiguration",
|
|
39
|
+
"accounts_refresh": "RefreshAccountsConfiguration",
|
|
40
|
+
"automation_create": "CreateAutomationConfiguration",
|
|
41
|
+
"automation_edit": "EditAutomationConfiguration",
|
|
42
|
+
"automation_stop": "StopAutomationConfiguration",
|
|
43
|
+
};
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
|
|
47
|
+
|
|
48
|
+
|
|
49
|
+
|
|
50
|
+
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* OctoBot protocol types
|
|
3
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
4
|
+
*
|
|
5
|
+
* OpenAPI spec version: 1.0.0
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
|
|
13
|
+
import { AccountActionResult } from '../models/AccountActionResult';
|
|
14
|
+
import { AutomationActionResult } from '../models/AutomationActionResult';
|
|
15
|
+
|
|
16
|
+
/**
|
|
17
|
+
* @type UserActionResult
|
|
18
|
+
* Type
|
|
19
|
+
* @export
|
|
20
|
+
*/
|
|
21
|
+
export type UserActionResult = AccountActionResult | AutomationActionResult;
|
|
22
|
+
|
|
23
|
+
/**
|
|
24
|
+
* @type UserActionResultClass
|
|
25
|
+
* @export
|
|
26
|
+
*/
|
|
27
|
+
export class UserActionResultClass {
|
|
28
|
+
static readonly discriminator: string | undefined = "result_type";
|
|
29
|
+
|
|
30
|
+
static readonly mapping: {[index: string]: string} | undefined = {
|
|
31
|
+
"account": "AccountActionResult",
|
|
32
|
+
"automation": "AutomationActionResult",
|
|
33
|
+
};
|
|
34
|
+
}
|
|
35
|
+
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* OctoBot protocol types
|
|
3
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
4
|
+
*
|
|
5
|
+
* OpenAPI spec version: 1.0.0
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
/**
|
|
15
|
+
* UserActionResultType
|
|
16
|
+
*/
|
|
17
|
+
export enum UserActionResultType {
|
|
18
|
+
Automation = 'automation',
|
|
19
|
+
Account = 'account'
|
|
20
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* OctoBot protocol types
|
|
3
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
4
|
+
*
|
|
5
|
+
* OpenAPI spec version: 1.0.0
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
/**
|
|
15
|
+
* UserActionStatus
|
|
16
|
+
*/
|
|
17
|
+
export enum UserActionStatus {
|
|
18
|
+
Pending = 'pending',
|
|
19
|
+
Running = 'running',
|
|
20
|
+
Completed = 'completed',
|
|
21
|
+
Failed = 'failed'
|
|
22
|
+
}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* OctoBot protocol types
|
|
3
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
4
|
+
*
|
|
5
|
+
* OpenAPI spec version: 1.0.0
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
/**
|
|
15
|
+
* UserActionType
|
|
16
|
+
*/
|
|
17
|
+
export enum UserActionType {
|
|
18
|
+
AutomationCreate = 'automation_create',
|
|
19
|
+
AutomationEdit = 'automation_edit',
|
|
20
|
+
AutomationStop = 'automation_stop',
|
|
21
|
+
AccountCreate = 'account_create',
|
|
22
|
+
AccountEdit = 'account_edit',
|
|
23
|
+
AccountDelete = 'account_delete',
|
|
24
|
+
AccountsRefresh = 'accounts_refresh'
|
|
25
|
+
}
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* OctoBot protocol types
|
|
3
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
4
|
+
*
|
|
5
|
+
* OpenAPI spec version: 1.0.0
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
|
|
13
|
+
import { UserAction } from '../models/UserAction';
|
|
14
|
+
|
|
15
|
+
/**
|
|
16
|
+
* UserActionsState
|
|
17
|
+
*/
|
|
18
|
+
export class UserActionsState {
|
|
19
|
+
'version': string;
|
|
20
|
+
'user_actions'?: Array<UserAction>;
|
|
21
|
+
|
|
22
|
+
static readonly discriminator: string | undefined = undefined;
|
|
23
|
+
|
|
24
|
+
static readonly mapping: {[index: string]: string} | undefined = undefined;
|
|
25
|
+
|
|
26
|
+
static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [
|
|
27
|
+
{
|
|
28
|
+
"name": "version",
|
|
29
|
+
"baseName": "version",
|
|
30
|
+
"type": "string",
|
|
31
|
+
"format": ""
|
|
32
|
+
},
|
|
33
|
+
{
|
|
34
|
+
"name": "user_actions",
|
|
35
|
+
"baseName": "user_actions",
|
|
36
|
+
"type": "Array<UserAction>",
|
|
37
|
+
"format": ""
|
|
38
|
+
} ];
|
|
39
|
+
|
|
40
|
+
static getAttributeTypeMap() {
|
|
41
|
+
return UserActionsState.attributeTypeMap;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
public constructor() {
|
|
45
|
+
}
|
|
46
|
+
}
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* OctoBot protocol types
|
|
3
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
4
|
+
*
|
|
5
|
+
* OpenAPI spec version: 1.0.0
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
|
|
13
|
+
import { AutomationState } from '../models/AutomationState';
|
|
14
|
+
import { UserAction } from '../models/UserAction';
|
|
15
|
+
|
|
16
|
+
/**
|
|
17
|
+
* UserDataState
|
|
18
|
+
*/
|
|
19
|
+
export class UserDataState {
|
|
20
|
+
'version': string;
|
|
21
|
+
'automations'?: Array<AutomationState>;
|
|
22
|
+
'user_actions'?: Array<UserAction>;
|
|
23
|
+
|
|
24
|
+
static readonly discriminator: string | undefined = undefined;
|
|
25
|
+
|
|
26
|
+
static readonly mapping: {[index: string]: string} | undefined = undefined;
|
|
27
|
+
|
|
28
|
+
static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [
|
|
29
|
+
{
|
|
30
|
+
"name": "version",
|
|
31
|
+
"baseName": "version",
|
|
32
|
+
"type": "string",
|
|
33
|
+
"format": ""
|
|
34
|
+
},
|
|
35
|
+
{
|
|
36
|
+
"name": "automations",
|
|
37
|
+
"baseName": "automations",
|
|
38
|
+
"type": "Array<AutomationState>",
|
|
39
|
+
"format": ""
|
|
40
|
+
},
|
|
41
|
+
{
|
|
42
|
+
"name": "user_actions",
|
|
43
|
+
"baseName": "user_actions",
|
|
44
|
+
"type": "Array<UserAction>",
|
|
45
|
+
"format": ""
|
|
46
|
+
} ];
|
|
47
|
+
|
|
48
|
+
static getAttributeTypeMap() {
|
|
49
|
+
return UserDataState.attributeTypeMap;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
public constructor() {
|
|
53
|
+
}
|
|
54
|
+
}
|
package/models/index.ts
ADDED
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
export * from "./Account";
|
|
2
|
+
export * from "./AccountActionResult";
|
|
3
|
+
export * from "./AccountActionResultErrorMessage";
|
|
4
|
+
export * from "./AccountDetails";
|
|
5
|
+
export * from "./AccountReference";
|
|
6
|
+
export * from "./AccountState";
|
|
7
|
+
export * from "./AccountStatus";
|
|
8
|
+
export * from "./AccountStatusMessage";
|
|
9
|
+
export * from "./AccountType";
|
|
10
|
+
export * from "./AccountsState";
|
|
11
|
+
export * from "./Action";
|
|
12
|
+
export * from "./ActionConfigurationType";
|
|
13
|
+
export * from "./ActiveOrderSwapStrategy";
|
|
14
|
+
export * from "./ActiveOrderSwapStrategyType";
|
|
15
|
+
export * from "./Asset";
|
|
16
|
+
export * from "./AutomationActionResult";
|
|
17
|
+
export * from "./AutomationActionResultErrorMessage";
|
|
18
|
+
export * from "./AutomationConfiguration";
|
|
19
|
+
export * from "./AutomationMetadata";
|
|
20
|
+
export * from "./AutomationState";
|
|
21
|
+
export * from "./BlockchainAccount";
|
|
22
|
+
export * from "./CancelPolicy";
|
|
23
|
+
export * from "./CancelPolicyType";
|
|
24
|
+
export * from "./CopiedAccount";
|
|
25
|
+
export * from "./CopiedAsset";
|
|
26
|
+
export * from "./CopyConfiguration";
|
|
27
|
+
export * from "./CreateAccountConfiguration";
|
|
28
|
+
export * from "./CreateAutomationConfiguration";
|
|
29
|
+
export * from "./DCAConfiguration";
|
|
30
|
+
export * from "./DeleteAccountConfiguration";
|
|
31
|
+
export * from "./EMAMomentumEvaluatorConfiguration";
|
|
32
|
+
export * from "./EditAccountConfiguration";
|
|
33
|
+
export * from "./EditAutomationConfiguration";
|
|
34
|
+
export * from "./EvaluatorConfiguration";
|
|
35
|
+
export * from "./EvaluatorConfigurationConfiguration";
|
|
36
|
+
export * from "./EvaluatorType";
|
|
37
|
+
export * from "./ExchangeAccount";
|
|
38
|
+
export * from "./GenericAccount";
|
|
39
|
+
export * from "./GenericProcessConfiguration";
|
|
40
|
+
export * from "./GenericWorkflowConfiguration";
|
|
41
|
+
export * from "./GridConfiguration";
|
|
42
|
+
export * from "./IndexCoin";
|
|
43
|
+
export * from "./IndexConfiguration";
|
|
44
|
+
export * from "./MarketMakingConfiguration";
|
|
45
|
+
export * from "./MarketMakingFundsDistribution";
|
|
46
|
+
export * from "./MarketMakingHedgingEngine";
|
|
47
|
+
export * from "./MarketMakingOrderBookDepth";
|
|
48
|
+
export * from "./MarketMakingOrdersDistribution";
|
|
49
|
+
export * from "./MarketMakingReferencePair";
|
|
50
|
+
export * from "./MarketMakingScheduledVolume";
|
|
51
|
+
export * from "./MarketMakingStopConditions";
|
|
52
|
+
export * from "./MarketMakingSymbolConfiguration";
|
|
53
|
+
export * from "./Order";
|
|
54
|
+
export * from "./OrderGroup";
|
|
55
|
+
export * from "./OrderGroupType";
|
|
56
|
+
export * from "./OrderStatus";
|
|
57
|
+
export * from "./OrderSummary";
|
|
58
|
+
export * from "./OrderType";
|
|
59
|
+
export * from "./Position";
|
|
60
|
+
export * from "./PositionStatus";
|
|
61
|
+
export * from "./PositionSummary";
|
|
62
|
+
export * from "./RSIMomentumEvaluatorConfiguration";
|
|
63
|
+
export * from "./RefreshAccountsConfiguration";
|
|
64
|
+
export * from "./Side";
|
|
65
|
+
export * from "./StopAutomationConfiguration";
|
|
66
|
+
export * from "./StrategiesState";
|
|
67
|
+
export * from "./Strategy";
|
|
68
|
+
export * from "./StrategyConfiguration";
|
|
69
|
+
export * from "./StrategyReference";
|
|
70
|
+
export * from "./TaskStatus";
|
|
71
|
+
export * from "./TimeFrame";
|
|
72
|
+
export * from "./Trade";
|
|
73
|
+
export * from "./TradeSummary";
|
|
74
|
+
export * from "./TradingType";
|
|
75
|
+
export * from "./TrailingProfile";
|
|
76
|
+
export * from "./TrailingProfileType";
|
|
77
|
+
export * from "./UserAction";
|
|
78
|
+
export * from "./UserActionConfiguration";
|
|
79
|
+
export * from "./UserActionResult";
|
|
80
|
+
export * from "./UserActionResultType";
|
|
81
|
+
export * from "./UserActionStatus";
|
|
82
|
+
export * from "./UserActionType";
|
|
83
|
+
export * from "./UserActionsState";
|
|
84
|
+
export * from "./UserDataState";
|
package/package.json
ADDED