Integración Python con la API de DriveWealth.
- Obtener una session.
>> import drivewealth
>> dw = drivewealth.Api(username='username', password='password')
>> print dw
- Obtener la cuenta asociada a la session.
>> import drivewealth
>> dw = drivewealth.Api(username='username', password='password')
>> dw.accounts
- Obtener data de un usuario en especifico.
- @Params:
- user_id
- @Params:
>> import drivewealth
>> dw = drivewealth.Api(username='username', password='password')
>> dw.get_user('user_id')
- Obtener el listado de todos los instrumentos disponibles.
>> import drivewealth
>> dw = drivewealth.Api(username='username', password='password')
>> dw.get_instruments()
- Obtener un instrumento en especifico.
- @Params:
- instrument_id
- @Params:
>> import drivewealth
>> dw = drivewealth.Api(username='username', password='password')
>> dw.get_instrument('instrument_id')
- Buscar un instrumento.
- @Params:
- symbol
- name
- tag
- @Params:
>> import drivewealth
>> dw = drivewealth.Api(username='username', password='password')
>> dw.search_instruments(symbol='symbol', name='name', tag='tag')
- Obtener el estatus de una orden.
- @ Params:
- order_id
- @ Params:
>> import drivewealth
>> dw = drivewealth.Api(username='username', password='password')
>> dw.get_order_status(order_id='order_id')
- Obtener Performance de una cuenta
- @Params:
- user_id
- account_id
- @Params:
>> import drivewealth
>> dw = drivewealth.Api(username='username', password='password')
>> dw.get_account_performance(user_id='user_id', account_id='account_id')