pyEscoAPI 0.0.17__tar.gz → 0.0.19__tar.gz
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.
- {pyescoapi-0.0.17 → pyescoapi-0.0.19}/PKG-INFO +1 -1
- {pyescoapi-0.0.17 → pyescoapi-0.0.19}/pyEscoAPI/esco_api.py +347 -347
- {pyescoapi-0.0.17 → pyescoapi-0.0.19}/pyEscoAPI.egg-info/PKG-INFO +1 -1
- {pyescoapi-0.0.17 → pyescoapi-0.0.19}/pyproject.toml +1 -1
- {pyescoapi-0.0.17 → pyescoapi-0.0.19}/README.md +0 -0
- {pyescoapi-0.0.17 → pyescoapi-0.0.19}/pyEscoAPI/__init__.py +0 -0
- {pyescoapi-0.0.17 → pyescoapi-0.0.19}/pyEscoAPI/dataclasses.py +0 -0
- {pyescoapi-0.0.17 → pyescoapi-0.0.19}/pyEscoAPI/exception.py +0 -0
- {pyescoapi-0.0.17 → pyescoapi-0.0.19}/pyEscoAPI.egg-info/SOURCES.txt +0 -0
- {pyescoapi-0.0.17 → pyescoapi-0.0.19}/pyEscoAPI.egg-info/dependency_links.txt +0 -0
- {pyescoapi-0.0.17 → pyescoapi-0.0.19}/pyEscoAPI.egg-info/requires.txt +0 -0
- {pyescoapi-0.0.17 → pyescoapi-0.0.19}/pyEscoAPI.egg-info/top_level.txt +0 -0
- {pyescoapi-0.0.17 → pyescoapi-0.0.19}/setup.cfg +0 -0
- {pyescoapi-0.0.17 → pyescoapi-0.0.19}/tests/test_client.py +0 -0
|
@@ -34,7 +34,7 @@ class APIVersion(Enum):
|
|
|
34
34
|
|
|
35
35
|
|
|
36
36
|
class EscoAPI:
|
|
37
|
-
|
|
37
|
+
__instance = None
|
|
38
38
|
|
|
39
39
|
base_url: str
|
|
40
40
|
username: str
|
|
@@ -46,11 +46,11 @@ class EscoAPI:
|
|
|
46
46
|
__expire_datetime: datetime
|
|
47
47
|
|
|
48
48
|
def __make_request(
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
49
|
+
self,
|
|
50
|
+
request_endpoint: str,
|
|
51
|
+
request_method: HTTPMethod,
|
|
52
|
+
request_body: dict,
|
|
53
|
+
error_message: str = ""
|
|
54
54
|
):
|
|
55
55
|
req_call = getattr(requests, request_method.lower())
|
|
56
56
|
headers = {
|
|
@@ -113,10 +113,10 @@ class EscoAPI:
|
|
|
113
113
|
self.__esco_login()
|
|
114
114
|
|
|
115
115
|
def __new__(cls, base_url: str, username: str, password: str, client_id: str, version: APIVersion):
|
|
116
|
-
if cls.
|
|
116
|
+
if cls.__instance is None:
|
|
117
117
|
cls._initialized = False
|
|
118
|
-
cls.
|
|
119
|
-
return cls.
|
|
118
|
+
cls.__instance = super(EscoAPI, cls).__new__(cls)
|
|
119
|
+
return cls.__instance
|
|
120
120
|
|
|
121
121
|
def __init__(
|
|
122
122
|
self,
|
|
@@ -129,7 +129,7 @@ class EscoAPI:
|
|
|
129
129
|
"""
|
|
130
130
|
Initializes the EscoAPI client, starting a login to the platform.
|
|
131
131
|
Instantiating a new EscoAPI client will not result in a new login (Singleton).
|
|
132
|
-
Login runs automatically when the last
|
|
132
|
+
Login runs automatically when the last __token expires.
|
|
133
133
|
:param base_url: The URL of your EscoAPI implementation. Include the protocol without slash at the end.
|
|
134
134
|
:param username: The username of your EscoAPI client.
|
|
135
135
|
:param password: The password of your EscoAPI client.
|
|
@@ -147,16 +147,16 @@ class EscoAPI:
|
|
|
147
147
|
self._initialized = True
|
|
148
148
|
|
|
149
149
|
def get_posiciones(
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
150
|
+
self,
|
|
151
|
+
cuenta: str,
|
|
152
|
+
por_concertacion: bool = True,
|
|
153
|
+
es_consolidado: bool = False,
|
|
154
|
+
incluir_monedas: bool = True,
|
|
155
|
+
incluir_titulos: bool = False,
|
|
156
|
+
incluir_opciones: bool = False,
|
|
157
|
+
incluir_futuros: bool = False,
|
|
158
|
+
incluir_fondos: bool = False,
|
|
159
|
+
solo_saldos_iniciales: bool = True
|
|
160
160
|
):
|
|
161
161
|
"""
|
|
162
162
|
Esta consulta devuelve las tenencias de instrumentos de una cuenta o una lista de cuentas a una fecha
|
|
@@ -191,16 +191,16 @@ class EscoAPI:
|
|
|
191
191
|
)
|
|
192
192
|
|
|
193
193
|
def get_disponible_mon(
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
194
|
+
self,
|
|
195
|
+
cuenta: str,
|
|
196
|
+
fecha_disponible: datetime = datetime.now(),
|
|
197
|
+
moneda: str = "ARS",
|
|
198
|
+
dias_rescates_pendientes: int = 0,
|
|
199
|
+
dias_suscripciones_pendientes: int = 0,
|
|
200
|
+
plazo: int = 0,
|
|
201
|
+
incluye_creditos: bool = True,
|
|
202
|
+
fecha_colocacion_hasta: datetime = datetime.now(),
|
|
203
|
+
es_bloqueado_bcra: bool = False
|
|
204
204
|
):
|
|
205
205
|
"""
|
|
206
206
|
Esta consulta informa el disponible de moneda para una cuenta comitente a una fecha determinada.
|
|
@@ -235,16 +235,16 @@ class EscoAPI:
|
|
|
235
235
|
)
|
|
236
236
|
|
|
237
237
|
def get_disponible_mon_list(
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
238
|
+
self,
|
|
239
|
+
cuentas: str,
|
|
240
|
+
fecha_disponible: datetime = datetime.now(),
|
|
241
|
+
monedas: list[str] = ["ARS", "USD", "USD-C"],
|
|
242
|
+
dias_rescates_pendientes: int = 0,
|
|
243
|
+
dias_suscripciones_pendientes: int = 0,
|
|
244
|
+
plazos: list[int] = [0, 1, 2],
|
|
245
|
+
incluye_creditos: bool = True,
|
|
246
|
+
fecha_colocacion_hasta: datetime = datetime.now(),
|
|
247
|
+
es_bloqueado_bcra: bool = False
|
|
248
248
|
):
|
|
249
249
|
"""
|
|
250
250
|
Esta consulta informa el disponible de moneda para una cuenta comitente a una fecha determinada, agrupando por moneda y por plazo.
|
|
@@ -279,21 +279,21 @@ class EscoAPI:
|
|
|
279
279
|
)
|
|
280
280
|
|
|
281
281
|
def get_tenencia_val(
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
282
|
+
self,
|
|
283
|
+
cuenta: str,
|
|
284
|
+
fecha: datetime = datetime.now(),
|
|
285
|
+
por_concertacion: bool = True,
|
|
286
|
+
es_consolidado: bool = False,
|
|
287
|
+
agrupar_por_moneda: bool = True,
|
|
288
|
+
moneda_valuacion: str = "ARS",
|
|
289
|
+
incluir_ppp: bool = False,
|
|
290
|
+
incluir_monedas: bool = True,
|
|
291
|
+
incluir_titulos: bool = False,
|
|
292
|
+
incluir_opciones: bool = False,
|
|
293
|
+
incluir_futuros: bool = False,
|
|
294
|
+
incluir_fondos: bool = False,
|
|
295
|
+
valuar_posicion: bool = True,
|
|
296
|
+
utiliza_cotizaciones_online: bool = True
|
|
297
297
|
):
|
|
298
298
|
"""
|
|
299
299
|
Esta consulta devuelve la tenencia valorizada de una cuenta a una determinada fecha.
|
|
@@ -336,10 +336,10 @@ class EscoAPI:
|
|
|
336
336
|
)
|
|
337
337
|
|
|
338
338
|
def get_tenencia_val_vencimientos(
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
339
|
+
self,
|
|
340
|
+
cuenta: str,
|
|
341
|
+
fecha: datetime = datetime.now(),
|
|
342
|
+
incluir_ppp: bool = True
|
|
343
343
|
):
|
|
344
344
|
"""
|
|
345
345
|
Esta consulta devuelve la valuación de una cuenta a una determinada fecha (por liquidación) y los
|
|
@@ -361,11 +361,11 @@ class EscoAPI:
|
|
|
361
361
|
)
|
|
362
362
|
|
|
363
363
|
def get_rendimiento_cartera(
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
364
|
+
self,
|
|
365
|
+
cuenta: str,
|
|
366
|
+
fecha_desde: datetime = datetime.now() - timedelta(days=15),
|
|
367
|
+
fecha_hasta: datetime = datetime.now(),
|
|
368
|
+
por_concertacion: bool = True
|
|
369
369
|
):
|
|
370
370
|
"""
|
|
371
371
|
|
|
@@ -388,11 +388,11 @@ class EscoAPI:
|
|
|
388
388
|
)
|
|
389
389
|
|
|
390
390
|
def get_instrumentos(
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
391
|
+
self,
|
|
392
|
+
cod_tp_especie: int,
|
|
393
|
+
page_number: int = 1,
|
|
394
|
+
page_size: int = 200,
|
|
395
|
+
solo_byma: bool = True
|
|
396
396
|
):
|
|
397
397
|
"""
|
|
398
398
|
Es una consulta de Instrumentos que se pueden operar. Se toman de la tabla que registra todos los
|
|
@@ -664,35 +664,35 @@ class EscoAPI:
|
|
|
664
664
|
)
|
|
665
665
|
|
|
666
666
|
def insert_orden_compra(
|
|
667
|
-
|
|
668
|
-
|
|
669
|
-
|
|
670
|
-
|
|
671
|
-
|
|
672
|
-
|
|
673
|
-
|
|
674
|
-
|
|
675
|
-
|
|
676
|
-
|
|
677
|
-
|
|
678
|
-
|
|
679
|
-
|
|
680
|
-
|
|
681
|
-
|
|
682
|
-
|
|
683
|
-
|
|
684
|
-
|
|
685
|
-
|
|
686
|
-
|
|
687
|
-
|
|
688
|
-
|
|
689
|
-
|
|
690
|
-
|
|
691
|
-
|
|
692
|
-
|
|
693
|
-
|
|
694
|
-
|
|
695
|
-
|
|
667
|
+
self,
|
|
668
|
+
instrumento_abreviatura: str,
|
|
669
|
+
cuenta: str,
|
|
670
|
+
plazo: int = 0,
|
|
671
|
+
cantidad: int = None,
|
|
672
|
+
precio: decimal = None,
|
|
673
|
+
importe: decimal = None,
|
|
674
|
+
moneda: str = "ARS",
|
|
675
|
+
fecha_concertacion: date = date.today(),
|
|
676
|
+
observacion: str = None,
|
|
677
|
+
cod_usuario: int = None,
|
|
678
|
+
id_usuario: str = None,
|
|
679
|
+
aplicacion: str = None,
|
|
680
|
+
dias_susc_pendiente: int = None,
|
|
681
|
+
dias_resc_pendiente: int = None,
|
|
682
|
+
incluye_gastos_en_importe: bool = False,
|
|
683
|
+
variacion_precio: decimal = None,
|
|
684
|
+
mercado: str = "ME",
|
|
685
|
+
controla_perfil_inversor: bool = None,
|
|
686
|
+
controla_subyacente: bool = None,
|
|
687
|
+
rutear_orden_al_mercado: bool = True,
|
|
688
|
+
validar_orden: bool = True,
|
|
689
|
+
validar_precio: bool = False,
|
|
690
|
+
orden_market: bool = True,
|
|
691
|
+
fix_order_id: str = None,
|
|
692
|
+
aplica_aranceles_extraordinarios: bool = None,
|
|
693
|
+
tp_operacion: str = None,
|
|
694
|
+
precio_referencia: decimal = None,
|
|
695
|
+
gastos: decimal = None,
|
|
696
696
|
):
|
|
697
697
|
"""
|
|
698
698
|
Inserta una orden de compra de instrumento a un mercado.
|
|
@@ -765,35 +765,35 @@ class EscoAPI:
|
|
|
765
765
|
)
|
|
766
766
|
|
|
767
767
|
def insert_orden_venta(
|
|
768
|
-
|
|
769
|
-
|
|
770
|
-
|
|
771
|
-
|
|
772
|
-
|
|
773
|
-
|
|
774
|
-
|
|
775
|
-
|
|
776
|
-
|
|
777
|
-
|
|
778
|
-
|
|
779
|
-
|
|
780
|
-
|
|
781
|
-
|
|
782
|
-
|
|
783
|
-
|
|
784
|
-
|
|
785
|
-
|
|
786
|
-
|
|
787
|
-
|
|
788
|
-
|
|
789
|
-
|
|
790
|
-
|
|
791
|
-
|
|
792
|
-
|
|
793
|
-
|
|
794
|
-
|
|
795
|
-
|
|
796
|
-
|
|
768
|
+
self,
|
|
769
|
+
instrumento_abreviatura: str,
|
|
770
|
+
cuenta: str,
|
|
771
|
+
plazo: int = 0,
|
|
772
|
+
cantidad: int = None,
|
|
773
|
+
precio: decimal = None,
|
|
774
|
+
importe: decimal = None,
|
|
775
|
+
moneda: str = "ARS",
|
|
776
|
+
fecha_concertacion: date = date.today(),
|
|
777
|
+
observacion: str = None,
|
|
778
|
+
cod_usuario: int = None,
|
|
779
|
+
id_usuario: str = None,
|
|
780
|
+
aplicacion: str = None,
|
|
781
|
+
dias_susc_pendiente: int = None,
|
|
782
|
+
dias_resc_pendiente: int = None,
|
|
783
|
+
incluye_gastos_en_importe: bool = False,
|
|
784
|
+
variacion_precio: decimal = None,
|
|
785
|
+
mercado: str = "ME",
|
|
786
|
+
controla_perfil_inversor: bool = None,
|
|
787
|
+
controla_subyacente: bool = None,
|
|
788
|
+
rutear_orden_al_mercado: bool = True,
|
|
789
|
+
validar_orden: bool = True,
|
|
790
|
+
validar_precio: bool = False,
|
|
791
|
+
orden_market: bool = True,
|
|
792
|
+
fix_order_id: str = None,
|
|
793
|
+
aplica_aranceles_extraordinarios: bool = None,
|
|
794
|
+
tp_operacion: str = None,
|
|
795
|
+
precio_referencia: decimal = None,
|
|
796
|
+
gastos: decimal = None,
|
|
797
797
|
):
|
|
798
798
|
"""
|
|
799
799
|
Inserta una orden de venta de instrumento en tenencia a un mercado.
|
|
@@ -865,25 +865,25 @@ class EscoAPI:
|
|
|
865
865
|
)
|
|
866
866
|
|
|
867
867
|
def insert_solicitud_suscripcion_fci(
|
|
868
|
-
|
|
869
|
-
|
|
870
|
-
|
|
871
|
-
|
|
872
|
-
|
|
873
|
-
|
|
874
|
-
|
|
875
|
-
|
|
876
|
-
|
|
877
|
-
|
|
878
|
-
|
|
879
|
-
|
|
880
|
-
|
|
881
|
-
|
|
882
|
-
|
|
883
|
-
|
|
884
|
-
|
|
885
|
-
|
|
886
|
-
|
|
868
|
+
self,
|
|
869
|
+
fondo: str,
|
|
870
|
+
cuenta: str,
|
|
871
|
+
importe: decimal,
|
|
872
|
+
fecha_concertacion: date = date.today(),
|
|
873
|
+
fecha_acreditacion: date = date.today(),
|
|
874
|
+
tp_cambio_mov_pais: decimal = 1,
|
|
875
|
+
moneda: str = "ARS",
|
|
876
|
+
cod_usuario: int = None,
|
|
877
|
+
id_usuario: str = None,
|
|
878
|
+
cod_reglamento: int = None,
|
|
879
|
+
cod_documentacion_web: int = None,
|
|
880
|
+
cod_cta_bancaria: int = None,
|
|
881
|
+
valor_cuotaparte: decimal = None,
|
|
882
|
+
canal: str = "VB",
|
|
883
|
+
controla_perfil_inversor: bool = None,
|
|
884
|
+
controla_saldo_monetario: bool = True,
|
|
885
|
+
cod_agente_depo: int = None,
|
|
886
|
+
incluye_creditos: bool = True
|
|
887
887
|
):
|
|
888
888
|
"""
|
|
889
889
|
Inserta una solicitud de suscripcion a un fondo en una fecha determinada
|
|
@@ -934,28 +934,28 @@ class EscoAPI:
|
|
|
934
934
|
)
|
|
935
935
|
|
|
936
936
|
def insert_solicitud_rescate_fci(
|
|
937
|
-
|
|
938
|
-
|
|
939
|
-
|
|
940
|
-
|
|
941
|
-
|
|
942
|
-
|
|
943
|
-
|
|
944
|
-
|
|
945
|
-
|
|
946
|
-
|
|
947
|
-
|
|
948
|
-
|
|
949
|
-
|
|
950
|
-
|
|
951
|
-
|
|
952
|
-
|
|
953
|
-
|
|
954
|
-
|
|
955
|
-
|
|
956
|
-
|
|
957
|
-
|
|
958
|
-
|
|
937
|
+
self,
|
|
938
|
+
fondo: str,
|
|
939
|
+
cuenta: str,
|
|
940
|
+
importe: decimal = None,
|
|
941
|
+
cant_cuotapartes: decimal = None,
|
|
942
|
+
es_total: bool = False,
|
|
943
|
+
es_por_cantidad: bool = False,
|
|
944
|
+
fecha_concertacion: date = date.today(),
|
|
945
|
+
fecha_acreditacion: date = date.today(),
|
|
946
|
+
tp_cambio_mov_pais: decimal = 1,
|
|
947
|
+
moneda: str = "ARS",
|
|
948
|
+
cod_usuario: int = None,
|
|
949
|
+
id_usuario: str = None,
|
|
950
|
+
cod_reglamento: int = None,
|
|
951
|
+
cod_documentacion_web: int = None,
|
|
952
|
+
cod_cta_bancaria: int = None,
|
|
953
|
+
valor_cuotaparte: decimal = None,
|
|
954
|
+
canal: str = "VB",
|
|
955
|
+
controla_perfil_inversor: bool = None,
|
|
956
|
+
controla_saldo_monetario: bool = True,
|
|
957
|
+
cod_agente_depo: int = None,
|
|
958
|
+
incluye_creditos: bool = True
|
|
959
959
|
):
|
|
960
960
|
"""
|
|
961
961
|
Inserta una solicitud de rescate a un fondo en una fecha determinada
|
|
@@ -1012,13 +1012,13 @@ class EscoAPI:
|
|
|
1012
1012
|
)
|
|
1013
1013
|
|
|
1014
1014
|
def get_boletos(
|
|
1015
|
-
|
|
1016
|
-
|
|
1017
|
-
|
|
1018
|
-
|
|
1019
|
-
|
|
1020
|
-
|
|
1021
|
-
|
|
1015
|
+
self,
|
|
1016
|
+
cuentas: str = None,
|
|
1017
|
+
fecha_desde: datetime = datetime.now() - timedelta(days=30),
|
|
1018
|
+
fecha_hasta: datetime = datetime.now(),
|
|
1019
|
+
por_concertacion: bool = True,
|
|
1020
|
+
es_consolidado: bool = True,
|
|
1021
|
+
incluye_anulados: bool = True
|
|
1022
1022
|
):
|
|
1023
1023
|
"""
|
|
1024
1024
|
Es una consulta de todos los boletos generados en VBolsa. Solo se muestran boletos vigentes, no se
|
|
@@ -1046,12 +1046,12 @@ class EscoAPI:
|
|
|
1046
1046
|
)
|
|
1047
1047
|
|
|
1048
1048
|
def get_recibos_comprobantes(
|
|
1049
|
-
|
|
1050
|
-
|
|
1051
|
-
|
|
1052
|
-
|
|
1053
|
-
|
|
1054
|
-
|
|
1049
|
+
self,
|
|
1050
|
+
cuentas: str = None,
|
|
1051
|
+
fecha_desde: datetime = datetime.now() - timedelta(days=30),
|
|
1052
|
+
fecha_hasta: datetime = datetime.now(),
|
|
1053
|
+
por_concertacion: bool = True,
|
|
1054
|
+
es_consolidado: bool = True,
|
|
1055
1055
|
):
|
|
1056
1056
|
"""
|
|
1057
1057
|
Devuelve los recibos de comprobantes generados en VBolsa.
|
|
@@ -1115,12 +1115,12 @@ class EscoAPI:
|
|
|
1115
1115
|
)
|
|
1116
1116
|
|
|
1117
1117
|
def get_ctaCorriente_monetaria(
|
|
1118
|
-
|
|
1119
|
-
|
|
1120
|
-
|
|
1121
|
-
|
|
1122
|
-
|
|
1123
|
-
|
|
1118
|
+
self,
|
|
1119
|
+
cuenta: str = None,
|
|
1120
|
+
por_concertacion: bool = False,
|
|
1121
|
+
moneda: str = None,
|
|
1122
|
+
fecha_desde: datetime = datetime.now() - timedelta(days=15),
|
|
1123
|
+
fecha_hasta: datetime = datetime.now(),
|
|
1124
1124
|
):
|
|
1125
1125
|
"""
|
|
1126
1126
|
Obtiene movimientos y operaciones ya confirmadas de monedas que impactaron en la cuenta corriente en un período
|
|
@@ -1146,12 +1146,12 @@ class EscoAPI:
|
|
|
1146
1146
|
)
|
|
1147
1147
|
|
|
1148
1148
|
def get_ctaCorriente_instrumentos(
|
|
1149
|
-
|
|
1150
|
-
|
|
1151
|
-
|
|
1152
|
-
|
|
1153
|
-
|
|
1154
|
-
|
|
1149
|
+
self,
|
|
1150
|
+
cuenta: str = None,
|
|
1151
|
+
por_concertacion: bool = False,
|
|
1152
|
+
instrumento: str = None,
|
|
1153
|
+
fecha_desde: datetime = datetime.now() - timedelta(days=15),
|
|
1154
|
+
fecha_hasta: datetime = datetime.now(),
|
|
1155
1155
|
):
|
|
1156
1156
|
"""
|
|
1157
1157
|
Obtiene movimientos y operaciones ya confirmadas de instrumentos que impactaron en la cuenta corriente en un período
|
|
@@ -1177,12 +1177,12 @@ class EscoAPI:
|
|
|
1177
1177
|
request_method=HTTPMethod.POST
|
|
1178
1178
|
)
|
|
1179
1179
|
def get_ctaCorriente_consolidada(
|
|
1180
|
-
|
|
1181
|
-
|
|
1182
|
-
|
|
1183
|
-
|
|
1184
|
-
|
|
1185
|
-
|
|
1180
|
+
self,
|
|
1181
|
+
cuenta: str = None,
|
|
1182
|
+
por_concertacion: bool = False,
|
|
1183
|
+
incluir_saldos_anteriores: bool = False,
|
|
1184
|
+
fecha_desde: datetime = datetime.now() - timedelta(days=15),
|
|
1185
|
+
fecha_hasta: datetime = datetime.now(),
|
|
1186
1186
|
):
|
|
1187
1187
|
"""
|
|
1188
1188
|
Obtiene movimientos y operaciones ya confirmadas de monedas e instrumentos que impactaron en la cuenta corriente en un período
|
|
@@ -1208,12 +1208,12 @@ class EscoAPI:
|
|
|
1208
1208
|
)
|
|
1209
1209
|
|
|
1210
1210
|
def get_liquidaciones_fondos(
|
|
1211
|
-
|
|
1212
|
-
|
|
1213
|
-
|
|
1214
|
-
|
|
1215
|
-
|
|
1216
|
-
|
|
1211
|
+
self,
|
|
1212
|
+
cuentas: str = None,
|
|
1213
|
+
fecha_desde: datetime = datetime.now() - timedelta(days=30),
|
|
1214
|
+
fecha_hasta: datetime = datetime.now(),
|
|
1215
|
+
por_concertacion: bool = True,
|
|
1216
|
+
es_consolidado: bool = True,
|
|
1217
1217
|
):
|
|
1218
1218
|
"""
|
|
1219
1219
|
Es una consulta de liquidaciones FCI para lista de cuentas comitente en el período solicitado.
|
|
@@ -1238,15 +1238,15 @@ class EscoAPI:
|
|
|
1238
1238
|
)
|
|
1239
1239
|
|
|
1240
1240
|
def get_solicitudes_fondos(
|
|
1241
|
-
|
|
1242
|
-
|
|
1243
|
-
|
|
1244
|
-
|
|
1245
|
-
|
|
1246
|
-
|
|
1247
|
-
|
|
1248
|
-
|
|
1249
|
-
|
|
1241
|
+
self,
|
|
1242
|
+
cuentas: str = None,
|
|
1243
|
+
fecha_desde: datetime = datetime.now() - timedelta(days=30),
|
|
1244
|
+
fecha_hasta: datetime = datetime.now(),
|
|
1245
|
+
por_concertacion: bool = True,
|
|
1246
|
+
es_consolidado: bool = True,
|
|
1247
|
+
mostrar_cancelados: bool = False,
|
|
1248
|
+
page_number: int = 1,
|
|
1249
|
+
page_size: int = 100
|
|
1250
1250
|
):
|
|
1251
1251
|
"""
|
|
1252
1252
|
Es una consulta de solicitudes FCI para lista de cuentas comitente en el período solicitado.
|
|
@@ -1291,35 +1291,35 @@ class EscoAPI:
|
|
|
1291
1291
|
)
|
|
1292
1292
|
|
|
1293
1293
|
def previsualizar_orden_compra(
|
|
1294
|
-
|
|
1295
|
-
|
|
1296
|
-
|
|
1297
|
-
|
|
1298
|
-
|
|
1299
|
-
|
|
1300
|
-
|
|
1301
|
-
|
|
1302
|
-
|
|
1303
|
-
|
|
1304
|
-
|
|
1305
|
-
|
|
1306
|
-
|
|
1307
|
-
|
|
1308
|
-
|
|
1309
|
-
|
|
1310
|
-
|
|
1311
|
-
|
|
1312
|
-
|
|
1313
|
-
|
|
1314
|
-
|
|
1315
|
-
|
|
1316
|
-
|
|
1317
|
-
|
|
1318
|
-
|
|
1319
|
-
|
|
1320
|
-
|
|
1321
|
-
|
|
1322
|
-
|
|
1294
|
+
self,
|
|
1295
|
+
instrumento_abreviatura: str,
|
|
1296
|
+
cuenta: str,
|
|
1297
|
+
plazo: int = 0,
|
|
1298
|
+
cantidad: int = None,
|
|
1299
|
+
precio: decimal = None,
|
|
1300
|
+
importe: decimal = None,
|
|
1301
|
+
moneda: str = "ARS",
|
|
1302
|
+
fecha_concertacion: date = date.today(),
|
|
1303
|
+
observacion: str = None,
|
|
1304
|
+
cod_usuario: int = None,
|
|
1305
|
+
id_usuario: str = None,
|
|
1306
|
+
aplicacion: str = None,
|
|
1307
|
+
dias_susc_pendiente: int = None,
|
|
1308
|
+
dias_resc_pendiente: int = None,
|
|
1309
|
+
incluye_gastos_en_importe: bool = False,
|
|
1310
|
+
variacion_precio: decimal = None,
|
|
1311
|
+
mercado: str = "ME",
|
|
1312
|
+
controla_perfil_inversor: bool = None,
|
|
1313
|
+
controla_subyacente: bool = None,
|
|
1314
|
+
rutear_orden_al_mercado: bool = True,
|
|
1315
|
+
validar_orden: bool = True,
|
|
1316
|
+
validar_precio: bool = False,
|
|
1317
|
+
orden_market: bool = True,
|
|
1318
|
+
fix_order_id: str = None,
|
|
1319
|
+
aplica_aranceles_extraordinarios: bool = None,
|
|
1320
|
+
tp_operacion: str = None,
|
|
1321
|
+
precio_referencia: decimal = None,
|
|
1322
|
+
gastos: decimal = None,
|
|
1323
1323
|
):
|
|
1324
1324
|
"""
|
|
1325
1325
|
Previsualiza una orden de compra de instrumento a un mercado. Permite ver los gastos y precios a insertar.
|
|
@@ -1391,35 +1391,35 @@ class EscoAPI:
|
|
|
1391
1391
|
)
|
|
1392
1392
|
|
|
1393
1393
|
def previsualizar_orden_venta(
|
|
1394
|
-
|
|
1395
|
-
|
|
1396
|
-
|
|
1397
|
-
|
|
1398
|
-
|
|
1399
|
-
|
|
1400
|
-
|
|
1401
|
-
|
|
1402
|
-
|
|
1403
|
-
|
|
1404
|
-
|
|
1405
|
-
|
|
1406
|
-
|
|
1407
|
-
|
|
1408
|
-
|
|
1409
|
-
|
|
1410
|
-
|
|
1411
|
-
|
|
1412
|
-
|
|
1413
|
-
|
|
1414
|
-
|
|
1415
|
-
|
|
1416
|
-
|
|
1417
|
-
|
|
1418
|
-
|
|
1419
|
-
|
|
1420
|
-
|
|
1421
|
-
|
|
1422
|
-
|
|
1394
|
+
self,
|
|
1395
|
+
instrumento_abreviatura: str,
|
|
1396
|
+
cuenta: str,
|
|
1397
|
+
plazo: int = 0,
|
|
1398
|
+
cantidad: int = None,
|
|
1399
|
+
precio: decimal = None,
|
|
1400
|
+
importe: decimal = None,
|
|
1401
|
+
moneda: str = "ARS",
|
|
1402
|
+
fecha_concertacion: date = date.today(),
|
|
1403
|
+
observacion: str = None,
|
|
1404
|
+
cod_usuario: int = None,
|
|
1405
|
+
id_usuario: str = None,
|
|
1406
|
+
aplicacion: str = None,
|
|
1407
|
+
dias_susc_pendiente: int = None,
|
|
1408
|
+
dias_resc_pendiente: int = None,
|
|
1409
|
+
incluye_gastos_en_importe: bool = False,
|
|
1410
|
+
variacion_precio: decimal = None,
|
|
1411
|
+
mercado: str = "ME",
|
|
1412
|
+
controla_perfil_inversor: bool = None,
|
|
1413
|
+
controla_subyacente: bool = None,
|
|
1414
|
+
rutear_orden_al_mercado: bool = True,
|
|
1415
|
+
validar_orden: bool = True,
|
|
1416
|
+
validar_precio: bool = False,
|
|
1417
|
+
orden_market: bool = True,
|
|
1418
|
+
fix_order_id: str = None,
|
|
1419
|
+
aplica_aranceles_extraordinarios: bool = None,
|
|
1420
|
+
tp_operacion: str = None,
|
|
1421
|
+
precio_referencia: decimal = None,
|
|
1422
|
+
gastos: decimal = None,
|
|
1423
1423
|
):
|
|
1424
1424
|
"""
|
|
1425
1425
|
Previsualiza una orden de venta de instrumento a un mercado. Permite ver los gastos y precios a insertar.
|
|
@@ -1491,27 +1491,27 @@ class EscoAPI:
|
|
|
1491
1491
|
)
|
|
1492
1492
|
|
|
1493
1493
|
def insert_orden_compra_futuro(
|
|
1494
|
-
|
|
1495
|
-
|
|
1496
|
-
|
|
1497
|
-
|
|
1498
|
-
|
|
1499
|
-
|
|
1500
|
-
|
|
1501
|
-
|
|
1502
|
-
|
|
1503
|
-
|
|
1504
|
-
|
|
1505
|
-
|
|
1506
|
-
|
|
1507
|
-
|
|
1508
|
-
|
|
1509
|
-
|
|
1510
|
-
|
|
1511
|
-
|
|
1512
|
-
|
|
1513
|
-
|
|
1514
|
-
|
|
1494
|
+
self,
|
|
1495
|
+
instrumento_abreviatura: str,
|
|
1496
|
+
cuenta: str,
|
|
1497
|
+
plazo: int = 0,
|
|
1498
|
+
cantidad: int = None,
|
|
1499
|
+
precio: decimal = None,
|
|
1500
|
+
importe: decimal = None,
|
|
1501
|
+
moneda: str = "ARS",
|
|
1502
|
+
fecha_concertacion: date = date.today(),
|
|
1503
|
+
observacion: str = None,
|
|
1504
|
+
cod_usuario: int = None,
|
|
1505
|
+
id_usuario: str = None,
|
|
1506
|
+
aplicacion: str = None,
|
|
1507
|
+
dias_susc_pendiente: int = None,
|
|
1508
|
+
dias_resc_pendiente: int = None,
|
|
1509
|
+
variacion_precio: decimal = None,
|
|
1510
|
+
mercado: str = "ME",
|
|
1511
|
+
rutear_orden_al_mercado: bool = True,
|
|
1512
|
+
validar_orden: bool = True,
|
|
1513
|
+
validar_precio: bool = False,
|
|
1514
|
+
fix_order_id: str = None,
|
|
1515
1515
|
):
|
|
1516
1516
|
"""
|
|
1517
1517
|
Inserta una orden de compra de futuros a un mercado.
|
|
@@ -1568,29 +1568,29 @@ class EscoAPI:
|
|
|
1568
1568
|
)
|
|
1569
1569
|
|
|
1570
1570
|
def insert_orden_venta_futuro(
|
|
1571
|
-
|
|
1572
|
-
|
|
1573
|
-
|
|
1574
|
-
|
|
1575
|
-
|
|
1576
|
-
|
|
1577
|
-
|
|
1578
|
-
|
|
1579
|
-
|
|
1580
|
-
|
|
1581
|
-
|
|
1582
|
-
|
|
1583
|
-
|
|
1584
|
-
|
|
1585
|
-
|
|
1586
|
-
|
|
1587
|
-
|
|
1588
|
-
|
|
1589
|
-
|
|
1590
|
-
|
|
1591
|
-
|
|
1592
|
-
|
|
1593
|
-
|
|
1571
|
+
self,
|
|
1572
|
+
instrumento_abreviatura: str,
|
|
1573
|
+
cuenta: str,
|
|
1574
|
+
plazo: int = 0,
|
|
1575
|
+
cantidad: int = None,
|
|
1576
|
+
precio: decimal = None,
|
|
1577
|
+
importe: decimal = None,
|
|
1578
|
+
moneda: str = "ARS",
|
|
1579
|
+
fecha_concertacion: date = date.today(),
|
|
1580
|
+
observacion: str = None,
|
|
1581
|
+
cod_usuario: int = None,
|
|
1582
|
+
id_usuario: str = None,
|
|
1583
|
+
aplicacion: str = None,
|
|
1584
|
+
dias_susc_pendiente: int = None,
|
|
1585
|
+
dias_resc_pendiente: int = None,
|
|
1586
|
+
incluye_gastos_en_importe: bool = False,
|
|
1587
|
+
variacion_precio: decimal = None,
|
|
1588
|
+
mercado: str = "ME",
|
|
1589
|
+
rutear_orden_al_mercado: bool = True,
|
|
1590
|
+
validar_orden: bool = True,
|
|
1591
|
+
validar_precio: bool = False,
|
|
1592
|
+
orden_market: bool = True,
|
|
1593
|
+
fix_order_id: str = None,
|
|
1594
1594
|
):
|
|
1595
1595
|
"""
|
|
1596
1596
|
Inserta una orden de venta de futuros a un mercado.
|
|
@@ -1650,11 +1650,11 @@ class EscoAPI:
|
|
|
1650
1650
|
)
|
|
1651
1651
|
|
|
1652
1652
|
def get_ordenes_futuros(
|
|
1653
|
-
|
|
1654
|
-
|
|
1655
|
-
|
|
1656
|
-
|
|
1657
|
-
|
|
1653
|
+
self,
|
|
1654
|
+
cuentas: str = None,
|
|
1655
|
+
es_consolidado: bool = True,
|
|
1656
|
+
fecha_desde: datetime = datetime.now() - timedelta(days=15),
|
|
1657
|
+
fecha_hasta: datetime = datetime.now(),
|
|
1658
1658
|
):
|
|
1659
1659
|
"""
|
|
1660
1660
|
Obtiene las ultimas ordenes de futuros dentro de las fechas indicadas
|
|
@@ -1700,17 +1700,17 @@ class EscoAPI:
|
|
|
1700
1700
|
)
|
|
1701
1701
|
|
|
1702
1702
|
def insert_cuenta_bancaria_comitente(
|
|
1703
|
-
|
|
1704
|
-
|
|
1705
|
-
|
|
1706
|
-
|
|
1707
|
-
|
|
1708
|
-
|
|
1709
|
-
|
|
1710
|
-
|
|
1711
|
-
|
|
1712
|
-
|
|
1713
|
-
|
|
1703
|
+
self,
|
|
1704
|
+
cuenta: int,
|
|
1705
|
+
banco: int,
|
|
1706
|
+
cbu: str,
|
|
1707
|
+
fecha_apertura: datetime,
|
|
1708
|
+
cuit_titular: str,
|
|
1709
|
+
tp_cuenta: int = None,
|
|
1710
|
+
moneda: str = "ARS",
|
|
1711
|
+
num_cuenta: str = None,
|
|
1712
|
+
alias: str = None,
|
|
1713
|
+
num_sucursal: str = None
|
|
1714
1714
|
):
|
|
1715
1715
|
"""
|
|
1716
1716
|
Es un insert en la tabla de Cuentas Bancarias de Comitente
|
|
@@ -1745,21 +1745,21 @@ class EscoAPI:
|
|
|
1745
1745
|
)
|
|
1746
1746
|
|
|
1747
1747
|
def insert_comprobante_pago(
|
|
1748
|
-
|
|
1749
|
-
|
|
1750
|
-
|
|
1751
|
-
|
|
1752
|
-
|
|
1753
|
-
|
|
1754
|
-
|
|
1755
|
-
|
|
1756
|
-
|
|
1757
|
-
|
|
1758
|
-
|
|
1759
|
-
|
|
1760
|
-
|
|
1761
|
-
|
|
1762
|
-
|
|
1748
|
+
self,
|
|
1749
|
+
cuenta: str,
|
|
1750
|
+
moneda: str,
|
|
1751
|
+
importe: decimal,
|
|
1752
|
+
cuenta_contable: int,
|
|
1753
|
+
fecha_concertacion: date = date.today(),
|
|
1754
|
+
fecha_liquidacion: date = date.today(),
|
|
1755
|
+
tp_cambio_mov_pais: int = 1,
|
|
1756
|
+
cuenta_bancaria_comitente: int = None,
|
|
1757
|
+
controla_saldo_monetario: bool = True,
|
|
1758
|
+
num_referencia: int = None,
|
|
1759
|
+
comentario: str = None,
|
|
1760
|
+
id_origen: str = None,
|
|
1761
|
+
es_echeq: bool = False,
|
|
1762
|
+
numero_cheque: int = None
|
|
1763
1763
|
):
|
|
1764
1764
|
"""
|
|
1765
1765
|
Es un método que permite el ingreso de un Comprobante de Pago, este tipo de comprobante genera
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|