James Grugett
7e46188107
Add lite market endpoint
2022-08-03 22:21:22 -07:00
Marshall Polaris
b506e96548
Implement "sell all shares" functionality in sellshares
and expose API ( #696 )
...
* Change `sellshares` to be able to sell all shares
* Sell all shares properly on bet panel UI
* Add API route for selling shares, document
2022-07-26 12:47:19 -07:00
Ben Congdon
c5efd5b7d0
Market Resolution API ( #600 )
...
* Add market resolution API
* Add additional free market resolution validation
* Address review comments
* Refactor resolution validation code somewhat
Co-authored-by: Marshall Polaris <marshall@pol.rs>
2022-06-30 15:11:45 -07:00
Marshall Polaris
bb934d8390
Remove surprising 2 minute edge caching for API market data ( #541 )
2022-06-17 17:43:02 -07:00
Marshall Polaris
732a474cc9
Add userId
to bets in API ( #530 )
...
* add userid to bets
* allBets -> bets
* revert one
Co-authored-by: wasabipesto <21313833+wasabipesto@users.noreply.github.com>
2022-06-17 00:35:38 -07:00
Ben Congdon
172f14c16f
Include answer probabilities in FreeResponse API results ( #526 )
...
* Include answer probabilities in FreeResponse API results
* Appease ESLint
2022-06-17 00:20:43 -07:00
Ben Congdon
60bb892601
Include free response answers in FullMarket API response ( #519 )
2022-06-16 15:14:59 -07:00
Marshall Polaris
816fc5d64c
Revert "Revert "Turn on no unused variables linting, kill dead code ( #484 )""
...
This reverts commit 5beda1ded7
.
2022-06-12 21:42:41 -07:00
Austin Chen
5beda1ded7
Revert "Turn on no unused variables linting, kill dead code ( #484 )"
...
This reverts commit 515928a69a
.
2022-06-12 20:55:48 -07:00
Marshall Polaris
515928a69a
Turn on no unused variables linting, kill dead code ( #484 )
...
* Slightly fix up ChoicesToggleGroup
* Kill a bunch of dead code and unused variables
* Turn on no-unused-vars lint
* Un-kill some dead code that James likes
2022-06-12 19:04:55 -07:00
Marshall Polaris
d9eb9798e5
Point client at new v2 versions of createmarket
and placebet
( #433 )
...
* Kill 'warmup spam' for createContract and placeBet
* Point v2 function calls at v2 endpoints
* Add real prod placebet and createmarket endpoints
2022-06-06 12:46:06 -07:00
Marshall Polaris
3987baa11b
Add Vercel routes for public write API ( #280 )
...
* Improve typing of client CORS helper
* Take node-fetch as a dependency
* Add explicit Firebase region into config
* Add new Vercel proxy API routes that talk to backend
* Call Vercel proxy routes from `api-call` module
* Tweak import to try to get Vercel happy
* Tidy up a tiny bit
2022-05-23 14:16:56 -07:00
Marshall Polaris
5efcf61289
Configure compiler to allow absolute imports from root ( #147 )
2022-05-08 13:33:58 -07:00
Marshall Polaris
731e5d5b7c
Apply permissive CORS headers to API ( #115 )
...
* Take cors package as dependency
* Apply permissive CORS headers to all API routes
2022-04-30 13:30:49 -07:00
mantikoros
42f88766b3
api: remove userId from bets
2022-02-19 22:51:51 -06:00
Austin Chen
8f40350a75
API: Rename to LiteMarket/FullMarket; include creator avatar url
2022-02-17 16:04:05 -08:00
Austin Chen
51aa8df010
Set up a read API using Vercel serverless functions ( #49 )
...
* Set up read API using Vercel serverless functions
Featuring:
/api/v0/markets
/api/v0/market/[contractId]
/api/v0/slug/[contractSlug]
* Include tags in API
2022-02-17 12:56:24 -08:00