@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.
Files changed (86) hide show
  1. package/models/Account.ts +89 -0
  2. package/models/AccountActionResult.ts +63 -0
  3. package/models/AccountActionResultErrorMessage.ts +21 -0
  4. package/models/AccountDetails.ts +38 -0
  5. package/models/AccountReference.ts +38 -0
  6. package/models/AccountState.ts +49 -0
  7. package/models/AccountStatus.ts +21 -0
  8. package/models/AccountStatusMessage.ts +27 -0
  9. package/models/AccountType.ts +21 -0
  10. package/models/AccountsState.ts +46 -0
  11. package/models/Action.ts +90 -0
  12. package/models/ActionConfigurationType.ts +25 -0
  13. package/models/ActiveOrderSwapStrategy.ts +55 -0
  14. package/models/ActiveOrderSwapStrategyType.ts +20 -0
  15. package/models/Asset.ts +66 -0
  16. package/models/AutomationActionResult.ts +70 -0
  17. package/models/AutomationActionResultErrorMessage.ts +24 -0
  18. package/models/AutomationConfiguration.ts +75 -0
  19. package/models/AutomationMetadata.ts +59 -0
  20. package/models/AutomationState.ts +117 -0
  21. package/models/BlockchainAccount.ts +79 -0
  22. package/models/CancelPolicy.ts +48 -0
  23. package/models/CancelPolicyType.ts +20 -0
  24. package/models/CopiedAccount.ts +76 -0
  25. package/models/CopiedAsset.ts +59 -0
  26. package/models/CopyConfiguration.ts +51 -0
  27. package/models/CreateAccountConfiguration.ts +52 -0
  28. package/models/CreateAutomationConfiguration.ts +52 -0
  29. package/models/DCAConfiguration.ts +127 -0
  30. package/models/DeleteAccountConfiguration.ts +51 -0
  31. package/models/EMAMomentumEvaluatorConfiguration.ts +65 -0
  32. package/models/EditAccountConfiguration.ts +59 -0
  33. package/models/EditAutomationConfiguration.ts +59 -0
  34. package/models/EvaluatorConfiguration.ts +39 -0
  35. package/models/EvaluatorConfigurationConfiguration.ts +35 -0
  36. package/models/EvaluatorType.ts +20 -0
  37. package/models/ExchangeAccount.ts +119 -0
  38. package/models/GenericAccount.ts +52 -0
  39. package/models/GenericProcessConfiguration.ts +51 -0
  40. package/models/GenericWorkflowConfiguration.ts +52 -0
  41. package/models/GridConfiguration.ts +112 -0
  42. package/models/IndexCoin.ts +45 -0
  43. package/models/IndexConfiguration.ts +59 -0
  44. package/models/MarketMakingConfiguration.ts +52 -0
  45. package/models/MarketMakingFundsDistribution.ts +21 -0
  46. package/models/MarketMakingHedgingEngine.ts +86 -0
  47. package/models/MarketMakingOrderBookDepth.ts +45 -0
  48. package/models/MarketMakingOrdersDistribution.ts +19 -0
  49. package/models/MarketMakingReferencePair.ts +75 -0
  50. package/models/MarketMakingScheduledVolume.ts +59 -0
  51. package/models/MarketMakingStopConditions.ts +69 -0
  52. package/models/MarketMakingSymbolConfiguration.ts +171 -0
  53. package/models/Order.ts +172 -0
  54. package/models/OrderGroup.ts +56 -0
  55. package/models/OrderGroupType.ts +21 -0
  56. package/models/OrderStatus.ts +28 -0
  57. package/models/OrderSummary.ts +45 -0
  58. package/models/OrderType.ts +24 -0
  59. package/models/Position.ts +91 -0
  60. package/models/PositionStatus.ts +22 -0
  61. package/models/PositionSummary.ts +45 -0
  62. package/models/RSIMomentumEvaluatorConfiguration.ts +65 -0
  63. package/models/RefreshAccountsConfiguration.ts +51 -0
  64. package/models/Side.ts +20 -0
  65. package/models/StopAutomationConfiguration.ts +51 -0
  66. package/models/StrategiesState.ts +46 -0
  67. package/models/Strategy.ts +81 -0
  68. package/models/StrategyConfiguration.ts +50 -0
  69. package/models/StrategyReference.ts +52 -0
  70. package/models/TaskStatus.ts +24 -0
  71. package/models/TimeFrame.ts +30 -0
  72. package/models/Trade.ts +99 -0
  73. package/models/TradeSummary.ts +45 -0
  74. package/models/TradingType.ts +22 -0
  75. package/models/TrailingProfile.ts +48 -0
  76. package/models/TrailingProfileType.ts +19 -0
  77. package/models/UserAction.ts +78 -0
  78. package/models/UserActionConfiguration.ts +50 -0
  79. package/models/UserActionResult.ts +35 -0
  80. package/models/UserActionResultType.ts +20 -0
  81. package/models/UserActionStatus.ts +22 -0
  82. package/models/UserActionType.ts +25 -0
  83. package/models/UserActionsState.ts +46 -0
  84. package/models/UserDataState.ts +54 -0
  85. package/models/index.ts +84 -0
  86. package/package.json +9 -0
