Тёмный

JSON Deserialization in F# | Working with Questrade API Authentication | StonkWatch Ep.18 

Ben Gobeil
Подписаться 2,2 тыс.
Просмотров 2,3 тыс.
50% 1

For Freelance F# Consulting, visit www.bengobeil.com/
Back with another video! I do struggle in this video working with frameworks that are new to me (I used to use Newtonsoft.Json in the past). I think I could have made System.Text.Json work in the interactive but I quit prematurely.
StonkWatch source code: github.com/bengobeil/StonkWatch
Thoth.Json: thoth-org.github.io/Thoth.Json/
I should have integrated with FSharp.SystemTextJson:
github.com/Tarmil/FSharp.Syst...
Oryx: github.com/cognitedata/oryx
Outro:
Artist: Lakey Inspired
Song: Warm Nights

Наука

Опубликовано:

 

12 май 2021

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 7   
@adelarsq
@adelarsq 3 года назад
Really nice! Thanks for share Ben
@RuslanShupoval
@RuslanShupoval 3 года назад
Thanks a lot for all videos that you are doing!
@bengobeil933
@bengobeil933 3 года назад
You're welcome, Ruslan.
@robertstevens1537
@robertstevens1537 Год назад
Simple question if you have time, can you send buy and sell orders via this API?
@JackoCribbo
@JackoCribbo 3 года назад
Funnily enough, I've started to lean towards Thoth manual encoders/decoders as I've been down this same rabbit hole myself too many times. let decodeAuthResponse = Decode.object { AccessToken = get.Required.Field "access_token" Decode.string ApiServer = get.Required.Field "api_server" Decode.string RefreshToken = get.Required.Field "refresh_token" Decode.string } More verbose but it will just work and is painless to reason about. You can inline mapping to domain types too, removing the whole DTO -> domain step if you so desire.
@timcain1734
@timcain1734 3 года назад
I spoke with Questrade support. They said the Questrade API cannot be connected with a demo account. Question .... how do you develop an API (I am using Python) in a Questrade environment that is not live? I do not have the courage to create a program in a live environment.
@bengobeil933
@bengobeil933 3 года назад
I don't know, sorry about that
Далее
What's New in F# 6 0  - Don Syme - NDC Oslo 2021
59:10
Golang Web Server and RSS Scraper | Full Tutorial
2:49:35
Building Darklang in F# | fsharpConf 2023
30:12
Просмотров 2,7 тыс.
Requests vs HTTPX vs Aiohttp | Which One to Pick?
15:11
The Scam Of Day Trading
11:14
Просмотров 78 тыс.
iPhone socket cleaning #Fixit
0:30
Просмотров 17 млн
КРУТОЙ ТЕЛЕФОН
0:16
Просмотров 6 млн