lolokraus / DegiroAPI

An unofficial API for the trading platform Degiro, with the ability to get real time data and historical data
MIT License
215 stars 84 forks source link

search_products doesn't work for finding a symbol #9

Open bobvanluijt opened 4 years ago

bobvanluijt commented 4 years ago

I'm using: degiro.search_products('ACWI')

And the result is:

[{
    'id': '1523265',
    'name': 'SPDR MSCI ACWI ETF',
    'isin': 'IE00B44Z5B48',
    'symbol': 'SPYY',
    'contractSize': 1.0,
    'productType': 'ETF',
    'productTypeId': 131,
    'tradable': True,
    'category': 'G',
    'currency': 'EUR',
    'exchangeId': '194',
    'orderTimeTypes': ['DAY', 'GTC'],
    'gtcAllowed': True,
    'buyOrderTypes': ['LIMIT', 'MARKET', 'STOPLOSS', 'STOPLIMIT', 'TRAILINGSTOP'],
    'sellOrderTypes': ['LIMIT', 'MARKET', 'STOPLOSS', 'STOPLIMIT', 'TRAILINGSTOP'],
    'productBitTypes': [],
    'marketAllowed': True,
    'limitHitOrderAllowed': False,
    'stoplossAllowed': True,
    'stopLimitOrderAllowed': True,
    'joinOrderAllowed': False,
    'trailingStopOrderAllowed': True,
    'combinedOrderAllowed': False,
    'sellAmountAllowed': False,
    'isFund': False,
    'closePrice': 123.42,
    'closePriceDate': '2020-06-23',
    'feedQuality': 'D15',
    'orderBookDepth': 0,
    'vwdIdentifierType': 'issueid',
    'vwdId': '480012585',
    'qualitySwitchable': False,
    'qualitySwitchFree': False,
    'vwdModuleId': 25
}]

I would expect to also find LYXOR MSCI ALL COUNTRY which has the symbol ACWI

Chavithra commented 3 years ago

Hi there,

this method "search_products" has two parameters :

By default this "limit" is 1.

That's why you only have one result.

Hope that helps