@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
|
@@ -0,0 +1,52 @@
|
|
|
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 { Account } from '../models/Account';
|
|
14
|
+
import { UserActionType } from '../models/UserActionType';
|
|
15
|
+
|
|
16
|
+
/**
|
|
17
|
+
* CreateAccountConfiguration
|
|
18
|
+
*/
|
|
19
|
+
export class CreateAccountConfiguration {
|
|
20
|
+
/**
|
|
21
|
+
* account_create
|
|
22
|
+
*/
|
|
23
|
+
'action_type': UserActionType;
|
|
24
|
+
'configuration': Account;
|
|
25
|
+
|
|
26
|
+
static readonly discriminator: string | undefined = undefined;
|
|
27
|
+
|
|
28
|
+
static readonly mapping: {[index: string]: string} | undefined = undefined;
|
|
29
|
+
|
|
30
|
+
static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [
|
|
31
|
+
{
|
|
32
|
+
"name": "action_type",
|
|
33
|
+
"baseName": "action_type",
|
|
34
|
+
"type": "UserActionType",
|
|
35
|
+
"format": ""
|
|
36
|
+
},
|
|
37
|
+
{
|
|
38
|
+
"name": "configuration",
|
|
39
|
+
"baseName": "configuration",
|
|
40
|
+
"type": "Account",
|
|
41
|
+
"format": ""
|
|
42
|
+
} ];
|
|
43
|
+
|
|
44
|
+
static getAttributeTypeMap() {
|
|
45
|
+
return CreateAccountConfiguration.attributeTypeMap;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
public constructor() {
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
|
|
@@ -0,0 +1,52 @@
|
|
|
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 { AutomationConfiguration } from '../models/AutomationConfiguration';
|
|
14
|
+
import { UserActionType } from '../models/UserActionType';
|
|
15
|
+
|
|
16
|
+
/**
|
|
17
|
+
* CreateAutomationConfiguration
|
|
18
|
+
*/
|
|
19
|
+
export class CreateAutomationConfiguration {
|
|
20
|
+
/**
|
|
21
|
+
* automation_create
|
|
22
|
+
*/
|
|
23
|
+
'action_type': UserActionType;
|
|
24
|
+
'configuration': AutomationConfiguration;
|
|
25
|
+
|
|
26
|
+
static readonly discriminator: string | undefined = undefined;
|
|
27
|
+
|
|
28
|
+
static readonly mapping: {[index: string]: string} | undefined = undefined;
|
|
29
|
+
|
|
30
|
+
static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [
|
|
31
|
+
{
|
|
32
|
+
"name": "action_type",
|
|
33
|
+
"baseName": "action_type",
|
|
34
|
+
"type": "UserActionType",
|
|
35
|
+
"format": ""
|
|
36
|
+
},
|
|
37
|
+
{
|
|
38
|
+
"name": "configuration",
|
|
39
|
+
"baseName": "configuration",
|
|
40
|
+
"type": "AutomationConfiguration",
|
|
41
|
+
"format": ""
|
|
42
|
+
} ];
|
|
43
|
+
|
|
44
|
+
static getAttributeTypeMap() {
|
|
45
|
+
return CreateAutomationConfiguration.attributeTypeMap;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
public constructor() {
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
|
|
@@ -0,0 +1,127 @@
|
|
|
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 { ActionConfigurationType } from '../models/ActionConfigurationType';
|
|
14
|
+
import { EvaluatorConfiguration } from '../models/EvaluatorConfiguration';
|
|
15
|
+
import { TimeFrame } from '../models/TimeFrame';
|
|
16
|
+
|
|
17
|
+
/**
|
|
18
|
+
* DCAConfiguration
|
|
19
|
+
*/
|
|
20
|
+
export class DCAConfiguration {
|
|
21
|
+
/**
|
|
22
|
+
* dca
|
|
23
|
+
*/
|
|
24
|
+
'configuration_type': ActionConfigurationType;
|
|
25
|
+
'symbols': Array<string>;
|
|
26
|
+
'buy_orders_count': number;
|
|
27
|
+
'percent_amount_per_buy_order': number;
|
|
28
|
+
'profit_target_percent': number;
|
|
29
|
+
'buy_order_price_discount_percent': number;
|
|
30
|
+
'enable_stop_loss': boolean;
|
|
31
|
+
'stop_loss_price_discount_percent': number;
|
|
32
|
+
'trigger_mode': DCAConfigurationTriggerModeEnum;
|
|
33
|
+
'use_init_entry_orders': boolean;
|
|
34
|
+
'time_frames': Array<TimeFrame>;
|
|
35
|
+
'evaluators': Array<EvaluatorConfiguration>;
|
|
36
|
+
|
|
37
|
+
static readonly discriminator: string | undefined = undefined;
|
|
38
|
+
|
|
39
|
+
static readonly mapping: {[index: string]: string} | undefined = undefined;
|
|
40
|
+
|
|
41
|
+
static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [
|
|
42
|
+
{
|
|
43
|
+
"name": "configuration_type",
|
|
44
|
+
"baseName": "configuration_type",
|
|
45
|
+
"type": "ActionConfigurationType",
|
|
46
|
+
"format": ""
|
|
47
|
+
},
|
|
48
|
+
{
|
|
49
|
+
"name": "symbols",
|
|
50
|
+
"baseName": "symbols",
|
|
51
|
+
"type": "Array<string>",
|
|
52
|
+
"format": ""
|
|
53
|
+
},
|
|
54
|
+
{
|
|
55
|
+
"name": "buy_orders_count",
|
|
56
|
+
"baseName": "buy_orders_count",
|
|
57
|
+
"type": "number",
|
|
58
|
+
"format": ""
|
|
59
|
+
},
|
|
60
|
+
{
|
|
61
|
+
"name": "percent_amount_per_buy_order",
|
|
62
|
+
"baseName": "percent_amount_per_buy_order",
|
|
63
|
+
"type": "number",
|
|
64
|
+
"format": ""
|
|
65
|
+
},
|
|
66
|
+
{
|
|
67
|
+
"name": "profit_target_percent",
|
|
68
|
+
"baseName": "profit_target_percent",
|
|
69
|
+
"type": "number",
|
|
70
|
+
"format": ""
|
|
71
|
+
},
|
|
72
|
+
{
|
|
73
|
+
"name": "buy_order_price_discount_percent",
|
|
74
|
+
"baseName": "buy_order_price_discount_percent",
|
|
75
|
+
"type": "number",
|
|
76
|
+
"format": ""
|
|
77
|
+
},
|
|
78
|
+
{
|
|
79
|
+
"name": "enable_stop_loss",
|
|
80
|
+
"baseName": "enable_stop_loss",
|
|
81
|
+
"type": "boolean",
|
|
82
|
+
"format": ""
|
|
83
|
+
},
|
|
84
|
+
{
|
|
85
|
+
"name": "stop_loss_price_discount_percent",
|
|
86
|
+
"baseName": "stop_loss_price_discount_percent",
|
|
87
|
+
"type": "number",
|
|
88
|
+
"format": ""
|
|
89
|
+
},
|
|
90
|
+
{
|
|
91
|
+
"name": "trigger_mode",
|
|
92
|
+
"baseName": "trigger_mode",
|
|
93
|
+
"type": "DCAConfigurationTriggerModeEnum",
|
|
94
|
+
"format": ""
|
|
95
|
+
},
|
|
96
|
+
{
|
|
97
|
+
"name": "use_init_entry_orders",
|
|
98
|
+
"baseName": "use_init_entry_orders",
|
|
99
|
+
"type": "boolean",
|
|
100
|
+
"format": ""
|
|
101
|
+
},
|
|
102
|
+
{
|
|
103
|
+
"name": "time_frames",
|
|
104
|
+
"baseName": "time_frames",
|
|
105
|
+
"type": "Array<TimeFrame>",
|
|
106
|
+
"format": ""
|
|
107
|
+
},
|
|
108
|
+
{
|
|
109
|
+
"name": "evaluators",
|
|
110
|
+
"baseName": "evaluators",
|
|
111
|
+
"type": "Array<EvaluatorConfiguration>",
|
|
112
|
+
"format": ""
|
|
113
|
+
} ];
|
|
114
|
+
|
|
115
|
+
static getAttributeTypeMap() {
|
|
116
|
+
return DCAConfiguration.attributeTypeMap;
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
public constructor() {
|
|
120
|
+
}
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
export enum DCAConfigurationTriggerModeEnum {
|
|
124
|
+
MaximumEvaluatorsSignalsBased = 'Maximum evaluators signals based',
|
|
125
|
+
TimeBased = 'Time based'
|
|
126
|
+
}
|
|
127
|
+
|
|
@@ -0,0 +1,51 @@
|
|
|
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 { UserActionType } from '../models/UserActionType';
|
|
14
|
+
|
|
15
|
+
/**
|
|
16
|
+
* DeleteAccountConfiguration
|
|
17
|
+
*/
|
|
18
|
+
export class DeleteAccountConfiguration {
|
|
19
|
+
/**
|
|
20
|
+
* account_delete
|
|
21
|
+
*/
|
|
22
|
+
'action_type': UserActionType;
|
|
23
|
+
'id': string;
|
|
24
|
+
|
|
25
|
+
static readonly discriminator: string | undefined = undefined;
|
|
26
|
+
|
|
27
|
+
static readonly mapping: {[index: string]: string} | undefined = undefined;
|
|
28
|
+
|
|
29
|
+
static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [
|
|
30
|
+
{
|
|
31
|
+
"name": "action_type",
|
|
32
|
+
"baseName": "action_type",
|
|
33
|
+
"type": "UserActionType",
|
|
34
|
+
"format": ""
|
|
35
|
+
},
|
|
36
|
+
{
|
|
37
|
+
"name": "id",
|
|
38
|
+
"baseName": "id",
|
|
39
|
+
"type": "string",
|
|
40
|
+
"format": ""
|
|
41
|
+
} ];
|
|
42
|
+
|
|
43
|
+
static getAttributeTypeMap() {
|
|
44
|
+
return DeleteAccountConfiguration.attributeTypeMap;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
public constructor() {
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
|
|
@@ -0,0 +1,65 @@
|
|
|
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 { EvaluatorType } from '../models/EvaluatorType';
|
|
14
|
+
|
|
15
|
+
/**
|
|
16
|
+
* EMAMomentumEvaluatorConfiguration
|
|
17
|
+
*/
|
|
18
|
+
export class EMAMomentumEvaluatorConfiguration {
|
|
19
|
+
/**
|
|
20
|
+
* EMAMomentumEvaluator
|
|
21
|
+
*/
|
|
22
|
+
'configuration_type': EvaluatorType;
|
|
23
|
+
'period_length': number;
|
|
24
|
+
'price_threshold_percent': number;
|
|
25
|
+
'reverse_signal': boolean;
|
|
26
|
+
|
|
27
|
+
static readonly discriminator: string | undefined = undefined;
|
|
28
|
+
|
|
29
|
+
static readonly mapping: {[index: string]: string} | undefined = undefined;
|
|
30
|
+
|
|
31
|
+
static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [
|
|
32
|
+
{
|
|
33
|
+
"name": "configuration_type",
|
|
34
|
+
"baseName": "configuration_type",
|
|
35
|
+
"type": "EvaluatorType",
|
|
36
|
+
"format": ""
|
|
37
|
+
},
|
|
38
|
+
{
|
|
39
|
+
"name": "period_length",
|
|
40
|
+
"baseName": "period_length",
|
|
41
|
+
"type": "number",
|
|
42
|
+
"format": ""
|
|
43
|
+
},
|
|
44
|
+
{
|
|
45
|
+
"name": "price_threshold_percent",
|
|
46
|
+
"baseName": "price_threshold_percent",
|
|
47
|
+
"type": "number",
|
|
48
|
+
"format": ""
|
|
49
|
+
},
|
|
50
|
+
{
|
|
51
|
+
"name": "reverse_signal",
|
|
52
|
+
"baseName": "reverse_signal",
|
|
53
|
+
"type": "boolean",
|
|
54
|
+
"format": ""
|
|
55
|
+
} ];
|
|
56
|
+
|
|
57
|
+
static getAttributeTypeMap() {
|
|
58
|
+
return EMAMomentumEvaluatorConfiguration.attributeTypeMap;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
public constructor() {
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
|
|
@@ -0,0 +1,59 @@
|
|
|
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 { Account } from '../models/Account';
|
|
14
|
+
import { UserActionType } from '../models/UserActionType';
|
|
15
|
+
|
|
16
|
+
/**
|
|
17
|
+
* EditAccountConfiguration
|
|
18
|
+
*/
|
|
19
|
+
export class EditAccountConfiguration {
|
|
20
|
+
/**
|
|
21
|
+
* account_edit
|
|
22
|
+
*/
|
|
23
|
+
'action_type': UserActionType;
|
|
24
|
+
'id': string;
|
|
25
|
+
'configuration'?: Account;
|
|
26
|
+
|
|
27
|
+
static readonly discriminator: string | undefined = undefined;
|
|
28
|
+
|
|
29
|
+
static readonly mapping: {[index: string]: string} | undefined = undefined;
|
|
30
|
+
|
|
31
|
+
static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [
|
|
32
|
+
{
|
|
33
|
+
"name": "action_type",
|
|
34
|
+
"baseName": "action_type",
|
|
35
|
+
"type": "UserActionType",
|
|
36
|
+
"format": ""
|
|
37
|
+
},
|
|
38
|
+
{
|
|
39
|
+
"name": "id",
|
|
40
|
+
"baseName": "id",
|
|
41
|
+
"type": "string",
|
|
42
|
+
"format": ""
|
|
43
|
+
},
|
|
44
|
+
{
|
|
45
|
+
"name": "configuration",
|
|
46
|
+
"baseName": "configuration",
|
|
47
|
+
"type": "Account",
|
|
48
|
+
"format": ""
|
|
49
|
+
} ];
|
|
50
|
+
|
|
51
|
+
static getAttributeTypeMap() {
|
|
52
|
+
return EditAccountConfiguration.attributeTypeMap;
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
public constructor() {
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
|
|
@@ -0,0 +1,59 @@
|
|
|
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 { AutomationConfiguration } from '../models/AutomationConfiguration';
|
|
14
|
+
import { UserActionType } from '../models/UserActionType';
|
|
15
|
+
|
|
16
|
+
/**
|
|
17
|
+
* EditAutomationConfiguration
|
|
18
|
+
*/
|
|
19
|
+
export class EditAutomationConfiguration {
|
|
20
|
+
'id': string;
|
|
21
|
+
/**
|
|
22
|
+
* automation_edit
|
|
23
|
+
*/
|
|
24
|
+
'action_type': UserActionType;
|
|
25
|
+
'configuration': AutomationConfiguration;
|
|
26
|
+
|
|
27
|
+
static readonly discriminator: string | undefined = undefined;
|
|
28
|
+
|
|
29
|
+
static readonly mapping: {[index: string]: string} | undefined = undefined;
|
|
30
|
+
|
|
31
|
+
static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [
|
|
32
|
+
{
|
|
33
|
+
"name": "id",
|
|
34
|
+
"baseName": "id",
|
|
35
|
+
"type": "string",
|
|
36
|
+
"format": ""
|
|
37
|
+
},
|
|
38
|
+
{
|
|
39
|
+
"name": "action_type",
|
|
40
|
+
"baseName": "action_type",
|
|
41
|
+
"type": "UserActionType",
|
|
42
|
+
"format": ""
|
|
43
|
+
},
|
|
44
|
+
{
|
|
45
|
+
"name": "configuration",
|
|
46
|
+
"baseName": "configuration",
|
|
47
|
+
"type": "AutomationConfiguration",
|
|
48
|
+
"format": ""
|
|
49
|
+
} ];
|
|
50
|
+
|
|
51
|
+
static getAttributeTypeMap() {
|
|
52
|
+
return EditAutomationConfiguration.attributeTypeMap;
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
public constructor() {
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
|
|
@@ -0,0 +1,39 @@
|
|
|
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 { EvaluatorConfigurationConfiguration } from '../models/EvaluatorConfigurationConfiguration';
|
|
14
|
+
|
|
15
|
+
/**
|
|
16
|
+
* EvaluatorConfiguration
|
|
17
|
+
*/
|
|
18
|
+
export class EvaluatorConfiguration {
|
|
19
|
+
'configuration': EvaluatorConfigurationConfiguration;
|
|
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": "configuration",
|
|
28
|
+
"baseName": "configuration",
|
|
29
|
+
"type": "EvaluatorConfigurationConfiguration",
|
|
30
|
+
"format": ""
|
|
31
|
+
} ];
|
|
32
|
+
|
|
33
|
+
static getAttributeTypeMap() {
|
|
34
|
+
return EvaluatorConfiguration.attributeTypeMap;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
public constructor() {
|
|
38
|
+
}
|
|
39
|
+
}
|
|
@@ -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 { EMAMomentumEvaluatorConfiguration } from '../models/EMAMomentumEvaluatorConfiguration';
|
|
14
|
+
import { RSIMomentumEvaluatorConfiguration } from '../models/RSIMomentumEvaluatorConfiguration';
|
|
15
|
+
|
|
16
|
+
/**
|
|
17
|
+
* @type EvaluatorConfigurationConfiguration
|
|
18
|
+
* Type
|
|
19
|
+
* @export
|
|
20
|
+
*/
|
|
21
|
+
export type EvaluatorConfigurationConfiguration = EMAMomentumEvaluatorConfiguration | RSIMomentumEvaluatorConfiguration;
|
|
22
|
+
|
|
23
|
+
/**
|
|
24
|
+
* @type EvaluatorConfigurationConfigurationClass
|
|
25
|
+
* @export
|
|
26
|
+
*/
|
|
27
|
+
export class EvaluatorConfigurationConfigurationClass {
|
|
28
|
+
static readonly discriminator: string | undefined = "configuration_type";
|
|
29
|
+
|
|
30
|
+
static readonly mapping: {[index: string]: string} | undefined = {
|
|
31
|
+
"EMAMomentumEvaluator": "EMAMomentumEvaluatorConfiguration",
|
|
32
|
+
"RSIMomentumEvaluator": "RSIMomentumEvaluatorConfiguration",
|
|
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
|
+
* EvaluatorType
|
|
16
|
+
*/
|
|
17
|
+
export enum EvaluatorType {
|
|
18
|
+
RsiMomentumEvaluator = 'RSIMomentumEvaluator',
|
|
19
|
+
EmaMomentumEvaluator = 'EMAMomentumEvaluator'
|
|
20
|
+
}
|
|
@@ -0,0 +1,119 @@
|
|
|
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 { AccountType } from '../models/AccountType';
|
|
14
|
+
import { Asset } from '../models/Asset';
|
|
15
|
+
import { Order } from '../models/Order';
|
|
16
|
+
import { Position } from '../models/Position';
|
|
17
|
+
import { Trade } from '../models/Trade';
|
|
18
|
+
import { TradingType } from '../models/TradingType';
|
|
19
|
+
|
|
20
|
+
/**
|
|
21
|
+
* ExchangeAccount
|
|
22
|
+
*/
|
|
23
|
+
export class ExchangeAccount {
|
|
24
|
+
/**
|
|
25
|
+
* exchange
|
|
26
|
+
*/
|
|
27
|
+
'account_type': AccountType;
|
|
28
|
+
'trading_type': TradingType;
|
|
29
|
+
'exchange': string;
|
|
30
|
+
'remote_account_id': string;
|
|
31
|
+
'api_key': string;
|
|
32
|
+
'api_secret': string;
|
|
33
|
+
'api_passphrase'?: string;
|
|
34
|
+
'assets'?: Array<Asset>;
|
|
35
|
+
'orders'?: Array<Order>;
|
|
36
|
+
'trades'?: Array<Trade>;
|
|
37
|
+
'positions'?: Array<Position>;
|
|
38
|
+
|
|
39
|
+
static readonly discriminator: string | undefined = undefined;
|
|
40
|
+
|
|
41
|
+
static readonly mapping: {[index: string]: string} | undefined = undefined;
|
|
42
|
+
|
|
43
|
+
static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [
|
|
44
|
+
{
|
|
45
|
+
"name": "account_type",
|
|
46
|
+
"baseName": "account_type",
|
|
47
|
+
"type": "AccountType",
|
|
48
|
+
"format": ""
|
|
49
|
+
},
|
|
50
|
+
{
|
|
51
|
+
"name": "trading_type",
|
|
52
|
+
"baseName": "trading_type",
|
|
53
|
+
"type": "TradingType",
|
|
54
|
+
"format": ""
|
|
55
|
+
},
|
|
56
|
+
{
|
|
57
|
+
"name": "exchange",
|
|
58
|
+
"baseName": "exchange",
|
|
59
|
+
"type": "string",
|
|
60
|
+
"format": ""
|
|
61
|
+
},
|
|
62
|
+
{
|
|
63
|
+
"name": "remote_account_id",
|
|
64
|
+
"baseName": "remote_account_id",
|
|
65
|
+
"type": "string",
|
|
66
|
+
"format": ""
|
|
67
|
+
},
|
|
68
|
+
{
|
|
69
|
+
"name": "api_key",
|
|
70
|
+
"baseName": "api_key",
|
|
71
|
+
"type": "string",
|
|
72
|
+
"format": ""
|
|
73
|
+
},
|
|
74
|
+
{
|
|
75
|
+
"name": "api_secret",
|
|
76
|
+
"baseName": "api_secret",
|
|
77
|
+
"type": "string",
|
|
78
|
+
"format": ""
|
|
79
|
+
},
|
|
80
|
+
{
|
|
81
|
+
"name": "api_passphrase",
|
|
82
|
+
"baseName": "api_passphrase",
|
|
83
|
+
"type": "string",
|
|
84
|
+
"format": ""
|
|
85
|
+
},
|
|
86
|
+
{
|
|
87
|
+
"name": "assets",
|
|
88
|
+
"baseName": "assets",
|
|
89
|
+
"type": "Array<Asset>",
|
|
90
|
+
"format": ""
|
|
91
|
+
},
|
|
92
|
+
{
|
|
93
|
+
"name": "orders",
|
|
94
|
+
"baseName": "orders",
|
|
95
|
+
"type": "Array<Order>",
|
|
96
|
+
"format": ""
|
|
97
|
+
},
|
|
98
|
+
{
|
|
99
|
+
"name": "trades",
|
|
100
|
+
"baseName": "trades",
|
|
101
|
+
"type": "Array<Trade>",
|
|
102
|
+
"format": ""
|
|
103
|
+
},
|
|
104
|
+
{
|
|
105
|
+
"name": "positions",
|
|
106
|
+
"baseName": "positions",
|
|
107
|
+
"type": "Array<Position>",
|
|
108
|
+
"format": ""
|
|
109
|
+
} ];
|
|
110
|
+
|
|
111
|
+
static getAttributeTypeMap() {
|
|
112
|
+
return ExchangeAccount.attributeTypeMap;
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
public constructor() {
|
|
116
|
+
}
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
|