Skip to content

Commit

Permalink
feat: add mock stock market api
Browse files Browse the repository at this point in the history
  • Loading branch information
Max-Mogilski committed Oct 16, 2023
1 parent 3d53e2e commit c577bc0
Showing 1 changed file with 33 additions and 0 deletions.
33 changes: 33 additions & 0 deletions src/app/api/stockdaily/route.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
import { NextResponse } from "next/server"

const data = [
{
id: "clmhu3hb76bli09vzjsm5ha3x",
name: "S&P 500",
change: "-2.1600",
},
{
id: "clmhu869v6cqg09vzu72abtgy",
name: "Apple",
change: "+1.8600",
},
{
id: "clmhu8gwj6cs009vz07dlwsnv",
name: "Amazon",
change: "-2.5400",
},
{
id: "clmhu901k6csw09vzvd2wl6dv",
name: "Microsoft",
change: "-3.4300",
},
{
id: "clmhu8qjmbc6q0aw2i7uk751h",
name: "Google",
change: "+1.6100",
},
]

export async function GET() {
return NextResponse.json({ data }, { status: 200 })
}

0 comments on commit c577bc0

Please sign in to comment.