@@ -0,0 +1,89 @@
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 { AccountDetails } from '../models/AccountDetails';
14
+ import { AccountState } from '../models/AccountState';
15
+
16
+ /**
17
+ * Account
18
+ */
19
+ export class Account {
20
+ 'id': string;
21
+ 'name': string;
22
+ 'is_simulated': boolean;
23
+ 'description'?: string;
24
+ 'state'?: AccountState;
25
+ 'created_at': Date;
26
+ 'updated_at': Date;
27
+ 'details'?: AccountDetails;
28
+
29
+ static readonly discriminator: string | undefined = undefined;
30
+
31
+ static readonly mapping: {[index: string]: string} | undefined = undefined;
32
+
33
+ static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [
34
+ {
35
+ "name": "id",
36
+ "baseName": "id",
37
+ "type": "string",
38
+ "format": ""
39
+ },
40
+ {
41
+ "name": "name",
42
+ "baseName": "name",
43
+ "type": "string",
44
+ "format": ""
45
+ },
46
+ {
47
+ "name": "is_simulated",
48
+ "baseName": "is_simulated",
49
+ "type": "boolean",
50
+ "format": ""
51
+ },
52
+ {
53
+ "name": "description",
54
+ "baseName": "description",
55
+ "type": "string",
56
+ "format": ""
57
+ },
58
+ {
59
+ "name": "state",
60
+ "baseName": "state",
61
+ "type": "AccountState",
62
+ "format": ""
63
+ },
64
+ {
65
+ "name": "created_at",
66
+ "baseName": "created_at",
67
+ "type": "Date",
68
+ "format": "date-time"
69
+ },
70
+ {
71
+ "name": "updated_at",
72
+ "baseName": "updated_at",
73
+ "type": "Date",
74
+ "format": "date-time"
75
+ },
76
+ {
77
+ "name": "details",
78
+ "baseName": "details",
79
+ "type": "AccountDetails",
80
+ "format": ""
81
+ } ];
82
+
83
+ static getAttributeTypeMap() {
84
+ return Account.attributeTypeMap;
85
+ }
86
+
87
+ public constructor() {
88
+ }
89
+ }
@@ -0,0 +1,63 @@
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 { AccountActionResultErrorMessage } from '../models/AccountActionResultErrorMessage';
14
+ import { UserActionResultType } from '../models/UserActionResultType';
15
+
16
+ /**
17
+ * AccountActionResult
18
+ */
19
+ export class AccountActionResult {
20
+ 'updated_at': Date;
21
+ 'error_message'?: AccountActionResultErrorMessage;
22
+ 'error_details'?: string;
23
+ 'result_type': UserActionResultType;
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": "updated_at",
32
+ "baseName": "updated_at",
33
+ "type": "Date",
34
+ "format": "date-time"
35
+ },
36
+ {
37
+ "name": "error_message",
38
+ "baseName": "error_message",
39
+ "type": "AccountActionResultErrorMessage",
40
+ "format": ""
41
+ },
42
+ {
43
+ "name": "error_details",
44
+ "baseName": "error_details",
45
+ "type": "string",
46
+ "format": ""
47
+ },
48
+ {
49
+ "name": "result_type",
50
+ "baseName": "result_type",
51
+ "type": "UserActionResultType",
52
+ "format": ""
53
+ } ];
54
+
55
+ static getAttributeTypeMap() {
56
+ return AccountActionResult.attributeTypeMap;
57
+ }
58
+
59
+ public constructor() {
60
+ }
61
+ }
62
+
63
+
@@ -0,0 +1,21 @@
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
+ * AccountActionResultErrorMessage
16
+ */
17
+ export enum AccountActionResultErrorMessage {
18
+ AccountNotFound = 'account_not_found',
19
+ InvalidConfiguration = 'invalid_configuration',
20
+ InternalError = 'internal_error'
21
+ }
@@ -0,0 +1,38 @@
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 { BlockchainAccount } from '../models/BlockchainAccount';
14
+ import { ExchangeAccount } from '../models/ExchangeAccount';
15
+ import { GenericAccount } from '../models/GenericAccount';
16
+
17
+ /**
18
+ * @type AccountDetails
19
+ * Type
20
+ * @export
21
+ */
22
+ export type AccountDetails = BlockchainAccount | ExchangeAccount | GenericAccount;
23
+
24
+ /**
25
+ * @type AccountDetailsClass
26
+ * @export
27
+ */
28
+ export class AccountDetailsClass {
29
+ static readonly discriminator: string | undefined = "account_type";
30
+
31
+ static readonly mapping: {[index: string]: string} | undefined = {
32
+ "blockchain": "BlockchainAccount",
33
+ "exchange": "ExchangeAccount",
34
+ "generic": "GenericAccount",
35
+ };
36
+ }
37
+
38
+
@@ -0,0 +1,38 @@
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
+ * AccountReference
16
+ */
17
+ export class AccountReference {
18
+ 'id': string;
19
+
20
+ static readonly discriminator: string | undefined = undefined;
21
+
22
+ static readonly mapping: {[index: string]: string} | undefined = undefined;
23
+
24
+ static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [
25
+ {
26
+ "name": "id",
27
+ "baseName": "id",
28
+ "type": "string",
29
+ "format": ""
30
+ } ];
31
+
32
+ static getAttributeTypeMap() {
33
+ return AccountReference.attributeTypeMap;
34
+ }
35
+
36
+ public constructor() {
37
+ }
38
+ }
@@ -0,0 +1,49 @@
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 { AccountStatus } from '../models/AccountStatus';
14
+ import { AccountStatusMessage } from '../models/AccountStatusMessage';
15
+
16
+ /**
17
+ * AccountState
18
+ */
19
+ export class AccountState {
20
+ 'status': AccountStatus;
21
+ 'message'?: AccountStatusMessage;
22
+
23
+ static readonly discriminator: string | undefined = undefined;
24
+
25
+ static readonly mapping: {[index: string]: string} | undefined = undefined;
26
+
27
+ static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [
28
+ {
29
+ "name": "status",
30
+ "baseName": "status",
31
+ "type": "AccountStatus",
32
+ "format": ""
33
+ },
34
+ {
35
+ "name": "message",
36
+ "baseName": "message",
37
+ "type": "AccountStatusMessage",
38
+ "format": ""
39
+ } ];
40
+
41
+ static getAttributeTypeMap() {
42
+ return AccountState.attributeTypeMap;
43
+ }
44
+
45
+ public constructor() {
46
+ }
47
+ }
48
+
49
+
@@ -0,0 +1,21 @@
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
+ * AccountStatus
16
+ */
17
+ export enum AccountStatus {
18
+ Valid = 'valid',
19
+ Invalid = 'invalid',
20
+ Unknown = 'unknown'
21
+ }
@@ -0,0 +1,27 @@
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
+ * AccountStatusMessage
16
+ */
17
+ export enum AccountStatusMessage {
18
+ PendingValidation = 'pending_validation',
19
+ Valid = 'valid',
20
+ InvalidApiKeys = 'invalid_api_keys',
21
+ MissingApiTradingRights = 'missing_api_trading_rights',
22
+ RevokeApiWithdrawalRights = 'revoke_api_withdrawal_rights',
23
+ InvalidApiIpWhitelist = 'invalid_api_ip_whitelist',
24
+ InternalServerError = 'internal_server_error',
25
+ AccountTooOld = 'account_too_old',
26
+ IncompatibleAccountReferral = 'incompatible_account_referral'
27
+ }
@@ -0,0 +1,21 @@
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
+ * Account category discriminator.
16
+ */
17
+ export enum AccountType {
18
+ Generic = 'generic',
19
+ Exchange = 'exchange',
20
+ Blockchain = 'blockchain'
21
+ }
@@ -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 { Account } from '../models/Account';
14
+
15
+ /**
16
+ * AccountsState
17
+ */
18
+ export class AccountsState {
19
+ 'version': string;
20
+ 'accounts'?: Array<Account>;
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": "accounts",
35
+ "baseName": "accounts",
36
+ "type": "Array<Account>",
37
+ "format": ""
38
+ } ];
39
+
40
+ static getAttributeTypeMap() {
41
+ return AccountsState.attributeTypeMap;
42
+ }
43
+
44
+ public constructor() {
45
+ }
46
+ }
@@ -0,0 +1,90 @@
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 { TaskStatus } from '../models/TaskStatus';
14
+
15
+ /**
16
+ * Action
17
+ */
18
+ export class Action {
19
+ 'id': string;
20
+ 'action_type': string;
21
+ 'status': TaskStatus;
22
+ 'dsl'?: string;
23
+ 'configuration'?: { [key: string]: any; };
24
+ 'result'?: string;
25
+ 'error'?: string;
26
+ 'completed_at'?: Date;
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": "action_type",
41
+ "baseName": "action_type",
42
+ "type": "string",
43
+ "format": ""
44
+ },
45
+ {
46
+ "name": "status",
47
+ "baseName": "status",
48
+ "type": "TaskStatus",
49
+ "format": ""
50
+ },
51
+ {
52
+ "name": "dsl",
53
+ "baseName": "dsl",
54
+ "type": "string",
55
+ "format": ""
56
+ },
57
+ {
58
+ "name": "configuration",
59
+ "baseName": "configuration",
60
+ "type": "{ [key: string]: any; }",
61
+ "format": ""
62
+ },
63
+ {
64
+ "name": "result",
65
+ "baseName": "result",
66
+ "type": "string",
67
+ "format": ""
68
+ },
69
+ {
70
+ "name": "error",
71
+ "baseName": "error",
72
+ "type": "string",
73
+ "format": ""
74
+ },
75
+ {
76
+ "name": "completed_at",
77
+ "baseName": "completed_at",
78
+ "type": "Date",
79
+ "format": "date-time"
80
+ } ];
81
+
82
+ static getAttributeTypeMap() {
83
+ return Action.attributeTypeMap;
84
+ }
85
+
86
+ public constructor() {
87
+ }
88
+ }
89
+
90
+
@@ -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
+ * ActionConfigurationType
16
+ */
17
+ export enum ActionConfigurationType {
18
+ MarketMaking = 'market_making',
19
+ Dca = 'dca',
20
+ Index = 'index',
21
+ Grid = 'grid',
22
+ Copy = 'copy',
23
+ GenericProcess = 'generic_process',
24
+ GenericWorkflow = 'generic_workflow'
25
+ }
@@ -0,0 +1,55 @@
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 { ActiveOrderSwapStrategyType } from '../models/ActiveOrderSwapStrategyType';
14
+
15
+ /**
16
+ * ActiveOrderSwapStrategy
17
+ */
18
+ export class ActiveOrderSwapStrategy {
19
+ 'type': ActiveOrderSwapStrategyType;
20
+ 'trigger_price_configuration'?: any;
21
+ 'timeout'?: number;
22
+
23
+ static readonly discriminator: string | undefined = undefined;
24
+
25
+ static readonly mapping: {[index: string]: string} | undefined = undefined;
26
+
27
+ static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [
28
+ {
29
+ "name": "type",
30
+ "baseName": "type",
31
+ "type": "ActiveOrderSwapStrategyType",
32
+ "format": ""
33
+ },
34
+ {
35
+ "name": "trigger_price_configuration",
36
+ "baseName": "trigger_price_configuration",
37
+ "type": "any",
38
+ "format": ""
39
+ },
40
+ {
41
+ "name": "timeout",
42
+ "baseName": "timeout",
43
+ "type": "number",
44
+ "format": ""
45
+ } ];
46
+
47
+ static getAttributeTypeMap() {
48
+ return ActiveOrderSwapStrategy.attributeTypeMap;
49
+ }
50
+
51
+ public constructor() {
52
+ }
53
+ }
54
+
55
+
@@ -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
+ * Active order swap strategy class name (mirrors octobot_trading active_order_swap_strategy_factory).
16
+ */
17
+ export enum ActiveOrderSwapStrategyType {
18
+ StopFirstActiveOrderSwapStrategy = 'StopFirstActiveOrderSwapStrategy',
19
+ TakeProfitFirstActiveOrderSwapStrategy = 'TakeProfitFirstActiveOrderSwapStrategy'
20
+ }
@@ -0,0 +1,66 @@
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
+ * Asset
16
+ */
17
+ export class Asset {
18
+ 'symbol': string;
19
+ 'total': number;
20
+ 'available': number;
21
+ 'value'?: number;
22
+ 'unit'?: string;
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": "symbol",
31
+ "baseName": "symbol",
32
+ "type": "string",
33
+ "format": ""
34
+ },
35
+ {
36
+ "name": "total",
37
+ "baseName": "total",
38
+ "type": "number",
39
+ "format": ""
40
+ },
41
+ {
42
+ "name": "available",
43
+ "baseName": "available",
44
+ "type": "number",
45
+ "format": ""
46
+ },
47
+ {
48
+ "name": "value",
49
+ "baseName": "value",
50
+ "type": "number",
51
+ "format": ""
52
+ },
53
+ {
54
+ "name": "unit",
55
+ "baseName": "unit",
56
+ "type": "string",
57
+ "format": ""
58
+ } ];
59
+
60
+ static getAttributeTypeMap() {
61
+ return Asset.attributeTypeMap;
62
+ }
63
+
64
+ public constructor() {
65
+ }
66
+ }