brokerize - Die Multi-Brokerage-API
Mit der brokerize API können Sie eine Multi-Brokerage-Funktionalität nach Ihren Vorstellungen anbieten. Die einheitliche und auf Basis offener Standards dokumentierte API macht es einfach, die vom Broker erhaltenen Daten anzureichern (bspw. um eine Echtzeitansicht mit Ihren Kursdaten zu ermöglichen) oder nach Ihren Wünschen zu visualisieren und auszuwerten.
Depotviews, Market-oder Limit-Orders, Stop-Losses und vieles mehr
Individuell anpassbar auf Ihrer Plattform!
Die brokerize API ermöglicht nahezu alle Funktionen es klassischen Brokerages wie in den Frontends unserer angebunden Online-Broker über eine einheitliche Schnittstelle, die Sie in Ihre Anwendungen und Dienste integrieren können.
- 1
Gastnutzer erstellen
Erstellt einen temporären Gastzugang.
curl -XPOST https://api-preview.brokerize.com/user/guest \
-H "x-brkrz-client-id: $YOUR_CLIENT_ID"
{"idToken":$ID_TOKEN}
- 2
Broker hinzufügen
Führt einen Login beim Broker durch und fügt die Session hinzu.
curl -XPOST https://api-preview.brokerize.com/sessions \
-H "x-brkrz-client-id: $YOUR_CLIENT_ID" \
-H "x-access-token: $ID_TOKEN>" \
-H "Content-type: application/json" \
--data-raw '{"brokerName":"demo", "env": "test", "username": "yummy-loud-byte", "password": "42"}'
{"state":"ready","sessionId":"1G5zaN1XqMEDNIn6"}
- 3
Portfolios auflisten
Listet alle Depots des Accounts auf.
curl https://api-preview.brokerize.com/portfolios \
-H "x-brkrz-client-id: $YOUR_CLIENT_ID" \
-H "x-access-token: $ID_TOKEN>" \
{
"portfolios": [
{
"id": "jGjHOGf8ctNwGv8Z",
"brokerName": "consors",
"portfolioName": "196563687286767",
"sessionIds": ["1G5zaN1XqMEDNIn6"],
"cashAccountIds": []
}
],
"cashAccounts": []
}
- 4
Trade vorbereiten
Herausfinden, wie die gegebene ISIN im Depot gehandelt werden kann.
curl https://api-preview.brokerize.com/trade/prepare\?isin\=US0378331005\&portfolioId\=jGjHOGf8ctNwGv8Z \
-H "x-brkrz-client-id: $YOUR_CLIENT_ID" \
-H "x-access-token: $ID_TOKEN
{
"preparedTrade": {
"exchanges": [
{
"id": "TRG",
"brokerizeExchangeId": 37,
"label": "Tradegate",
"orderModelsBuy": [
"quote",
"market",
"ocoStopMarket",
"trailingStopLimit",
"trailingStopMarket",
"ocoStopLimit",
"stopMarket",
"stopLimit",
"limit"
],
"orderModelsSell": [
"quote",
"market",
"ocoStopMarket",
"trailingStopLimit",
"trailingStopMarket",
"ocoStopLimit",
"stopMarket",
"stopLimit",
"limit"
],
"allowsQuoteModeLimit": true,
"validityTypesByOrderModel": {
"quote": [],
"market": [
"AUTO",
"GFD",
"GTC",
"GTD",
"GTU"
],
"ocoStopMarket": [
"AUTO",
"GFD",
"GTC",
"GTD",
"GTU"
],
"trailingStopLimit": [
"AUTO",
"GFD",
"GTC",
"GTD",
"GTU"
],
"trailingStopMarket": [
"AUTO",
"GFD",
"GTC",
"GTD",
"GTU"
],
"ocoStopLimit": [
"AUTO",
"GFD",
"GTC",
"GTD",
"GTU"
],
"stopMarket": [
"AUTO",
"GFD",
"GTC",
"GTD",
"GTU"
],
"stopLimit": [
"AUTO",
"GFD",
"GTC",
"GTD",
"GTU"
],
"limit": [
"AUTO",
"GFD",
"GTC",
"GTD",
"GTU"
]
},
"currencyIso": "EUR"
},
{
"id": "OTC#BAAD",
"label": "Baader Bank (OTC)",
"currencyIso": "EUR",
"orderModelsBuy": [
"quote",
"ocoStopMarket",
"stopMarket",
"stopLimit",
"limit",
"market",
"trailingStopMarket"
],
"orderModelsSell": [
"quote",
"ocoStopMarket",
"stopMarket",
"stopLimit",
"limit",
"market",
"trailingStopMarket"
],
"allowsQuoteModeLimit": true,
"brokerizeExchangeId": 116,
"validityTypesByOrderModel": {
"quote": [],
"ocoStopMarket": [
"AUTO",
"GTD"
],
"stopMarket": [
"AUTO",
"GTD"
],
"stopLimit": [
"AUTO",
"GTD"
],
"limit": [
"AUTO",
"GTD"
],
"market": [
"AUTO",
"GTD"
],
"trailingStopMarket": [
"AUTO",
"GTD"
]
}
},
{
"id": "OTC#7649",
"label": "Lang und Schwarz (OTC)",
"currencyIso": "EUR",
"orderModelsBuy": [
"quote",
"limit",
"market",
"stopMarket",
"stopLimit",
"ocoStopMarket",
"trailingStopMarket"
],
"orderModelsSell": [
"quote",
"limit",
"market",
"stopMarket",
"stopLimit",
"ocoStopMarket",
"trailingStopMarket"
],
"allowsQuoteModeLimit": true,
"brokerizeExchangeId": 22,
"validityTypesByOrderModel": {
"quote": [],
"limit": [
"AUTO",
"GTD"
],
"market": [
"AUTO",
"GTD"
],
"stopMarket": [
"AUTO",
"GTD"
],
"stopLimit": [
"AUTO",
"GTD"
],
"ocoStopMarket": [
"AUTO",
"GTD"
],
"trailingStopMarket": [
"AUTO",
"GTD"
]
}
},
{
"id": "OTC#7919",
"label": "Societe Generale Aktien / ETF (OTC)",
"currencyIso": "EUR",
"orderModelsBuy": [
"quote",
"stopLimit",
"stopMarket",
"market",
"limit",
"ocoStopMarket",
"trailingStopMarket"
],
"orderModelsSell": [
"quote",
"stopLimit",
"stopMarket",
"market",
"limit",
"ocoStopMarket",
"trailingStopMarket"
],
"allowsQuoteModeLimit": true,
"validityTypesByOrderModel": {
"quote": [],
"stopLimit": [
"AUTO",
"GTD"
],
"stopMarket": [
"AUTO",
"GTD"
],
"market": [
"AUTO",
"GTD"
],
"limit": [
"AUTO",
"GTD"
],
"ocoStopMarket": [
"AUTO",
"GTD"
],
"trailingStopMarket": [
"AUTO",
"GTD"
]
}
},
{
"id": "AMS",
"label": "Niederlande",
"orderModelsBuy": [
"limit",
"market"
],
"orderModelsSell": [
"limit",
"market"
],
"allowsQuoteModeLimit": true,
"validityTypesByOrderModel": {
"limit": [
"AUTO",
"GFD",
"GTC",
"GTD",
"GTU"
],
"market": [
"AUTO",
"GFD",
"GTC",
"GTD",
"GTU"
]
},
"currencyIso": "EUR"
},
{
"id": "BER",
"brokerizeExchangeId": 1,
"label": "Berlin",
"orderModelsBuy": [
"market",
"limit",
"stopMarket"
],
"orderModelsSell": [
"market",
"limit",
"stopMarket"
],
"allowsQuoteModeLimit": true,
"validityTypesByOrderModel": {
"market": [
"AUTO",
"GFD",
"GTC",
"GTD",
"GTU"
],
"limit": [
"AUTO",
"GFD",
"GTC",
"GTD",
"GTU"
],
"stopMarket": [
"AUTO",
"GFD",
"GTC",
"GTD",
"GTU"
]
},
"currencyIso": "EUR"
},
{
"id": "DUS",
"brokerizeExchangeId": 3,
"label": "Düsseldorf",
"orderModelsBuy": [
"limit",
"stopMarket",
"market"
],
"orderModelsSell": [
"limit",
"stopMarket",
"market"
],
"allowsQuoteModeLimit": true,
"validityTypesByOrderModel": {
"limit": [
"AUTO",
"GFD",
"GTC",
"GTD",
"GTU"
],
"stopMarket": [
"AUTO",
"GFD",
"GTC",
"GTD",
"GTU"
],
"market": [
"AUTO",
"GFD",
"GTC",
"GTD",
"GTU"
]
},
"currencyIso": "EUR"
},
{
"id": "ETR",
"brokerizeExchangeId": 4,
"label": "Xetra",
"orderModelsBuy": [
"limit",
"stopMarket",
"stopLimit",
"market",
"trailingStopMarket",
"ocoStopMarket"
],
"orderModelsSell": [
"limit",
"stopMarket",
"stopLimit",
"market",
"trailingStopMarket",
"ocoStopMarket"
],
"allowsQuoteModeLimit": true,
"validityTypesByOrderModel": {
"limit": [
"AUTO",
"GFD",
"GTC",
"GTD",
"GTU"
],
"stopMarket": [
"AUTO",
"GFD",
"GTC",
"GTD",
"GTU"
],
"stopLimit": [
"AUTO",
"GFD",
"GTC",
"GTD",
"GTU"
],
"market": [
"AUTO",
"GFD",
"GTC",
"GTD",
"GTU"
],
"trailingStopMarket": [
"AUTO",
"GFD",
"GTC",
"GTD",
"GTU"
],
"ocoStopMarket": [
"AUTO",
"GFD",
"GTC",
"GTD",
"GTU"
]
},
"currencyIso": "EUR"
},
{
"id": "FRA",
"label": "Frankfurt",
"orderModelsBuy": [
"stopLimit",
"market",
"trailingStopMarket",
"ocoStopMarket",
"limit",
"stopMarket"
],
"orderModelsSell": [
"stopLimit",
"market",
"trailingStopMarket",
"ocoStopMarket",
"limit",
"stopMarket"
],
"allowsQuoteModeLimit": true,
"validityTypesByOrderModel": {
"stopLimit": [
"AUTO",
"GFD",
"GTC",
"GTD",
"GTU"
],
"market": [
"AUTO",
"GFD",
"GTC",
"GTD",
"GTU"
],
"trailingStopMarket": [
"AUTO",
"GFD",
"GTC",
"GTD",
"GTU"
],
"ocoStopMarket": [
"AUTO",
"GFD",
"GTC",
"GTD",
"GTU"
],
"limit": [
"AUTO",
"GFD",
"GTC",
"GTD",
"GTU"
],
"stopMarket": [
"AUTO",
"GFD",
"GTC",
"GTD",
"GTU"
]
},
"currencyIso": "EUR"
},
{
"id": "HAM",
"brokerizeExchangeId": 8,
"label": "Hamburg",
"orderModelsBuy": [
"limit",
"market",
"stopMarket"
],
"orderModelsSell": [
"limit",
"market",
"stopMarket"
],
"allowsQuoteModeLimit": true,
"validityTypesByOrderModel": {
"limit": [
"AUTO",
"GFD",
"GTC",
"GTD",
"GTU"
],
"market": [
"AUTO",
"GFD",
"GTC",
"GTD",
"GTU"
],
"stopMarket": [
"AUTO",
"GFD",
"GTC",
"GTD",
"GTU"
]
},
"currencyIso": "EUR"
},
{
"id": "HAN",
"brokerizeExchangeId": 91,
"label": "Hannover",
"orderModelsBuy": [
"limit",
"stopMarket",
"market"
],
"orderModelsSell": [
"limit",
"stopMarket",
"market"
],
"allowsQuoteModeLimit": true,
"validityTypesByOrderModel": {
"limit": [
"AUTO",
"GFD",
"GTC",
"GTD",
"GTU"
],
"stopMarket": [
"AUTO",
"GFD",
"GTC",
"GTD",
"GTU"
],
"market": [
"AUTO",
"GFD",
"GTC",
"GTD",
"GTU"
]
},
"currencyIso": "EUR"
},
{
"id": "LSE",
"label": "London",
"orderModelsBuy": [
"market",
"limit"
],
"orderModelsSell": [
"market",
"limit"
],
"allowsQuoteModeLimit": true,
"validityTypesByOrderModel": {
"market": [
"AUTO",
"GFD",
"GTC",
"GTD",
"GTU"
],
"limit": [
"AUTO",
"GFD",
"GTC",
"GTD",
"GTU"
]
},
"currencyIso": "GBP"
},
{
"id": "MIL",
"label": "Mailand",
"orderModelsBuy": [
"market",
"limit"
],
"orderModelsSell": [
"market",
"limit"
],
"allowsQuoteModeLimit": true,
"validityTypesByOrderModel": {
"market": [
"AUTO",
"GFD",
"GTC",
"GTD",
"GTU"
],
"limit": [
"AUTO",
"GFD",
"GTC",
"GTD",
"GTU"
]
},
"currencyIso": "EUR"
},
{
"id": "MUN",
"brokerizeExchangeId": 10,
"label": "München",
"orderModelsBuy": [
"ocoStopMarket",
"stopLimit",
"limit",
"stopMarket",
"trailingStopMarket",
"market"
],
"orderModelsSell": [
"ocoStopMarket",
"stopLimit",
"limit",
"stopMarket",
"trailingStopMarket",
"market"
],
"allowsQuoteModeLimit": true,
"validityTypesByOrderModel": {
"ocoStopMarket": [
"AUTO",
"GFD",
"GTC",
"GTD",
"GTU"
],
"stopLimit": [
"AUTO",
"GFD",
"GTC",
"GTD",
"GTU"
],
"limit": [
"AUTO",
"GFD",
"GTC",
"GTD",
"GTU"
],
"stopMarket": [
"AUTO",
"GFD",
"GTC",
"GTD",
"GTU"
],
"trailingStopMarket": [
"AUTO",
"GFD",
"GTC",
"GTD",
"GTU"
],
"market": [
"AUTO",
"GFD",
"GTC",
"GTD",
"GTU"
]
},
"currencyIso": "EUR"
},
{
"id": "NYS",
"brokerizeExchangeId": 21,
"label": "USA",
"orderModelsBuy": [
"market",
"stopMarket",
"limit"
],
"orderModelsSell": [
"market",
"stopMarket",
"limit"
],
"allowsQuoteModeLimit": true,
"validityTypesByOrderModel": {
"market": [
"AUTO",
"GFD",
"GTC",
"GTD",
"GTU"
],
"stopMarket": [
"AUTO",
"GFD",
"GTC",
"GTD",
"GTU"
],
"limit": [
"AUTO",
"GFD",
"GTC",
"GTD",
"GTU"
]
},
"currencyIso": "USD"
},
{
"id": "STU",
"brokerizeExchangeId": 11,
"label": "Stuttgart",
"orderModelsBuy": [
"ocoStopMarket",
"limit",
"trailingStopMarket",
"ocoStopLimit",
"stopMarket",
"stopLimit",
"market"
],
"orderModelsSell": [
"ocoStopMarket",
"limit",
"trailingStopMarket",
"ocoStopLimit",
"stopMarket",
"stopLimit",
"market"
],
"allowsQuoteModeLimit": true,
"validityTypesByOrderModel": {
"ocoStopMarket": [
"AUTO",
"GFD",
"GTC",
"GTD",
"GTU"
],
"limit": [
"AUTO",
"GFD",
"GTC",
"GTD",
"GTU"
],
"trailingStopMarket": [
"AUTO",
"GFD",
"GTC",
"GTD",
"GTU"
],
"ocoStopLimit": [
"AUTO",
"GFD",
"GTC",
"GTD",
"GTU"
],
"stopMarket": [
"AUTO",
"GFD",
"GTC",
"GTD",
"GTU"
],
"stopLimit": [
"AUTO",
"GFD",
"GTC",
"GTD",
"GTU"
],
"market": [
"AUTO",
"GFD",
"GTC",
"GTD",
"GTU"
]
},
"currencyIso": "EUR"
},
{
"id": "TYO",
"label": "Tokio",
"orderModelsBuy": [
"market",
"limit"
],
"orderModelsSell": [
"market",
"limit"
],
"allowsQuoteModeLimit": true,
"validityTypesByOrderModel": {
"market": [
"AUTO",
"GFD",
"GTC",
"GTD",
"GTU"
],
"limit": [
"AUTO",
"GFD",
"GTC",
"GTD",
"GTU"
]
},
"currencyIso": "JPY"
},
{
"id": "VIE",
"label": "Wien",
"orderModelsBuy": [
"limit",
"market"
],
"orderModelsSell": [
"limit",
"market"
],
"allowsQuoteModeLimit": true,
"validityTypesByOrderModel": {
"limit": [
"AUTO",
"GFD",
"GTC",
"GTD",
"GTU"
],
"market": [
"AUTO",
"GFD",
"GTC",
"GTD",
"GTU"
]
},
"currencyIso": "EUR"
},
{
"id": "ZRH",
"label": "Zürich",
"orderModelsBuy": [
"market",
"limit"
],
"orderModelsSell": [
"market",
"limit"
],
"allowsQuoteModeLimit": true,
"validityTypesByOrderModel": {
"market": [
"AUTO",
"GFD",
"GTC",
"GTD",
"GTU"
],
"limit": [
"AUTO",
"GFD",
"GTC",
"GTD",
"GTU"
]
},
"currencyIso": "CHF"
}
],
"costEstimationMustBeShown": true,
"sizeUnit": "XXX",
"security": {
"isin": "US0378331005",
"name": "APPLE INC."
}
}
}
- 5
Limitorder erstellen
Die Order kann nun abhängig von der Auth-Methode erstellt werden.
curl -XPOST https://api-preview.brokerize.com/trade/create \
-H "x-brkrz-client-id: $YOUR_CLIENT_ID" \
-H "x-access-token: $ID_TOKEN" \
-H "Content-type: application/json" \
--data '{"authMethod":"BROKER_APP","order":{"validity":{"type":"AUTO"},"limit":"5","size":"1","isin":"US0378331005","brokerExchangeId":"TRG","direction":"buy","orderModel":"limit","portfolioId":"jGjHOGf8ctNwGv8Z"}}
{orderId: 'GfJIrJILL1av2Lva'}
Wir kümmern uns um Sie
Zum Dienstleistungsangebot von brokerize gehören umfangreiche Testing- und Qualitätssicherungsmaßnahmen, die die Konformität gegenüber gesetzlichen Bestimmungen und den Anforderungen unserer Partner und Online-Broker gewährleistet. Darüberhinaus planen wir weitere Entwicklungen der brokerize API über Mehrwertfunktionen, Auswertungsmöglichkeiten und Automatisierungen.